Dear all,
I have been using LPC1768 UART for a while now. So far I have always set the trigger level to 1 byte and have not really used FIFO. Now I am intended to set the trigger level to 14 bytes, but I do not understand how that works. After 14 bytes are received, the UART asserts a receive interrupt and we will have 14 bytes in receive FIFO.
The question is how am I supposed to read these 14 bytes? Can it be done through RBR register? because that is the only register I know that gives access to receive FIFO.
Thanks in advance for helping me.
Please read the manual?
Nothing fancy really.
Just repeat reading the LSR followed by RBR as long as there are more characters available in the receive FIFO. The LSR will contain the flags (parity etc) for the oldest byte available in the FIFO.
And as Andy notes - the manufacturer has spent a lot of time on documentation. It isn't hard to pick up the information by just looking for the UART chapter. There is even a separate paragraph just related to the RBR register - including information about FIFO use.
There is no reason to ask on a forum without first having taken a peek at the official documentation...
and there is no reason to ask on a tool maker's forum when this is nothing whatsoever to do with the tools!
and the documentation is good anyway.