Content originally posted in LPCWare by drvrh on Tue Jul 14 00:01:17 MST 2015 Hello,
I downloaded UART library where for UART send using function:
void Serial_write( uint8_t portNum, uint8_t send)
{
if ( portNum == 0 )
{
/* THRE status, contain valid data */
while ( !(UART0TxEmpty & 0x01) );
LPC_UART0->THR = send;
UART0TxEmpty = 0;/* not empty in the THR until it shifts out */
}
....
void Serial_wChar( uint8_t portNum, char send)
{
if ( portNum == 0 )
{
/* THRE status, contain valid data */
while ( !(UART0TxEmpty & 0x01) );
LPC_UART0->THR = send;
UART0TxEmpty = 0;/* not empty in the THR until it shifts out */
}....
But when I monitoring data with FT232 on my terminal on computer I get failed data, I get something char. Uart communication working, when I would like send string send normaly.