Receive more than 16bits throw UART?

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

Receive more than 16bits throw UART?

248 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ferve on Mon May 25 09:01:02 MST 2015
Hi all!! I'm starting to use LPC1769, and i'm working in a project with a XBEE s2 (DIGI). The problem is that from the XBEE module i'm only receiving the first 16 bytes. I was reading that the problem is that FIFO has only 16 bytes.

Is there a simple way to receive more than 16 bytes???

Here is part of the code:

UARTInit(&uart_var_rx, UART_3, 9600, 8, 'n', 1);

char char_rx[30];
int aux;

for(aux=0;aux<30;aux++)
   char_rx[aux] = UARTgetc(&uart_var_rx);  //This only receive the first 16 bytes

Thanks!

Fernando
Labels (1)
0 Kudos
1 Reply

225 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dhanapal on Mon Jun 29 00:45:33 MST 2015
Enable the UART receive interrupt. You will receive all bytes
0 Kudos