background image

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

- 11 -

received, permitting the host processor to verify the transmit
and receive data paths of the selected serial channel.  In this
mode, interrupts are generated by controlling the state of the
four lower order MCR bits internally, instead of by the external
hardware paths.  However, no interrupt requests or interrupt
vectors are actually served in loopback mode, and interrupt
pending status is only reflected internally.

2.   Bits 5-7 are only programmable when the EFR bit 4 is set to

“1”.  The programmed values for these bits are latched when
EFR bit 4 is cleared, preventing existing software from
inadvertently overwriting the extended functions.

A power-up or system reset sets all MCR bits to 0.

LSR - Line Status Register, Ports A-H (Read/Write-Restricted)

The Line Status Register (LSR) provides status indication

corresponding to the data transfer.  LSR bits 1-4 are the error
conditions that produce receiver line-status interrupts (a priority 1
interrupt in the Interrupt Identification Register).  The line status
register may be written, but this is intended for factory test and
should be considered read-only by the application software.

Line Status Register

LSR Bit

FUNCTION

PROGRAMMING

0

Data Ready
(DR)

0 = Not Ready (reset low by CPU
      Read of RBR or FIFO)
1 = Data Ready (set high when
     character received and transferred
     into the RBR or FIFO).

1

Overrun
Error (OE)

0 = No Error
1 = Indicates that data in the RBR is
not being read before the next
character is transferred into the RBR,
overwriting the previous character.  In
the FIFO mode, it is set after the FIFO
is filled and the next character is
received.  The overrun error is detected
by the CPU on the first LSR read after
it happens.  The character in the shift
register is not transferred into the
FIFO, but is overwritten.  This bit is
reset low when the CPU reads the
LSR.

2

Parity Error
(PE)

0 = No Error
1 = Parity Error - the received
character does not have the correct
parity as configured via LCR bits 3 & 4.
This bit is set high on detection of a
parity error and reset low when the host
CPU reads the contents of the LSR.  In
the FIFO mode, the parity error is
associated with a particular character
in the FIFO (LSR Bit 2 reflects the
error when the character is at the top of
the FIFO).

3

Framing
Error (FE)

0 = No Error
1 = Framing Error - Indicates that the
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 FIFO mode, the framing
error is associated with a particular
character in the FIFO (LSR Bit 3
reflects the error when the character is
at the top of the FIFO).

Line Status Register...continued

LSR Bit

FUNCTION

PROGRAMMING

4

Break
Interrupt
(BI)

0 = No Break
1 = Break the received data input has
been held in the space (logic 0) state
for more then a full-word transmission
time (start bits+ data+ parity bit+ stop
bits).  Reset upon read of LSR.  In
FIFO mode, this bit is associated with
a particular character in the FIFO and
reflects the Break Interrupt when the
break character is at the top of the
FIFO.  It is detected by the host CPU
during the first LSR read.  Only one “0”
character is loaded into the FIFO when
BI occurs.

5

Transmitter
Holding
Register
Empty
(THRE)

0 = Not Empty
1 = Empty - indicates that the channel
is ready to accept a new character for
transmission.  Set high when character
is transferred from the THR into the
transmitter shift register.  Reset low by
loading the THR (It is not reset by a
host CPU read of the LSR).  In FIFO
mode, this bit is set when the Tx FIFO
is empty and cleared when one byte is
written to the Tx FIFO.  When a
Transmitter Holding Register Empty
interrupt is enabled by IER bit 1, this
signal causes a priority 3 interrupt in
the ISR.  If the ISR indicates that this
signal is causing the interrupt, the
interrupt is cleared by a read of the
ISR.

6

Transmitter
Empty
(TEMT)

0 = Not Empty
1 = Transmitter Empty - set when
both the Transmitter Holding Register
(THR) and the Transmitter Shift
Register (TSR) are both empty.  Reset
low when a character is loaded into the
THR and remains low until the
character is transmitted (it is not reset
low by a read of the LSR).  In FIFO
mode, this bit is set when both the
transmitter FIFO and shift register are
empty.

7

Receiver
FIFO Error

0 = No Error in FIFO (it is always 0
in 16C450 mode--FCR bit 0 low).
1 = Error in FIFO - set when one of the
following data errors is present in the
FIFO: parity error, framing error, or
break interrupt indication.  Cleared by a
host CPU read of the LSR if there are
no subsequent errors in the FIFO.
FIFO read of offending character is
also required.

Note that LSR Bits 1-4 (OE, PE, FE, BI) are the error conditions

that produce a receiver-line-status interrupt (a priority 1 interrupt in
the ISR register when any one of these conditions are detected).
This interrupt is enabled by setting IER bit 2 to “1”.

A power-up or system reset sets all LSR bits to 0, except bits 5

and 6 which are high.

Содержание 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...

Отзывы: