
406 Embedded systems design
buffers enable the serial port to accept and store the incoming data
as fast as it is sent but do not rely on the polling software to run at
the same speed. Providing the polling software can empty the
FIFO so that it never overflows, there is no problem. By designing
the software so that the polling software always retrieves its six
bytes of data before issuing a new request, the system can ensure
that this overflow does not take place. With the large 8 to 16 byte
FIFOs being used today, they can actually buffer multiple samples
before a problem is encountered. With the polling software easier
to write and debug, this was ...