auto baud rate detection at pic18

Thread Starter

bug13

Joined Feb 13, 2012
2,002
Hi guys

I came cross this on a datasheet (auto bard rate detection), I have never used it, but I think it's something very nice to have in a design.

Just wondering, what's the pros and cons of this?
 

Papabravo

Joined Feb 24, 2006
21,225
It normally depends on having source of characters with particular characteristics to measure. If the incoming character is odd, that is LSB = 1, then you can measure the length of the START bit. The Carrige Return character has this property. If there are no incoming characters, then baudrate cannot be determined, but who cares? Well maybe you do if you want to talk to the device before it talks to you.

I suppose you could also try all available baudrates until you found one that worked. Selecting the search order would be the challenge especially if the device could operate at more than one rate.
 

MaxHeadRoom

Joined Jul 18, 2013
28,684
I have some programs that came with the Picmicro F18's and F30's BLDC development board Picdem LV MC that includes auto baud rate detection for the PC based tuning program.
They are usually available for download with the board details on the site.
Max.
 
Top