background image

SERIES IP503 INDUSTRIAL I/O PACK                  EIA/TIA-232E & CENTRONICS COMMUNICATION MODULE
___________________________________________________________________________________________

- 15 -

FIFO Polled-Mode

Resetting Interrupt Enable Register Bit 0, Bit 1, Bit 2, Bit 3, or

all four to 0, with FIFO Control Register (FCR) Bit 0 =1, puts the
channel into the polled-mode of operation.  The receiver and
transmitter are controlled separately and either one or both may
be in the polled mode.  In FIFO-Polled Mode, there is no time-out
condition indicated or trigger-level reached, the transmit and the
receive FIFO’s simply hold characters and the Line Status
Register must be read to determine the channel status

FIFO-Interrupt Mode

In FIFO Interrupt Mode, data transfer is initiated by reaching

a pre-determined trigger-level or generating a time-out condition.
Please note the following with respect to this mode of operation

When the receiver FIFO and receiver interrupts are enabled,

the following receiver status conditions apply:

1 LSR Bit 0 is set to 1 when a character is transferred from the

shift register to the receiver FIFO.  It is reset to 0 when the
FIFO is empty

2 The receiver line-status interrupt (IIR=06) has a higher priority

than the received data-available interrupt (IIR=04)

3 The receive data-available interrupt is issued to the CPU when

the programmed trigger level is reached by the FIFO.  It is
cleared when the FIFO drops below its programmed trigger .
receive data-available interrupt indication (IIR=04) also
occurs when the FIFO reaches its trigger level, and is cleared
when the FIFO drops below its trigger level

When the receiver FIFO and receiver interrupts are enabled,

the following receiver character time-out status conditions apply:

1 A FIFO character time-out interrupt occurs if:

• 

A minimum of one character is in the FIFO

• 

The last received serial character is longer than four
continuous prior character times ago (if 2 stop bits are
programmed, the second one is included in the time
delay)

• 

The last CPU read of the FIFO is more than four
continuous character times earlier.  At 300 baud, and
with 12-bit characters, the FIFO time-out interrupt
causes a latency of 160ms maximum from received
character to interrupt issued

2 The time-out timer is reset after the CPU reads the receiver

FIFO or after a new character is received when there has
been no time-out interrupt

3 A time-out interrupt is cleared and the timer is reset when the

CPU reads a character from the receiver FIFO

When the transmit FIFO and transmit interrupts are enabled

(FCR Bit 0 = 1 and IER=01), a transmitter interrupt will occur as
follows:

1 When the transmitter FIFO is empty, the transmitter holding

register interrupt (IIR=02) occurs.  The interrupt is cleared
when the Transmitter Holding Register (THR) is written to, or
the Interrupt Identification Register (IIR) is read.  One to
sixteen characters can be written to the transmit FIFO when
servicing this interrupt

2 The transmit FIFO empty indications are delayed one character

time minus the last stop bit time when the following occurs:
Bit 5 of the LSR (THRE) is 1 and there is not a minimum of
two bytes at the same time in the transmit FIFO since the last
time THRE=1The first transmitter interrupt after changing
FCR Bit 0 is immediate, assuming it is enabled

The receiver FIFO trigger level and character time-out

interrupts have the same priority as the received data-available
interrupt.  The Transmitter Holding-Register-Empty interrupt has
the same priority as the Transmitter FIFO-Empty Interrupt

Loopback Mode Operation

This device can be operated in a “loopback mode”, useful for

troubleshooting a serial channel without physically wiring to the
channel.  Bit 4 of the Modem Control Register (MCR) is used to
program the local loopback feature for the UART channel.  When
set high, the UART channel’s serial output line (Transmit Data
Path) is set to the marking (logic 1 state), and the UART receiver
serial data input lines are disconnected from the RxD receiver
path.  The output of the UART transmitter shift register is then
looped back into the receiver shift register input.  Thus, a write to
the Transmitter Holding Register is automatically looped back to
the corresponding Receiver Buffer Register.  Additionally, the four
modem control inputs (CTS, DSR, DCD, and RI) are
disconnected from their receiver input paths.  With modem status
interrupts enabled in the Loopback Mode, the CTS*, DSR*, RI*,
and DCD* inputs are ignored.  Instead, the four modem control
outputs (DTR, RTS, OUT1, and OUT2 of the MCR Register) are
internally connected to the corresponding four modem control
inputs (monitored via the Modem Status Register), while their
associated pins are forced to their high/inactive state.  Thus, in
the loopback diagnostic mode, transmitted data is immediately
received permitting the host processor to verify the transmit and
receive data paths of the selected serial channel.  Further,
modem status interrupt generation is controlled manually in
loopback mode by controlling the state of the four lower order
MCR bits internally, instead of by the external hardware paths.
However, in loopback mode, no interrupt requests or interrupt
vectors will actually be served, the UART only reflects that an
interrupt is pending

Interrupt Generation

This model provides individual control for generation of

transmit, receive, line status, and data set interrupts on each of
two serial channels, and a parallel port.  Each port shares
interrupt request line 0 (Intreq0) according to a unique priority
shifting scheme that prevents the continuous interrupts of one
channel from freezing out another channels’ interrupt requests

After pulling the IntReq0 line low and in response to an

Interrupt Select cycle, the current highest priority interrupt
channel will serve up its interrupt vector first.  Interrupt serving
priority will shift as a function of the last port served.  A unique
interrupt vector may be assigned to each port and is loaded into
the Scratchpad Register (SCR) for the serial port, or the Interrupt
Vector Register for the parallel port.  The IP module will thus
execute a read of the scratchpad/interrupt vector register in
response to an interrupt select cycle.  Two wait states are
required to complete this cycle

Summary of Contents for Series IP503

Page 1: ...tion Module USER S MANUAL ACROMAG INCORPORATED 30765 South Wixom Road P O BOX 437 Wixom MI 48393 7037 U S A Tel 248 624 1541 Fax 248 624 9234 Copyright 1995 Acromag Inc Printed in the USA Data and spe...

Page 2: ...toring system This is especially important where economic property loss or human life is involved It is important that the user employ satisfactory overall system design It is agreed between the Buyer...

Page 3: ...m performance with precision analog I O applications The X suffix of the model number denotes the length in feet Model 5029 944 IP503 Serial Communication Cable A 5 foot long flat 50 pin cable with a...

Page 4: ...n assignments are unique to each IP model see Table 21 and normally correspond to the pin numbers of the field I O interface connector on the carrier board you should verify this for your carrier boar...

Page 5: ...ground to safety ground via any device connected to these ports or a ground loop will be produced and this may adversely affect operation The communication cabling of the P2 interface carries digital...

Page 6: ...ing Little Endian uses even byte addresses to store the low order byte As such use of this module on an ISAbus PC AT carrier board will require the use of the even address locations to access the 8 bi...

Page 7: ...transmitted then data is right justified to the LSB If parity is used then LCR bit 3 parity enable and LCR bit 4 type of parity are required Status for the receiver is provided via the Line Status Reg...

Page 8: ...gh to low transition start bit When the start bit is detected a counter is reset and counts the 16x sampling clock to 7 1 2 which is the center of the start bit The receiver then counts from 0 to 15 t...

Page 9: ...NOT supported by this model FIFO Control Register FCR BIT FUNCTION 0 When set to 1 this bit enables both the Tx and Rx FIFO s All bytes in both FIFO s can be cleared by resetting this bit to 0Data is...

Page 10: ...m Control Register 1 MCR Bit 4 provides a local loopback feature for diagnostic testing of the UART channel When set high the UART serial output connected to the TXD driver is set to the marking logic...

Page 11: ...d by a read of the IIR Line Status Register continued LSR Bit FUNCTION PROGRAMMING 6 Transmitter Empty TEMT 0 Not Empty 1 Transmitter Empty set when both the Transmitter Holding Register THR and the T...

Page 12: ...data lines This register is either output only or bi directional depending on the state of the extended mode bit bit 0 of the LEM register and the data direction control bit bit 5 of the LPC register...

Page 13: ...interrupt source the ACKN line of the parallel port or bit 2 of the LPS register The serial ports and the parallel port interrupts drive INTREQ0 Bit 0 of this register drives the ENIRQ line of the UA...

Page 14: ...atus of each channel can be read by the host CPU at any time during operation Two registers are used to report the status of a serial channel the Line Status Register LSR and the Modem Status Register...

Page 15: ...s the last stop bit time when the following occurs Bit 5 of the LSR THRE is 1 and there is not a minimum of two bytes at the same time in the transmit FIFO since the last time THRE 1The first transmit...

Page 16: ...Divisor Latch Access bit to permit access to the two divisor latch bytes used to set the baud rate These bytes share addresses with the Receive and Transmit buffers and the Interrupt Enable Register...

Page 17: ...puters are considered DTE devices while modems are DCE devices The EIA TIA 232E interface is the fifth revision of this standard and defines an unbalanced single ended transmission standard for unidir...

Page 18: ...ver a null modem cable connection is required to connect two like configured DTE ports due to the imbalance of drivers and receivers see Drawing 4501 572 Pins 1 18 of field I O connector P2 provide co...

Page 19: ...S INPUT BUSY Pin 11 Input Line Printer Busy Active high signal from the printer that is asserted when the printer is not ready to accept more Data The state of this bit is monitored via Bit 7 of the L...

Page 20: ...o obtain parts and repair PRELIMINARY SERVICE PROCEDURE Before beginning repair be sure that all of the procedures in Section 2 Preparation For Use have been followed Also refer to the documentation o...

Page 21: ...t maximum Choose shielded or unshielded cable according to model number The unshielded cable is recommended for digital I O while the shielded cable is recommended for optimum performance with precisi...

Page 22: ...Boards Application This panel converts the high density ribbon cable connectors coming from the APC8600 carrier board Acromag cable Model 5029 900 to screw terminals for direct wired interfaces This p...

Page 23: ......

Page 24: ......

Page 25: ......

Page 26: ......

Page 27: ......

Page 28: ......

Page 29: ......

Page 30: ......

Page 31: ......

Reviews: