Hi,
i got a problem with the UARTn FIFO .
Can someone explain me how i get the data from this register?
The manual says that, if i enable the Rx trigger level
for example level3 (8 character) the RxFIFO get the data and after
the 8th char is arrived interrupt is set.that works so far.
but where are the data?
thx
Read-Only
Author Per Westermark
Posted 6-Sep-2008 22:45 GMT
Toolset ARM
RE: UART FIFO
Per Westermark
Oops. You kind of forgot to mention what processor you are using.
All ARM are not the same!
Anyway - you normally read the data from the receive register just
as if no FIFO has been enabled. It's just that you can read multiple
times. There is a flag to tell you if the Rx FIFO is empty or not. As
long as it isn't empty, you can continue to read.
The same thing with transmit. There is a flag that tells you if
the Tx FIFO is full. As long as it isn't full, you can continue to
stuff data into the transmit FIFO.
Just a note about reception. If you set the FIFO to interrupt
after 8 characters, you also have a Rx timeout, i.e. if there are
less than 8 characters received, the UART will after a little while
timeout and issue an interrupt anyway.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.