Texas Instruments TMS320DM643X DMP Interrupt Identification Register IIR, Access consideration

Page 25

www.ti.com

Registers

3.4Interrupt Identification Register (IIR)

The interrupt identification register (IIR) is a read-only register at the same address as the FIFO control register (FCR), which is a write-only register. When an interrupt is generated and enabled in the interrupt enable register (IER), IIR indicates that an interrupt is pending in the IPEND bit and encodes the type of interrupt in the INTID bits. IIR is shown in Figure 12 and described in Figure 12.

The UART has an on-chip interrupt generation and prioritization capability that permits flexible communication with the CPU. The UART provides three priority levels of interrupts:

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 non-FIFO mode.

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R-0

 

 

 

 

 

 

15

8

7

6

5

4

3

1

0

 

 

 

 

 

 

 

 

Reserved

 

 

FIFOEN

Reserved

 

INTID

IPEND

 

 

 

 

 

 

 

 

 

 

R-0

 

 

 

R-0

 

R-0

 

R-0

R-1

LEGEND: R = Read only; -n= value after reset

Table 10. Interrupt Identification Register (IIR) Field Descriptions

Bit

Field

Value

Description

 

 

 

 

31-8

Reserved

0

Reserved

 

 

 

 

7-6

FIFOEN

0-3h

FIFOs enabled.

 

 

0

Non-FIFO mode

 

 

1h-2h

Reserved

 

 

3h

FIFOs are enabled. FIFOEN bit in the FIFO control register (FCR) is set to 1.

 

 

 

 

5-4

Reserved

0

Reserved

 

 

 

 

3-1

INTID

0-7h

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)

 

 

4h-5h

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 –December 2009

Universal Asynchronous Receiver/Transmitter (UART)

25

Submit Documentation Feedback

 

 

Copyright © 2009, Texas Instruments Incorporated

Image 25
Contents Users Guide Submit Documentation Feedback Appendix a Revision HistoryList of Figures List of Tables Read This First Purpose of the Peripheral FeaturesUart Supported Features/Characteristics by Instance Functional Block DiagramFeature Support Industry Standards Compliance StatementFifo Uart Block DiagramUart Clock Generation and ControlDlhdll BclkBaud Rate Examples for 27 MHz Uart Input Clock Baud Rate Divisor Value Actual Baud Rate Error %Start Parity STOP1 STOP2 Pin Multiplexing Signal DescriptionsProtocol Description Data Format Endianness ConsiderationsParity STOP1 ParityOperation Character Time for Word Lengths Fifo ModesCharacter Time Four Character Times Autoflow Control Uart Interface Using Autoflow DiagramLoopback Control Autoflow Functional Timing Waveforms for RTSInitialization Reset ConsiderationsInterrupt Support Uart Interrupt Requests Descriptions Enable bitsUart Interrupt Request Interrupt Source CommentDMA Event Support Power ManagementEmulation Considerations Exception Processing Changing Operating Mode During Busy Serial CommunicationDivisor Latch Not Programmed Uart RegistersReceiver Buffer Register RBR Access considerationsReceiver Buffer Register RBR Field Descriptions Bit FieldTransmitter Holding Register THR Field Descriptions Transmitter Holding Register THRBit Field Value Description Interrupt Enable Register IER Field Descriptions Interrupt Enable Register IERElsi Etbei Erbi ElsiInterrupt Identification Register IIR Access considerationInterrupt Identification Register IIR Field Descriptions Interrupt Identification and Interrupt Clearing Information Fifo Control Register FCRIIR Bits Interrupt Type Interrupt SourceRxfiftl Fifo Control Register FCR Field DescriptionsDMAMODE11 Txclr Rxclr Fifoen DMAMODE1Line Control Register LCR Field Descriptions Line Control Register LCRDlab EPS PEN STB WLS DlabNumber of Stop Bits Generated Relationship Between ST, EPS, and PEN Bits in LCRST Bit EPS Bit PEN Bit Parity Option STB BitModem Control Register MCR Field Descriptions Modem Control Register MCRLoop AFEFifo mode Non-FIFO modeLine Status Register LSR Line Status Register LSR Field DescriptionsSet Elsi = 1 in IER, an interrupt request is generated Register RBR Divisor Latches DLL and DLHDivisor MSB Latch DLH Field Descriptions Divisor LSB Latch DLL Field DescriptionsCLS REV Peripheral Identification Registers PID1 and PID2CLS TYPUtrst Urrst Power and Emulation Management Register PwremumgmtFree UtrstReference Additions/Modifications/Deletions Document Revision HistoryImportant Notice
Related manuals
Manual 120 pages 29.22 Kb