How to interface RS485 with LPC1769?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to interface RS485 with LPC1769?

1,512 Views
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.

Labels (1)
2 Replies

1,342 Views
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,342 Views
vishakhadakhane
Contributor III

Hello @Omar Anguiano 

Thanks for your reply! It worked