Use the uart for nine bits mode with lpc1114

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Use the uart for nine bits mode with lpc1114

1,322件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by thinkchip on Wed Sep 01 08:39:37 MST 2010
it is possible use the uart of lpc1114 in the mode of 9 bits? in the data sheet I see that only support the 8 bits data, and I don't know if could be possible use the parity bit like the nine bit by software? thanks
0 件の賞賛
返信
4 返答(返信)

1,279件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Wed Nov 03 04:48:18 MST 2010
9-bit Serial Frames are not supported by LPC11xx or LPC17xx UART :(
It's possible to use a 9th bit to detect an address in RS485 mode, but that's all.
AFAIK this 9th bit is used as 'Mode Bit' in MDB, which sounds similar.


Quote:
[B][FONT=Arial]Mode Bit: Master-to-Peripheral[/FONT][/B]
[LEFT][FONT=Arial]The mode bit differentiates between ADDRESS bytes and DATA bytes. ADDRESS[/FONT]
[FONT=Arial]bytes must be read by all peripherals, DATA bytes are only read by the peripheral that[/FONT]
[FONT=Arial]has been addressed.[/FONT]
[FONT=Arial]The mode bit is set (logic one) to indicate an ADDRESS byte, and not set (logic zero) to[/FONT]
[FONT=Arial]indicate a DATA byte.[/FONT]
[B][FONT=Arial]Mode Bit: Peripheral-to-Master[/FONT][/B]
[FONT=Arial]The mode bit must be set on the last byte sent when data is sent from a Slave to the[/FONT][/LEFT]
[FONT=Arial]Master.[/FONT]



So it should be at least possible to read an Address with this 485 sample.
0 件の賞賛
返信

1,279件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by thinkchip on Tue Nov 02 20:59:20 MST 2010

Quote: thinkchip
Yes, I refer that I could be use the uart with 9 bits data, I try to communicate with a coin changer that use the mdb protocol that use 9 bit data in uart, thanks for the data, best regards



Hi again, I cant configure the uart0 for the LPC1768 for work in 9 bit data mode, is there any example using the uart by software? best regards
0 件の賞賛
返信

1,279件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by thinkchip on Wed Sep 01 15:42:45 MST 2010
Yes, I refer that I could be use the uart with 9 bits data, I try to communicate with a coin changer that use the mdb protocol that use 9 bit data in uart, thanks for the data, best regards
0 件の賞賛
返信

1,279件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Jesse.Rosenberg on Wed Sep 01 15:12:15 MST 2010
Can you clarify what you mean by 9-bit mode a bit more? I assume you're referring to using a 9th bit for multi device communication (such as with RS-485). If that is the case please take a look at the "rs485" project included with the LPC11xx examples.
0 件の賞賛
返信