Iir - Interrupt Identifier Register (Addr = 2) - Multitech SocketModem MT5600SMI-32 Developer's Manual

Mt5600smi family embedded modem
Table of Contents

Advertisement

IIR – Interrupt Identifier Register (Addr = 2)
The Interrupt Identifier Register (IIR) identifies the existence and type of up to five prioritized pending
interrupts. Four priority levels are set to assist interrupt processing in the host. The four levels, in
order of decreasing priority, are Highest: Receiver Line Status, 2: Receiver Data Available or
Receiver Character Timeout. 3: TX Buffer Empty, and 4: Modem Status.
When the IIR is accessed, the modem freezes all interrupts and indicates the highest priority interrupt
pending to the host. Any change occurring in interrupt conditions are not indicated until this access is
complete.
Bits 7-6
FIFO Mode
These two bits copy FCR0.
Bits 5-4
Not Used
Always 0.
Bits 3-1
Highest Priority Pending Interrupt
These three bits identify the highest priority pending interrupt (Table 4-2). Bit 3 is applicable
only when FIFO mode is selected; otherwise, bit 3 is a 0.
Bit 0
Interrupt Pending
When this bit is a 0, an interrupt is pending; IIR bits 1-3 can be used to determine the source
of the interrupt. When this bit is a 1, an interrupt is not
Interrupt Identification Register
Bit 3
Bit 2 Bit 1 Bit 0 Priority
(Note 1)
0
0
0
0
1
1
0
1
0
1
1
0
0
0
1
0
0
0
Notes:
1. FIFO Mode only.
Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer's Guide
Chapter 4 – SocketModem Parallel Interface – A Programmer's Description
Table 4–2. Interrupt Sources and Reset Control
Interrupt Type
Level
1
None
0
Highest Receiver Line
Status
0
2
Received Data
Available
0
2
Character Timeout
1
Indication
0
3
TX Buffer Empty
0
4
Modem Status
pending.
Interrupt Set and Reset Functions
Interrupt Source
None
Overrun Error (OE) (LSR1),
Parity Error (PE) (LSR2),
Framing Error (FE) (LSR3),
or Break Interrupt (BI) (LSR4)
Received Data Available
(LSR0)
or RX FIFO Trigger Level
(FCR6-FCR7)
1
Reached
The RX FIFO contains at
least 1 character and no
characters have been
removed from or input to the
RX FIFO during the last 4
character times.
TX Buffer Empty
Delta CTS (DCTS) (MSR0),
Delta DSR (DDST) (MSR1),
Trailing Edge Ring Indicator
(TERI) (MSR3), or Delta
DCD (DCD) (MSR4)
Interrupt Reset
Control
Reading the LSR
Reading the RX
Buffer or the RX
FIFO drops
below the
Trigger Level
Reading the RX
Buffer
Reading the IIR
or writing to the
TX Buffer
Reading the
MSR
22

Advertisement

Table of Contents
loading

Table of Contents