background image

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

 

- 14 - 

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 
IOS 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 IOS-521-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 recognition of the XOFF characters, 
the UART will compare the next two incoming characters with the 
preprogrammed XON-1,2 characters.  If a match is detected, the 
UART will resume transmission and clear the received XOFF 
interrupt flag (Interrupt Status Register bit 4).  After more data 
has been received, the UART will automatically send XOFF-1,2 
characters as soon as the received data passes the programmed 
FIFO trigger level, causing the host to suspend transmission.  
The UART will then transmit the programmed XON-1,2 
characters as soon as the received data reaches the next lowest 
trigger level, thus causing the host to resume transmission 
(received data trigger levels are 8, 16, 56, and 60). 
 

When single XON/XOFF characters are selected, the UART 

compares the received data to these values and controls the 
transmission accordingly (XON=restart transmission, 
XOFF=suspend transmission).  These characters are not stacked 
in the data buffer or FIFO.  When the 

ANY

 XON function is 

enabled (MCR bit 5 is set), the UART will automatically resume 
transmission after receiving 

ANY

 character after having 

recognized XOFF and suspended transmission.  Note that the 
UART will automatically transmit the XON character(s) after the 
flow control function is disabled, if the XOFF character(s) had 
been sent prior to disabling the software flow control function.  
Special cases are provided to detect the special character and 

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: