When I transmit 0x85 by serial, it retun 0 when i check the FOFO buffer (by SCI_getRxFIFOStatus(*BASE)).
After that, I send 0x01, it retun 2 by SCI_getRxFIFOStatus(*BASE) , and it return "0x85,0x01 " when read(by SCI_readCharNonBlocking(*BASE)).
Why?
////////code////////////
int i;
int a;
uint8_t getdatarx[16];
a = SCI_getRxFIFOStatus(mySCI0_BASE);
if(a){
for(i=0;i<16;i++)getdatarx[i] = SCI_readCharNonBlocking(mySCI0_BASE);
}
////////////////////////