How to interface RS485 with LPC1769?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to interface RS485 with LPC1769?

1,898件の閲覧回数
vishakhadakhane
Contributor III

Hello , I have interfaced Rs232 with lpc1769 using LPCopen's  periph_uart_rb example. I am using MCUxpresso. I am able to print the data serially on Docklight.  But now would like to interface Rs485 with LPC1769, Is there any example available in LPCopen or  can we do it with periph_uart_rb? If yes then what changes am I supposed to make in periph_uart_rb?  please let me know Thanks.

ラベル(1)
2 返答(返信)

1,728件の閲覧回数
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello Vishakha Dakhane

You have to enable the direction control in the RS485 control register. Then configure the corresponding pin for UART direction control function and connect to the RS485 transceiver.

That's all for RS485. The rest is just normal UART operation.

 

Please refer to chapter 15 "LPC176x/5x UART1" of LPC176x/5x User Manual to find the register description.

https://www.nxp.com/docs/en/user-guide/UM10360.pdf

 

Also you can find a reference code in this community post

https://community.nxp.com/thread/455827

 

Let me know if this is helpful.

Best regards,

Omar

1,728件の閲覧回数
vishakhadakhane
Contributor III

Hello @Omar Anguiano 

Thanks for your reply! It worked