cancel
Showing results for 
Search instead for 
Did you mean: 

Auto baud rate detection for UART

matic
Associate III
Posted on March 16, 2016 at 23:40

Hi.

I would like to implement auto baud rate detection for UART in STM32F303 uC. There are 4 different detection modes. I understand how each of them works (what is being measured), but don't know, if any of that modes is better for a particular case? Is any of these modes particularly better than others?

Thanks
1 REPLY 1
Nesrine M_O
Lead II
Posted on March 22, 2016 at 17:25

Hi obid.matic,

As it is mention in the STM32F3 reference manuals, Auto baud rate detection paragraph:

In the mode 1 the measurement is done falling edge to falling edge, ensuring better accuracy in the case of slow signal slopes.

Modes 2 and 3 are more precise than modes 0 and 1 are they are providing less baud rate error

Also note that in 7-bit data length mode, Auto baud rate (0x7F and 0x55 frames detection) are not supported.

-Syrine-