Receive more than 16bits throw UART?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Receive more than 16bits throw UART?

263件の閲覧回数
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
ラベル(1)
0 件の賞賛
1 返信

240件の閲覧回数
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 件の賞賛