LPC812 9 bit data transmission using UART

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC812 9 bit data transmission using UART

656 Views
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?
Labels (1)
0 Kudos
Reply
1 Reply

618 Views
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 Kudos
Reply