Acromag IP511 Series User Manual Download Page 17

SERIES IP511 INDUSTRIAL I/O PACK                ISOLATED QUAD EIA/TIA-422B COMMUNICATION MODULE
___________________________________________________________________________________________

- 17 -

In the 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 can be controlled manually in loopback mode by
controlling the state of the four lower order MCR bits internally, instead
of by external hardware paths (these handshake lines are not used for
this model).  However, in loopback mode, no interrupt requests or
interrupt vectors will actually be served, the UART only reflects that an
interrupt is pending.

Interrupt Generation

This model provides individual control for generation of transmit,

receive, line status, and data set interrupts on each of four 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 other 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 up
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 Scratchpad Register
(SCR) for the port.  The IP module will thus execute a read of the
Scratchpad 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, then followed by port D.
However, if port A was the last interrupt serviced, then port B will have
the highest priority, followed by port C, followed by port D, 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 IP511-64 Only)

Model IP511-64 modules includes 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 excess 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 excess 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 Identification register
will be set (IIR 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).  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 Identification 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 stack it into the
data buffer or FIFO and these conditions are configured via bits 0-3 of
the Enhanced Feature Register (EFR).

Programming Example

The following example will demonstrate data transfer between one

channel of the host IP511-16 and another node.  Both nodes will use
the FIFO mode of operation with a FIFO threshold set at 14 bytes.  The
data format will use 8-bit characters, odd-parity, and 1 stop bit.  Please
refer to Table 3.1 for address locations.  The “H” following data below
refers to the Hexadecimal data format.

1.   Write 80H to the Line Control Register (LCR).

This sets the Divisor Latch Access bit to permit access to the two
divisor latch bytes used to set the baud rate.  These bytes share
addresses with the Receive and Transmit buffers, and the Interrupt
Enable Register (IER).

Summary of Contents for IP511 Series

Page 1: ...tion 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 1996 Acromag Inc Printed in the USA Data and spe...

Page 2: ...ystem This is especially 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 Acr...

Page 3: ...er Acromag IP modules are also available to serve your signal conditioning and interface needs Note Since all connections to field signals are made through the carrier board which passes them to the i...

Page 4: ...ive data paths This SIP can be easily removed or replaced if required see Drawing 4501 581 4501 582 Network Termination Bias Resistor Placement You need to consider your network application carefully...

Page 5: ...h To the communication network master this line pair is used as the transmit data path To the communication network slave this line pair comprises the receive data path Because a separate pair of line...

Page 6: ...ides excellent connection integrity and utilizes gold plating in the mating area Threaded metric M2 screws and spacers are supplied with the IP module to provide additional stability for harsh environ...

Page 7: ...Port A Line Control Register 07 08 Not Driven1 R W MCR Port A Modem Control Register 09 0A Not Driven1 R W LSR Port A Line Status Register 0B 0C Not Driven1 R W MSR Port A Modem Status Register 0D 0E...

Page 8: ...R W SCR Port C Scratch Pad Interrupt Vector Register 2F Shaded register entries apply to Model IP511 64 only and are accessible after writing BF to the Line Control Register LCR Table 3 1 IP511 I O Sp...

Page 9: ...g an invalid data character due to a low going noise spike on RxD If the data on RxD is a symmetrical square wave the center of the data cells will occur within 3 125 of the actual center providing an...

Page 10: ...extended register functionality of IER bits 4 7 IIR bits 4 5 FCR bits 4 5 and MCR bits 5 7 It is also used to program software flow control Note that bits 6 7 are used for hardware flow control but th...

Page 11: ...7 NO FUNCTION FOR MODEL IP511 0 Disable the CTS interrupt 1 Enable the generation of the CTS interrupt when CTS changes from a low to high state The IP511 does not implement the CTS line and this bit...

Page 12: ...FO TRIGGER LEVEL 00 01 Bytes 08 Bytes for IP511 64 Models 01 04 Bytes 16 Bytes for IP511 64 Models 10 08 Bytes 56 Bytes for IP511 64 Models 11 14 Bytes 60 Bytes for IP511 64 Models LCR Line Control Re...

Page 13: ...the selected serial channel In Loopback 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 interru...

Page 14: ...errupt a priority 1 interrupt in the IIR 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 ex...

Page 15: ...Low Interrupt Modem Status Changes Read MSR Reset Low OUT1 Reset High OUT2 Reset High After a power up the isolation buffer s output is initialized high As a result the very first bit transmitted or...

Page 16: ...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 int...

Page 17: ...oo quickly to be processed or buffered thus preventing the loss of excess data The flow control characters are stored in the XON 1 2 and XOFF 1 2 registers Two XON XOFF registers are provided because...

Page 18: ...functionality of the circuitry used on the board is also included Refer to the Block Diagram Drawing 4501 583 Interface Diagram Drawing 4501 581 and Interface Level Diagram Drawing 4501 584 as you re...

Page 19: ...nsmit the byte Two other parity formats not supported by this module are mark parity and space parity Mark parity specifies that the parity bit will always be a logical 1 space parity requires the par...

Page 20: ...ed isolated only when isolated external port power is provided to the port Optionally the port may use P1 power by programming the power and common jumpers appropriately In this mode the port is consi...

Page 21: ...o RFI No data upsets occur for field strengths up to 10V per meter at 27MHz 151MHz 460MHz per SAMA PMC 33 1 test procedures Resistance to EMI Unit has been tested with no data upsets under the influen...

Page 22: ...performance with precision analog I O applications Application Used to connect a Model 5025 552 termination panel to the AVME9630 9660 non intelligent carrier board A D connectors both have 50 pin con...

Page 23: ...r Boards Application This panel converts the high density ribbon cable connectors coming from the APC8600 carrier board Acromag cable Model 5029 900 to screw terminals for direct wired interfaces This...

Page 24: ......

Page 25: ......

Page 26: ......

Page 27: ......

Page 28: ......

Page 29: ......

Page 30: ......

Page 31: ......

Page 32: ......

Page 33: ......

Reviews: