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.

Get size of SCI FIFO

Hi.

I see from the technical reference manuals, that the size of the transmit/receive FIFO differs for e.g the 2806x (size is 4) or the 2807x (size is 16).

What we want to realize is to use the SCI in FIFO mode and to provide polled functions for reading or writing. However writing should fail (function should return a failure) if the TX FIFO is full. Sure we could define the size of the FIFO depending on the processor type but if there is a way to determine the buffer size in software it would be even better.

Is there a way to read the FIFO buffer size from any register?

  • it seems as if you are asking how you could determine the FIFO size at run-time.

    There is not a register detailing the size of the FIFO for the device, but there is a PARTID register which will tell you the part/device you are using. I suggest reading from that register and assigning your FIFO size variable relative the to the register contents.

    sal