Search found 31 matches

by mustaq_ahm
Tue Sep 28, 2021 11:09 am
Forum: General discussion
Topic: USART Multiprocessor communication.
Replies: 13
Views: 7702

Re: MODBUS protcol addressing.

Okay, so you say that wiring and connection are correct and the communication can happen even if I leave all the enable pins in HIGH. If so how can I hardcode the address of the slaves so, that master can identify the each slave with respective? Also, you are saying that there is no need of otary sw...
by mustaq_ahm
Tue Sep 28, 2021 10:20 am
Forum: General discussion
Topic: USART Multiprocessor communication.
Replies: 13
Views: 7702

Re: MODBUS protcol addressing.

I have configured my Hardware Serial USART_1 in PA9 as Tx and PA10 as Rx and PC14 as USART_ENABLE to the maxRS485. Whenever I need to send data from microcontroller_1 to microcontroller_2, then I have to make my eable pin HIGH for microcontroller_1 and LOW for microcontroller_2. Then when I need to...
by mustaq_ahm
Tue Sep 28, 2021 8:51 am
Forum: General discussion
Topic: USART Multiprocessor communication.
Replies: 13
Views: 7702

MODBUS protcol addressing.

If your needs are few, softwareSerial may satisfy and you can make an all-s/w implementation. Nope, almost every pin has some functions to do in microcontroller. So, I dont think software serial would be efficient solution. Yes, as mentioned by ag123 , I want to implement MODBUS protcol as I cant c...
by mustaq_ahm
Mon Sep 27, 2021 10:29 am
Forum: General discussion
Topic: USART Multiprocessor communication.
Replies: 13
Views: 7702

USART Multiprocessor communication.

Hello All, Good Day! I was looking arround multiprocessor communication in STM32F103C8T6 which is running in official STM32 core. I would like to test the USART Multiprocessor communication between more than three PCB's . Same as USART asynchronous mode, I could program the microcontrollers to commu...
by mustaq_ahm
Mon Sep 27, 2021 10:08 am
Forum: General discussion
Topic: Hardware Serial-USART-synchronous mode or asynchronous mode
Replies: 6
Views: 4596

Re: Hardware Serial-USART-synchronous mode or asynchronous mode

Thanks all for your time and replies. I would look into this in detail.
by mustaq_ahm
Fri Sep 24, 2021 4:24 pm
Forum: General discussion
Topic: Hardware Serial-USART-synchronous mode or asynchronous mode
Replies: 6
Views: 4596

Re: Hardware Serial-USART-synchronous mode or asynchronous mode

But, I would like to work on USART synchronous mode protocol which is given in this https://www.st.com/resource/en/reference_manual/cd00171190-stm32f101xx-stm32f102xx-stm32f103xx-stm32f105xx-and-stm32f107xx-advanced-arm-based-32-bit-mcus-stmicroelectronics.pdf manual at chapter 27.3.9 (Pg: 805). Als...
by mustaq_ahm
Fri Sep 24, 2021 4:00 pm
Forum: General discussion
Topic: Hardware Serial-USART-synchronous mode or asynchronous mode
Replies: 6
Views: 4596

Hardware Serial-USART-synchronous mode or asynchronous mode

Hi everyone! This is just general topic. I also want to implement in my work. I have a STM32F103C8T6 with Stm32duino offical core running in it. My question is can we program the microcontroller with USART in synchronous mode? For communication between two STM32F103C8T6 custom made boards. I want to...
by mustaq_ahm
Tue Sep 14, 2021 3:00 pm
Forum: General discussion
Topic: Hardware Serial sending data using USART.
Replies: 4
Views: 2410

Re: Hardware Serial sending data using USART.

Thank you for your time and replies. It was my simple mistake in code. Yes you correct nextchar++ is just index for myname. In both master and slave. I have given different baud rates. That was causing the problem I think. Also in Slave code. I removed semicoln in while statement. :D Now everything ...
by mustaq_ahm
Tue Sep 14, 2021 2:01 pm
Forum: General discussion
Topic: Hardware Serial sending data using USART.
Replies: 4
Views: 2410

Re: Hardware Serial sending data using USART.

I added several print in my code because, so that I can debug in my own code in serail monitor. Yes, you are right but myserial.available() will check for number bytes to recive when it is zero it will exit the while loop right? I have also used nextchar++ so that it will store byte by byte to recei...
by mustaq_ahm
Tue Sep 14, 2021 1:35 pm
Forum: General discussion
Topic: Hardware Serial sending data using USART.
Replies: 4
Views: 2410

Hardware Serial sending data using USART.

I am attempting to to send a message or from one STM32F103C8T6 board to another STM32F103C8T6 board. I have chosen PA10 and PA9 as my Rx and Tx for both the boards. And I have also assigned driver enable pin for both the pins (For Master PB15 , which is always HIGH and for Slave PC14 , which is alwa...

Go to advanced search