lpcware

U0_RTS - driving RS485

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Wojtkingson on Tue Feb 10 11:16:50 MST 2015
Hi,

I want to drive my RS485 transceiver by U0_RTS, I´ve managed it by software, but I would like to do it by hardware.

Some of my steps:

Chip_SWM_MovablePinAssign(SWM_U0_RTS_O, 1);

Chip_UART_ConfigData(LPC_USART0, UART_CFG_DATALEN_8 | UART_CFG_PARITY_NONE | UART_CFG_STOPLEN_1 | UART_CFG_LOOP);



This code works fine but I cant receive anything from UART. Whenever I remove UART_CFG_LOOP, U0_RTS on PIO_01 doesn´t work anymore. I´ve tried lot of variations, but still without succes. Signal si controlled by oscilloscope, so there is problem only with pin with U0_RTS signal (I think).

Outcomes