background image

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

- 14 -

THE EFFECT OF RESET

A software or hardware reset puts the serial channels into an

idle-mode until initialization (programming)A reset initializes the
receiver and transmitter clock counters.  It also clears the Line
Status Register (LSR), except for the Transmitter Shift-Register
Empty (TEMT) and Transmit Holding-Register Empty (THRE) bits
which are set to 1 (note that when interrupts are subsequently
enabled, an interrupt will occur due to THRE being set)The
Modem Control Register (MCR) is also cleared.  All of the
discrete signal lines, memory elements, and miscellaneous logic
associated with these register bits are cleared, deasserted, or
turned off.  However, the Line Control Register (LCR), divisor
latches, receiver buffer register, and transmitter buffer register
are not affected.  The following table summarizes the effect of a
reset on the various registers and internal/external signals:

REGISTER/
SIGNAL

RESET
CONTROL

STATE/ EFFECT

REGISTERS:
IER

Reset

All Bits low (Bits 0-3
forced low, Bits 4-7
permanently low)

IIR

Reset

Bit 0 high, Bits 1,2,3,6,7
low, Bits 4 & 5
permanently low

LCR

Reset

All bits low

MCR

Reset

All bits low (bits 5-7
permanently low)

FCR

Reset

All bits low

LSR

Reset

All bits low, except bits 5
& 6 are high

MSR

Reset

Bits 0-3 low, bits 4-7 per
corresponding input signal

LPC

Reset

All Bits low

LIV

Reset

All bits low

LEM

Reset

Bit 0 low (Bits 1-7 not
used)

LIM

Reset

Bit 0 high (PS-2 Mode)
(Bits 1-7 not used)

SIGNALS (INTERNAL & EXTERNAL):
TxD

Reset

High

Interrupt
(RCVR errors)

Read LSR/
Reset

Low

Interrupt
(RCVR data
ready)

Read RBR/
Reset

Low

Interrupt
(THRE)

Read IIR/Write
THR/Reset

Low

Interrupt
(Modem Status
Changes)

Read MSR/
Reset

Low

RTS*

Reset

High

DTR*

Reset

High

OUT1*

Reset

High

OUT2*

Reset

High

IP503 PROGRAMMING

Each serial channel of this module is programmed by the

control registers: LCR, IER, DLL, DLM, MCR, and FCR.  These
control words define the character length, number of stop bits,
parity, baud rate, and modem interface.  The control registers can
be written in any order, but the IER register should be written last
since it controls the interrupt enables. The contents of these
registers can be updated any time the serial channel is not
transmitting or receiving data

The complete status 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 (MSR)A third register, the
Line Printer Status Register (LPS), monitors the status of the
Centronics parallel port

Serial channel data is read from the Receiver Buffer Register

(RBR), and written to the Transmitter Holding Register
(THR)Writing data to the THR initiates the parallel-to-serial
transmitter shift register to the TxD line.  Likewise, input data is
shifted from the RxD pin to the Receiver Buffer Register as it is
received.  Parallel data is written to or read from the Line Printer
Data Register (LPT)

The Scratchpad/Interrupt Vector Register is used to store the

interrupt vector for the port In response to an interrupt select
cycle, the IP module will provide a read of this port register.  As
such, each port may have a unique interrupt vector assigned.
Interrupts are served in a shifting-priority fashion as a function of
the last interrupting port serviced to prevent continuous interrupts
from a higher-priority interrupt channel from freezing out service
of a lower priority channel

This board operates in two different modes.  In one mode,

this device remains software compatible with the industry
standard 16C450 family of UART’s and provides double-buffering
of data registers.  In the FIFO mode (enabled via bit 0 of the FCR
register), data registers are FIFO-buffered so that read and write
operations can be performed while the UART is performing serial-
to-parallel and parallel-to-serial conversions

Two FIFO modes of operation are possible: FIFO Interrupt

Mode and FIFO Polled Mode.  In FIFO Interrupt Mode, data
transfer is initiated by reaching a pre-determined trigger-level or
generating a time-out condition.  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

Acromag provides an Industrial I/O Pack Software Library

diskette (Model IPSW-LIB-M03, MSDOS format) to simplify
communication with the board.  Example software functions are
provided for both ISAbus (PC/AT) and VMEbus applicatIons.  All
functions are written in the “C” programming language and can be
linked to your applicatIon.  For more details, refer to the
“READMETXT” file in the root directory on the diskette and the
“INFO503TXT” file in the appropriate “IP503” subdirectory off of
“\VMEIP” or “\PCIP”, according to your carrier

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: