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.
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
Hello @Omar Anguiano
Thanks for your reply! It worked