CODE Receive one byte of data

Table 1. CODE UART Code example
Receive one byte of data.
LPC_USART->CFG = UART_CFG_DATALEN(8)| UART_CFG_ENABLE;
while(~LPC_USART->STAT & UART_STAT_RXRDY);
data = LPC_USART->RXDAT;
if(data != 0xdd) abort();

-->