background image

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

- 15 -

When the receiver FIFO and receiver interrupts are enabled, the

following receiver FIFO 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 (including start, stop, and parity bits), the
FIFO time-out interrupt causes a latency of 160ms
maximum from received character to interrupt issued.

2.   From the clock signal input, the character times can be

calculated.  The delay is proportional to the baud rate.

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

4.   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 (ISR=02) occurs.  The interrupt is cleared
when the Transmitter Holding Register (THR) is written to or the
Interrupt Status Register (ISR) is read.  One to 128 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=1.  The 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.  The RTS modem control output (of the
MCR Register) is internally connected to the corresponding modem
control input (monitored via the Modem Status Register), while their
associated pins are forced to their high/inactive state.  Thus, in
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 CTS internally.

Interrupt Generation

This model provides individual control for generation of transmit,

receive, line status, and data set interrupts on each of eight
channels.  Each channel 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 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 communication port and is loaded into the
Scratch Pad Register (SCR) for the port.  The IP module will thus
execute a read of the scratch pad register in response to an interrupt
select cycle.  Two wait states are required to complete this cycle.

Interrupt priority is assigned as follows.  Initially, with no prior

interrupt history, Port A has the highest priority and will be served
first, followed by port B, followed by port C etc. to Port H.  However,
if port A was the last interrupt serviced, then port B will have the
highest priority, followed by port C, etc. to Port H, then port A, in a
last-serviced last-out fashion.  Priority continues to shift in the same
fashion if Port B or Port C was the last interrupt serviced.  This is
useful in preventing continuous interrupts on one channel from
freezing out interrupt service for other channels.

Software Flow Control

Model IP521-64 modules include support for software flow

control.  Software flow control utilizes special XON & XOFF
characters to control the flow of data, for more efficient data transfer
and to minimize overrun errors.

Software flow control (sometimes called XON/XOFF pacing)

sends a signal from one node to another by adding flow control
characters to the data stream.  The receiving node will detect the
XON or XOFF character and respond by suspending transmission
of data (XOFF turns the data flow off), or resuming transmission of
data (XON turns the data flow on).  Flow control is used frequently in
data communications to prevent overrun errors or the loss of data.
For example, a node might transmit the XOFF character to the host
computer if the host is sending data too quickly to be processed or
buffered, thus preventing the loss of data.

The flow control characters are stored in the XON-1,2 and

XOFF-1,2 registers.  Two XON & XOFF registers are provided
because the flow control character may be 1 or 2 bytes long.  The
contents of the XON-1,2  and XOFF-1,2 registers are reset to “0”
upon power-up or system reset, and may be programmed to any
value for software flow control.  Different conditions may be set to
detect the XON/XOFF characters or start/stop the transmission.

When software flow control is enabled, the UART of this model

will compare two sequential received data bytes with preprogrammed
XOFF-1,2 characters.  When an XOFF match is detected, the
UART will halt transmission after completing the transmission of the
current character.  The receive ready flag of the Interrupt Status
register will be set (ISR bit 4 is set to “1” when the XOFF character
has been detected), only if enabled via bit 5 of the Interrupt Enable
register (IER bit 5 is used to enable the received XOFF interrupt)
and bit-3 of the MCR.  An interrupt will then be generated.  After

Содержание IP521-64 Series

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 21: ...SERIES IP521 INDUSTRIAL I O PACK EIA TIA 422B SERIAL COMMUNICATION MODULE ___________________________________________________________________________________________ 21...

Страница 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...

Страница 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...

Страница 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...

Страница 25: ...SERIES IP521 INDUSTRIAL I O PACK EIA TIA 422B SERIAL COMMUNICATION MODULE ___________________________________________________________________________________________ 25...

Страница 26: ...SERIES IP521 INDUSTRIAL I O PACK EIA TIA 422B SERIAL COMMUNICATION MODULE ___________________________________________________________________________________________ 26...

Страница 27: ...SERIES IP521 INDUSTRIAL I O PACK EIA TIA 422B SERIAL COMMUNICATION MODULE ___________________________________________________________________________________________ 27...

Страница 28: ...SERIES IP521 INDUSTRIAL I O PACK EIA TIA 422B SERIAL COMMUNICATION MODULE ___________________________________________________________________________________________ 28...

Отзывы: