www.ti.com | Registers |
3.4Interrupt Identification Register (IIR)
The interrupt identification register (IIR) is a
The UART has an
•Priority 1 - Receiver line status (highest priority)
•Priority 2 - Receiver data ready or receiver timeout
•Priority 3 - Transmitter holding register empty
The FIFOEN bit in IIR can be checked to determine whether the UART is in the FIFO mode or the
Access consideration:
IIR and FCR share one address. Regardless of the value of the DLAB bit in LCR, reading from the address gives the content of IIR, and writing to the address modifies FCR.
Figure 12. Interrupt Identification Register (IIR)
31 |
|
|
|
|
|
|
|
| 16 |
| Reserved |
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
| ||
15 | 8 | 7 | 6 | 5 | 4 | 3 | 1 | 0 | |
|
|
|
|
|
|
|
| ||
Reserved |
|
| FIFOEN | Reserved |
| INTID | IPEND | ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LEGEND: R = Read only;
Table 10. Interrupt Identification Register (IIR) Field Descriptions
Bit | Field | Value | Description |
|
|
|
|
Reserved | 0 | Reserved | |
|
|
|
|
FIFOEN | FIFOs enabled. | ||
|
| 0 | |
|
| Reserved | |
|
| 3h | FIFOs are enabled. FIFOEN bit in the FIFO control register (FCR) is set to 1. |
|
|
|
|
Reserved | 0 | Reserved | |
|
|
|
|
INTID | Interrupt type. See Table 11. | ||
|
| 0 | Reserved |
|
| 1h | Transmitter holding register empty (priority 3) |
|
| 2h | Receiver data available (priority 2) |
|
| 3h | Receiver line status (priority 1, highest) |
|
| Reserved | |
|
| 6h | Character timeout indication (priority 2) |
|
| 7h | Reserved |
|
|
|
|
0 | IPEND |
| Interrupt pending. When any UART interrupt is generated and is enabled in IER, IPEND is forced to 0. |
|
|
| IPEND remains 0 until all pending interrupts are cleared or until a hardware reset occurs. If no interrupts |
|
|
| are enabled, IPEND is never forced to 0. |
|
| 0 | Interrupts pending. |
|
| 1 | No interrupts pending. |
|
|
|
|
SPRU997C | Universal Asynchronous Receiver/Transmitter (UART) | 25 |
Submit Documentation Feedback |
|
|
Copyright © 2009, Texas Instruments Incorporated