LPC812 9 bit data transmission using UART

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

LPC812 9 bit data transmission using UART

654件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ramniraj10 on Mon Dec 08 06:23:27 MST 2014
From user manual , it is clear that how MCU can detect the 9th bit for address detect during receiving.
How can we send 9 bit data from UART TX so that other end can recognize the 9th bit as address or data?
ラベル(1)
0 件の賞賛
返信
1 返信

616件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ramniraj10 on Tue Dec 09 02:08:48 MST 2014
I have checked sample source code for UART 9 bit data.

Transmit 9-bit data
------------------------
UARTx->TXDATA = (uint32_t)data|0x100;

Receive 9-bit data
------------------------
if ( ((regVal=UARTx->RXDATA) & 0x100) && (UARTx->CTRL & ADDR_DET) )
{
AddrDetected = regVal & 0x1FF;
}

I will check the waveform and working of this source code function.
Thanks,
0 件の賞賛
返信