lpcware

RS485 DIR PIN Ctrl

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jul 1, 2020 by Arek Vostruna
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

Outcomes