This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

2808 FIFO receiving problem



hello,

problem's coming when a byte receiving thru 2808 FIFO block. Sometimes a byte is missing.  But in case of normal SCI mode (no FIFO mode), it never happened !!

my code is hereunder, it just waits a byte from RXD pin and returns received byte.

 unsigned char getch()
 { 
        while (!(SCIFFRXA&0x1f00));
        return(SCIRXBUFA);
 }

has something wrong?

original(no fifo function) code was,

 unsigned char getch()
 {
      while (!(0x40&SCIRXSTA));
      return (SCIRXBUFA);
 }

pls let me know.. what's the problem??