LPC812 9 bit data transmission using UART

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

LPC812 9 bit data transmission using UART

676 次查看
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 回复

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