2014-12-19 03:21 AM
Uart communication higher than 921600 baud rate is not possible
#usart-1382400 #uart-baud-rate2014-12-19 04:41 AM
Uart communication higher than 921600 baud rate is not possible
Really? That's not my experience with STM32 parts, perhaps you're doing something wrong. Do you have RS232 level drivers? What's the bandwidth on them? 1 MHz perhaps?2014-12-19 08:50 AM
How do you configure the baud rate generator? What's your HSE oscillator? You need a frequency high enough to divide down to your target. Using HSI at that high a rate will likely create some jitter, making the connection unreliable. Be sure the baud rate at both ends is exact, any deviation, even with async, is going to cause the start bit to drift. A 1% error is fine at 9600, inoperable at 960K.
What baud rate are you trying for? Is your program fast enough to handle that rate? If you are using per character interrupts that's <1usec service time, not gonna have much CPU left for anything else. What's the physical interface? RS-232 transceivers don't work at those kinds of speeds. The slew rate turns your cable into a very good RF generator with nice sharp edges in the medium wave band. Your neighbors with a radio will really appreciate your broadband static transmitter. Look at RS-485 or for short distance a TTL line driver. Current loop won't work at those speeds either. If you really need multi-megabit data rates you'd be better off looking at USB or Ethernet. A serial USART is the wrong tool for the job. Jack Peacock2015-12-28 09:49 PM
2015-12-28 09:51 PM
In my application i need to communicate with two different microcontrollers.For validation I used the usart1 and usart 2 of stm32f429zi(connected rx to tx and vice versa)and I am not using any level drivers.I set the system clock to 80mhz .I want to set the baud rate of 1382400.
2015-12-28 09:58 PM
In my application i need to communicate with two different microcontrollers.For validation I used the usart1 and usart 2 of stm32f429zi(connected rx to tx and vice versa)and I am not using any level drivers.I set the system clock to 80mhz .I want to set the baud rate of 1382400.
2015-12-29 05:16 AM
Ok, but what speeds are the respective APB the USARTs are attached too?
As the baud rate increases the larger the potential for the baud rate to be off target as it doesn't cleanly divide into the clock of the USART. Pick a baud rate like 2000000 which is more apt to divide cleanly, and review the bit timings on a scope.2015-12-30 01:19 AM