Chapter 4 – SocketModem Parallel Interface – A Programmer's Description

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 pending.

Table 4–2. Interrupt Sources and Reset Control

Interrupt Identification Register

Interrupt Set and Reset Functions

Bit 3

Bit 2

Bit 1

Bit 0

Priority

Interrupt Type

Interrupt Source

Interrupt Reset

(Note 1)

 

 

 

Level

 

 

Control

0

0

0

1

None

None

0

1

1

0

Highest

Receiver Line

Overrun Error (OE) (LSR1),

Reading the LSR

 

 

 

 

 

Status

Parity Error (PE) (LSR2),

 

 

 

 

 

 

 

Framing Error (FE) (LSR3),

 

 

 

 

 

 

 

or Break Interrupt (BI) (LSR4)

 

0

1

0

0

2

Received Data

Received Data Available

Reading the RX

 

 

 

 

 

Available

(LSR0)

Buffer or the RX

 

 

 

 

 

 

or RX FIFO Trigger Level

FIFO drops

 

 

 

 

 

 

(FCR6-FCR7)

below the

 

 

 

 

 

 

Reached1

Trigger Level

1

1

0

0

2

Character Timeout

The RX FIFO contains at

Reading the RX

 

 

 

 

 

Indication1

least 1 character and no

Buffer

 

 

 

 

 

 

characters have been

 

 

 

 

 

 

 

removed from or input to the

 

 

 

 

 

 

 

RX FIFO during the last 4

 

 

 

 

 

 

 

character times.

 

0

0

1

0

3

TX Buffer Empty

TX Buffer Empty

Reading the IIR

 

 

 

 

 

 

 

or writing to the

 

 

 

 

 

 

 

TX Buffer

0

0

0

0

4

Modem Status

Delta CTS (DCTS) (MSR0),

Reading the

 

 

 

 

 

 

Delta DSR (DDST) (MSR1),

MSR

 

 

 

 

 

 

Trailing Edge Ring Indicator

 

 

 

 

 

 

 

(TERI) (MSR3), or Delta

 

 

 

 

 

 

 

DCD (DCD) (MSR4)

 

 

 

 

 

 

 

 

 

Notes:

 

 

 

 

 

 

 

1. FIFO Mode only.

 

 

 

 

 

Multi-Tech Systems, Inc. SocketModem MT5600SMI Developer’s Guide

22

Page 22
Image 22
Multi-Tech Systems MT5600SMI-P34, MT5600SMI-XL34 manual IIR Interrupt Identifier Register Addr =, Bit Interrupt Pending