RS485 DIR PIN Ctrl

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

RS485 DIR PIN Ctrl

1,633 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lba on Tue Nov 06 08:52:45 MST 2012
Hi
I have made a auto dir ctrl in a 11U14 and has now move it to a 1225/321, but does work.
My code is
  LPC_IOCON->PIO2_0 &= ~0x17;
  LPC_IOCON->PIO2_0 |= 0x05;      /* UART_DIR or UART_RTS(HB1) as direction control. */
  LPC_UART0->RS485CTRL |= RS485_DCTRL|RS485_OINV;
  LPC_UART0->RS485DLY = 100;// Delay of DIR Pin
Nothing at all happens on the pin when transmitting I tried flikering with the pin it works fine.

Any one that can see what i do wrong ?

Best Regards
Lars
Labels (1)
0 Kudos
1 Reply

1,359 Views
arekvostruna
Contributor I

LPC11C24 and RS485 DIR PIN Ctrl on RTS hardware ? It is not working  MCUXpresso IDE Any example how to enable it? Is there HW bug on chip?

0 Kudos