www.ti.com | Peripheral Architecture |
2.6.3FIFO Modes
The following two modes can be used for servicing the receiver and transmitter FIFOs:
•FIFO interrupt mode. The FIFO is enabled and the associated interrupts are enabled. Interrupts are sent to the CPU to indicate when specific events occur.
•FIFO poll mode. The FIFO is enabled but the associated interrupts are disabled. The CPU polls status bits to detect specific events.
Because the receiver FIFO and the transmitter FIFO are controlled separately, either one or both can be placed into the interrupt mode or the poll mode.
2.6.3.1FIFO Interrupt Mode
When the receiver FIFO is enabled in the FIFO control register (FCR) and the receiver interrupts are enabled in the interrupt enable register (IER), the interrupt mode is selected for the receiver FIFO. The following are important points about the receiver interrupts:
•The receiver
•The receiver line status interrupt is generated in response to an overrun error, a parity error, a framing error, or a break. This interrupt has higher priority than the receiver
•The
•A receiver
–At least one character is in the FIFO,
–The most recent character was received more than four continuous character times ago. A character time is the time allotted for 1 START bit, n data bits, 1 PARITY bit, and 1 STOP bit, where n depends on the word length selected with the WLS bits in the line control register (LCR). See Table 4.
–The most recent read of the FIFO has occurred more than four continuous character times before.
•Character times are calculated by using the baud rate.
•When a receiver
•If a receiver
When the transmitter FIFO is enabled in FCR and the transmitter holding register empty interrupt is enabled in IER, the interrupt mode is selected for the transmitter FIFO. The transmitter holding register empty interrupt occurs when the transmitter FIFO is empty. It is cleared when the transmitter hold register (THR) is loaded (1 to 16 characters may be written to the transmitter FIFO while servicing this interrupt).
Table 4. Character Time for Word Lengths
Word Length (n) | Character Time | Four Character Times |
5 | Time for 8 bits | Time for 32 bits |
6 | Time for 9 bits | Time for 36 bits |
7 | Time for 10 bits | Time for 40 bits |
8 | Time for 11 bits | Time for 44 bits |
|
|
|
SPRU997C | Universal Asynchronous Receiver/Transmitter (UART) 15 |
Submit Documentation Feedback |
|
Copyright © 2009, Texas Instruments Incorporated