background image

SERIES IP521 INDUSTRIAL I/O PACK                                EIA/TIA-422B SERIAL COMMUNICATION MODULE
___________________________________________________________________________________________

- 14 -

SIGNALS (INTERNAL & EXTERNAL):

TxD

Reset

High

Interrupt
(RCVR errors)

Read LSR/
Reset

Low

Interrupt
(RCVR data
ready)

Read RCVR
Buffer
Register/
Reset

Low

Interrupt
(THRE)

Read
ISR/Write
THR/Reset

Low

Interrupt
(Modem Status
Changes)

Read MSR/
Reset

Low

RTS*

Reset

High

IP521 PROGRAMMING CONSIDERATIONS

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 particular channel: the Line Status Register (LSR)
and the Modem Status Register (MSR).

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.

The Scratch Pad 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.  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
time-out conditions.  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.

To make programming and communicating with the board

easier, Acromag provides you with the Industrial I/O Pack Software
Library diskette.  The functions provided are written in the “C”
programming language and can be linked into your application.
Refer to the “README.TXT” file in the root directory and the
“INFO521.TXT” file in the “IP521” subdirectory on the diskette for
details.

Acromag also provides a software diskette of IP module Object

Linking and Embedding (OLE) drivers for Windows 95

/NT

compatible application programs (Model IPSW-OLE-PCI, MSDOS
format).  This software provides individual drivers that allow all IP
modules and the APC8620 carrier to be easily integrated into
Windows

 application programs, such as Visual C++

, Visual

Basic

, Borland Delphi

, Microsoft

 Office

 97 applications and

others.  The OLE controls provide a high-level interface to IP
modules, eliminating the need to perform low-level reads/writes of
registers, and the writing of interrupt handlers—all the complicated
details of programming are handled by the OLE controls.  These
functions are intended for use in conjunction with an Acromag
personal computer carrier and consist of a carrier OLE control, and
an OLE control for each Acromag IP module as well as a generic
OLE control for non-Acromag IP modules.

In addition, Acromag provides a software product (sold

separately) consisting of IP module VxWorks

 drivers.  This

software (Model IPSW-API-VXW MSDOS format) is composed of
VxWorks

 (real time operating system) libraries for all Acromag IP

modules and carriers including the AVME9660/9630, APC8610, and
APC8620.  The software is implemented as a library of “C” functions
which when linked with existing user code makes possible simple
control of all Acromag IP modules and carriers.

FIFO Polled-Mode

Resetting all Interrupt Enable Register (IER) bits 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 (ISR=06) has a higher priority

than the received data-available interrupt (ISR=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
level.  The receive data-available interrupt indication (ISR=04)
also occurs when the FIFO reaches its trigger level, and is
cleared when the FIFO drops below its trigger level.

Summary of Contents for IP521-64 Series

Page 1: ...ion 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 1998 Acromag Inc Printed in the USA Data and spec...

Page 2: ...L 5025 552 20 TRANSITION MODULE MODEL TRANS GP 20 DRAWINGS Page 4501 434 IP MECHANICAL ASSEMBLY 21 4501 713 IP521 BLOCK DIAGRAM 22 4501 714 RS422 RS485 INTERFACE DIAGRAM 23 4501 715 RESISTOR SOCKET LO...

Page 3: ...hen the chip is not being used Extended Temperature Performance Option Model IP521 E units support operation from 40 C to 85 C INDUSTRIAL I O PACK INTERFACE FEATURES High density Single size industry...

Page 4: ...e contents of the carton are damaged keep the carton and packing material for the agent s inspection For repairs to a product damaged in shipment refer to the Acromag Service Policy to obtain return i...

Page 5: ...tions without isolation to avoid noise pickup and ground loops caused by multiple ground connections The signal ground connection at the communication ports are common to the IP interface ground which...

Page 6: ...Register DLL Divisor Latch LSB DLM Divisor Latch MSB IER Interrupt Enable Register SCR Scratch Pad Interrupt Vector Register EFR Enhanced Feature Register XON 1 XON 1 Low Byte XON 2 XON 2 High Byte XO...

Page 7: ...ize programmed in the Line Control Register LCR bits 0 1 If less than 8 bits are transmitted then data is right justified to the LSB If parity is used then LCR bit 3 parity enable and LCR bit 4 type o...

Page 8: ...me as possible To better understand the asynchronous timing used by this device note that the receive data line RxD is monitored for a high to low transition start bit When the start bit is detected a...

Page 9: ...Status Register 5 010000 Received Xoff signal special character 6 100000 CTS RTS change of state Note that ISR bit 0 can be used to indicate whether an interrupt is pending bit 0 low when interrupt i...

Page 10: ...uffer Register RBR the Transmitter Holding Register THR or the Interrupt Enable Register IER A power up or system reset sets all LCR bits to 0 A detailed discussion of word length stop bits parity and...

Page 11: ...he received character does not have a valid stop bit stop bit following last data bit or parity bit detected as a zero space bit This bit is reset low when the CPU reads the contents of the LSR In FIF...

Page 12: ...IP module The EXAR UART maintains compatibility with the industry standard 16C554 654 and 68C554 654 UARTs and provides new features to enhance serial communication operation The new features provide...

Page 13: ...21 ID Space does not contain any variable e g unique calibration information ID Space bytes are addressed using only the odd addresses in a 64 byte block on the Big Endian VMEbus Even addresses are us...

Page 14: ...rial I O Pack Software Library diskette The functions provided are written in the C programming language and can be linked into your application Refer to the README TXT file in the root directory and...

Page 15: ...cted serial channel Further modem status interrupt generation is controlled manually in loopback mode by controlling the state of CTS internally Interrupt Generation This model provides individual con...

Page 16: ...0 baud i e 9600 14 7456MHz 16 96 3 Write 0BH to the Line Control Register LCR This first turns off the Divisor Latch Access bit to cause accesses to the Receiver and Transmit buffers and the Interrupt...

Page 17: ...ciations EIA TIA 422B BINARY 0 SPACE OFF BINARY 1 MARK ON SIGNAL A to B to Positive Differential Voltage Negative Differential Voltage Start and stop bits are used to synchronize the DCE to the asynch...

Page 18: ...nsmitter The line drivers convert the UART TTL levels to the EIA TIA 422B voltage levels The UART provides the necessary conversion from serial to parallel receive and parallel to serial transmit for...

Page 19: ...lass A product In a domestic environment this product may cause radio interference in which the user may be required to take adequate measures UART EXAR XR16C654 RS422 RS485 PORTS Channel Configuratio...

Page 20: ...0 3U 6U APC8610 or APC8620 non intelligent carrier boards field connectors only via a flat ribbon cable Model 5025 551 x The A D connectors on the carrier board connect the field I O signals to the P2...

Page 21: ...SERIES IP521 INDUSTRIAL I O PACK EIA TIA 422B SERIAL COMMUNICATION MODULE ___________________________________________________________________________________________ 21...

Page 22: ...BIAS RESISTOR RB SIPS ARE MOUNTED IN SOCKETS AND MAY BE REMOVED IF REQUIRED P O R T A B R RxD RxD TxD TxD R T R T R B 5V R RxD RxD PORTS B to G TxD R B T R B R TxD T 5V P O R T H ADDRESS BUS DATA BUS...

Page 23: ...TS ARE TRANSMITTING 2 ALL RS422 RS485 TRANSMITTING AND RECEIVING CHANNELS MAY HAVE TERMINATING RESISTORS RT AT BOTH ENDS OF THE NETWORK THE IP521 HAS THESE RESISTORS 120 OHM INSTALLED IN SOCKETS AND T...

Page 24: ...VIDED AS SHOWN 1 P2 A R25 A R25 B R25 C R25 D R24 D R26 A SIP R23 A R23 B R23 C R23 D R24 A R24 B R24 C VALUE 120 OHM 120 OHM 120 OHM 120 OHM 120 OHM 120 OHM 120 OHM 120 OHM 120 OHM 120 OHM 120 OHM 12...

Page 25: ...SERIES IP521 INDUSTRIAL I O PACK EIA TIA 422B SERIAL COMMUNICATION MODULE ___________________________________________________________________________________________ 25...

Page 26: ...SERIES IP521 INDUSTRIAL I O PACK EIA TIA 422B SERIAL COMMUNICATION MODULE ___________________________________________________________________________________________ 26...

Page 27: ...SERIES IP521 INDUSTRIAL I O PACK EIA TIA 422B SERIAL COMMUNICATION MODULE ___________________________________________________________________________________________ 27...

Page 28: ...SERIES IP521 INDUSTRIAL I O PACK EIA TIA 422B SERIAL COMMUNICATION MODULE ___________________________________________________________________________________________ 28...

Reviews: