background image

SERIES IOS-521 I/O SERVER MODULE                            EIA/TIA-422B SERIAL COMMUNICATION MODULE 
__________________________________________________________________________________________

 

- 13 - 

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 

 
IOS-521 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 IOS 
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. 

 
 

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. 

 

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 

Summary of Contents for IOS-521 Series

Page 1: ...G INCORPORATED Tel 248 295 0310 30765 South Wixom Road Fax 248 624 9234 P O BOX 437 Wixom MI 48393 7037 U S A solutions acromag com Copyright 2009 2011 Acromag Inc Printed in the USA Data and specific...

Page 2: ...pecially 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 and Acromag that this i...

Page 3: ...ver Modules installed on Acromag Industrial I O Server systems This software Model IOSSW DEV WIN consists of a low level driver and Windows 32 Dynamic Link Libraries DLLS that are compatible with a nu...

Page 4: ...nd which is typically common to safety chassis ground when mounted on a carrier board and inserted in a backplane As such be careful not to attach signal ground to safety ground via any device connect...

Page 5: ...1 R W Xoff 2 High Byte BF Hex 0E 11 1F Not Driven1 Port B Registers Organized as Port A3 10 1E 21 2F Not Driven1 Port C Registers Organized as Port A3 20 2E 31 3F Not Driven1 Port D Registers Organize...

Page 6: ...lag in the LSR register will be set to a logic 1 when at least one FIFO location is available DLL DLM Divisor Latch Registers Ports A H R W The Divisor Latch Registers form the divisor used by the int...

Page 7: ...ansitions from a logic 0 to a logic 1 RTS is not output by this module Instead RTS is used to enable the transmitter of the port This interrupt should always be disabled 71 0 Disable CTS Interrupt 1 E...

Page 8: ...register control the format of the data character as follows Line Control Register LCR Bit FUNCTION PROGRAMMING 1 0 Word Length Sel 0 0 5 Data Bits 0 1 6 Data Bits 1 0 7 Data Bits 1 1 8 Data Bits 2 S...

Page 9: ...ne The crystal frequency is unchanged 1 Divide by four After the crystal frequency is divided by 16 it is further divided by 4 see Table 3 2 Notes Modem Control Register 1 MCR Bit 4 provides a local l...

Page 10: ...f 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 wor...

Page 11: ...1 IOS 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 provi...

Page 12: ...nformation includes unique information required for the module The IOS 521 ID Space does not contain any variable e g unique calibration information ID Space bytes are addressed using only the even ad...

Page 13: ...ive FIFO s simply hold characters and the Line Status Register must be read to determine the channel status FIFO Polled Mode Resetting all Interrupt Enable Register IER bits to 0 with FIFO Control Reg...

Page 14: ...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 interrupt...

Page 15: ...s the first step to enable the receiver line status interrupt Note bit 3 of the MCR must also be set to logic 1 to enable interrupts The line status interrupt is used to signal error cases such as par...

Page 16: ...gic 1 by a negative voltage The line receivers convert these signals to the conventional TTL level associations EIA TIA 422B BINARY 0 SPACE OFF BINARY 1 MARK ON SIGNAL A to B to Positive Differential...

Page 17: ...serted An Asterisk is used to indicate an active low signal IOS 521 OPERATION Connection to each serial port is provided through connector P2 refer to Table 2 1 These pins are tied to the inputs and o...

Page 18: ...ake adequate measures UART EXAR XR16C654 RS422 RS485 PORTS Channel Configuration Eight independent non isolated EIA TIA 422B serial ports with a common signal return connection Data Rate 921 6K bits s...

Page 19: ...COMMON GND IOS 521 BLOCK DIAGRAM T T T B R R R R I O RS 422B INTERFACE RxD RS 422 485 DRIVERS RECEIVERS RxD TxD PORT I O CONTROL BUS ADDRESS BUS 5V CONTROL LOGIC SUPPLY FILTERING NOTE TERMINATION RES...

Page 20: ...TE OF THE TxD RxD DATA PAIRS ARE HIGH ON TxD RxD THIS CORRESPONDS TO A MARK 1 ON THE DATA LINE NOTES CONCERNING RESISTOR PLACEMENT AND REMOVAL FOR RT AND RB 4 THE TxD LINE SOURCED FROMA PORT CAN BE PE...

Page 21: ...PORT C RxD H TERMINATION TxD C TERMINATION RxD C TERMINATION 120 OHM 120 OHM 120 OHM PORT E TxD E TERMINATION PORT H PORT E RxD E TERMINATION TxD H TERMINATION 120 OHM 120 OHM 120 OHM PORT B RxD B TER...

Reviews: