Hi navid ansari,
Thank you for your interest in NXP Semiconductor products and
the opportunity to serve you.
I'd highly recommend you to refer the RS485 demo in the ~\lpc407x_8x_177x_8x\lpc407x_8x_177x_8x\Examples\UART after the library installed. The demo illustrate how to use RS485 functionality on UART of LPC1788 Develop Kit, and Fig 1 is the sch of the RS485 transceiver.
Fig 1
You can download the library via the link below.
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------