Auto baud rate detection in uart of LPC54608J512BD208

cancel
Showing results for 
Search instead for 
Did you mean: 

Auto baud rate detection in uart of LPC54608J512BD208

27 Views
prasannanaik
Contributor III

Hi,

I want to automatically detect the baud rate of sender and tune my Uart to the same baud rate so that user doesn't have to manually configure the uart communication parameters.

I am using LPC54608J512BD208 microcontroller. Uart is used for Modbus RTU communication over RS485. I want the my slave device i.e LPC546 microcontroller unit to tune automatically to the sender's communication parameters.

Most of the microcontrollers provide auto baud rate detection feature in hardware. I couldn't find this feature in lpc546. 

I want to implement autobaud rate detection feature in this microcontroller, how do i go about it?

 

Thanks & best regards,

Prasanna

Labels (1)
0 Kudos
1 Reply

13 Views
frank_meyer
Contributor IV

Auto detection implies a negotiation phase, were one instance (usually a master) sends known data for a given time. You can go through all allowed baudrates, and check if you receive the agreed value.

AFAIK, Modbus has no such autodetect feature.

Most industrial and control busses are static, i.e. require a known setup and configuration - hot-plugging is not allowed.

0 Kudos