RS485 DIR PIN Ctrl

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

RS485 DIR PIN Ctrl

2,611 次查看
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
标签 (1)
0 项奖励
回复
1 回复

2,337 次查看
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 项奖励
回复