background image

SERIES IP503 INDUSTRIAL I/O PACK                  EIA/TIA-232E & CENTRONICS COMMUNICATION MODULE
___________________________________________________________________________________________

- 8 -

Upon loading either latch, a 16-bit baud counter is

immediately loaded (this prevents long counts on initial load)The
clock may be divided by any divisor from 1 to 2

(16-1)

The output

frequency of the baud rate generator (RCLK) is 16x the data rate.
The relationship between the output of the baud generator
(RCLK), the baud rate, the divisor, and the 8MHz system clock
can be summarized in the following equations:

DIVISOR = CLOCK FREQUENCY 

÷

 [BAUD RATE x 16];

RCLK= 16 x BAUD RATE;
= 16 x [CLOCK 

÷

 (16 x DIVISOR)] = CLOCK 

÷

 DIVISOR

The following table shows the correct divisor to use for

generation of some standard baud rates (based on the 8MHz
clock)Note that baud rates up to 512K may be configured, but the
EIA/TIA-232E drivers of this module limit data rates to 128Kbps
maximum for performance within rated load specifications.
However, limited performance at 256Kbps and 512Kbs is
possible, but not recommended or guaranteed

Table 32:Baud Rate Divisors and Relative Error (8MHz Clk)

BAUD RATE
DESIRED

DIVISOR (N)
USED FOR 16x
CLOCK

% ERROR DIFF BET
DESIRED & ACTUAL

50

10000

2710H

0

75

6667

1A06H

0005

110

4545

11C1H

0010

1345

3717

0E85H

0013

150

3333

0D05H

0010

300

1667

0683H

0020

600

833

0341H

0040

1200

417

01A1H

0080

1800

277

0115H

0080

2000

250

00FAH

0

2400

208

00D0H

0160

3600

139

0086H

0080

4800

104

0068H

0160

7200

69

0045H

0644

9600

52

0034H

0160

19200

26

001AH

0160

38400

13

000DH

0160

56000

9

0009H

0790

128000

4

0004H

2344

256000

2

0002H

2344

512000

1

0001H

2400

SHADED entries are not recommended due to driver limitations

With respect to this device, the baud rate may be considered

equal to the number of bits transmitted per second (bps)The bit
rate (bps), or baud rate, defines the bit time.  This is the length of
time a bit will be held on before the next bit is transmitted.  A
receiver and transmitter must be communicating at the same bit
rate, or data will be garbled.  A receiver is alerted to an incoming
character by the start bit, which marks the beginning of the
character.  It then times the incoming signal, sampling each bit as
near to the center of the bit time 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
counter is reset and counts the 16x sampling clock to 7-1/2
(which is the center of the start bit)The receiver then counts from
0 to 15 to sample the next bit near its center, and so on, until a
stop bit is detected, signaling the end of the data stream.  Use of
a sampling rate 16x the baud rate reduces the synchronization
error that builds up in estimating the center of each successive bit
following the start bit.  As such, if the data on RxD is a
symmetrical square wave, the center of each successive data cell
will occur within 

±

3125% of the actual center (this is 50% 

÷

 16,

providing an error margin of 46875%)Thus, the start bit can begin
as much as one 16x clock cycle prior to being detected

IER - Interrupt Enable Register, Ports A & B (R/W)

The Interrupt Enable Register is used to independently

enable/ disable the four possible serial channel interrupt sources
that drive the INTREQ0* line (Serial ports A & Band the parallel
port share this line)Interrupts are disabled by resetting the
corresponding IER bit low (0), and enabled by setting the IER bit
high (1)Disabling the interrupt system (IER bits 0-3 low) also
inhibits the Interrupt Identification Register (IIR) and the interrupt
request line (INTREQ0*)All other functions operate in their normal
manner, including the setting of the Line Status Register (LSR)
and the Modem Status Register (MSR)

IER BIT

INTERRUPT ACTION

0

A “1” enables the Received Data Available Interrupt
and the Time-Out Interrupts (FIFO Mode)

1

A “1” enables the Transmitter Holding Register
Empty Interrupt

2

A “1” enables the Receiver Line Status Interrupt

3

A “1” enables the Modem Status Interrupt

4-7

Not Used - Set to Logic 0

A power-up or system reset sets all IER bits to 0 (bits 0-3

forced low, bits 4-7 permanently low)

IIR - Interrupt Identification Register, Ports A & B (READ
Only)

The Interrupt Identification Register is used to indicate that a

prioritized interrupt is pending and the type of interrupt that is
pending.  This register will indicate the highest-priority interrupt
pending.  In order to minimize the software overhead during data
character transfers, individual serial channels prioritize their
interrupts into four levels (indicated below)Additionally, with
respect to the 2 serial ports and the parallel port, interrupts are
also served according to a shifting priority scheme that is a
function of the last interrupting port served

PRIORITY/LEVE
L

INTERRUPT

1

Receiver Line Status

2

Received Data Ready or Character Time-
out

3

Transmitter Holding Register Empty

4

Modem Status

Summary of Contents for Series IP503

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 1995 Acromag Inc Printed in the USA Data and spe...

Page 2: ...toring system 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...

Page 3: ...m performance with precision analog I O applications The X suffix of the model number denotes the length in feet Model 5029 944 IP503 Serial Communication Cable A 5 foot long flat 50 pin cable with a...

Page 4: ...n assignments are unique to each IP model see Table 21 and normally correspond to the pin numbers of the field I O interface connector on the carrier board you should verify this for your carrier boar...

Page 5: ...ground to safety ground via any device connected to these ports or a ground loop will be produced and this may adversely affect operation The communication cabling of the P2 interface carries digital...

Page 6: ...ing Little Endian uses even byte addresses to store the low order byte As such use of this module on an ISAbus PC AT carrier board will require the use of the even address locations to access the 8 bi...

Page 7: ...transmitted then data is right justified to the LSB If parity is used then LCR bit 3 parity enable and LCR bit 4 type of parity are required Status for the receiver is provided via the Line Status Reg...

Page 8: ...gh to low transition start bit When the start bit is detected a counter is reset and counts the 16x sampling clock to 7 1 2 which is the center of the start bit The receiver then counts from 0 to 15 t...

Page 9: ...NOT supported by this model FIFO Control Register FCR BIT FUNCTION 0 When set to 1 this bit enables both the Tx and Rx FIFO s All bytes in both FIFO s can be cleared by resetting this bit to 0Data is...

Page 10: ...m Control Register 1 MCR Bit 4 provides a local loopback feature for diagnostic testing of the UART channel When set high the UART serial output connected to the TXD driver is set to the marking logic...

Page 11: ...d by a read of the IIR Line Status Register continued LSR Bit FUNCTION PROGRAMMING 6 Transmitter Empty TEMT 0 Not Empty 1 Transmitter Empty set when both the Transmitter Holding Register THR and the T...

Page 12: ...data lines This register is either output only or bi directional depending on the state of the extended mode bit bit 0 of the LEM register and the data direction control bit bit 5 of the LPC register...

Page 13: ...interrupt source the ACKN line of the parallel port or bit 2 of the LPS register The serial ports and the parallel port interrupts drive INTREQ0 Bit 0 of this register drives the ENIRQ line of the UA...

Page 14: ...atus 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 serial channel the Line Status Register LSR and the Modem Status Register...

Page 15: ...s 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 1The first transmit...

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

Page 17: ...puters are considered DTE devices while modems are DCE devices The EIA TIA 232E interface is the fifth revision of this standard and defines an unbalanced single ended transmission standard for unidir...

Page 18: ...ver a null modem cable connection is required to connect two like configured DTE ports due to the imbalance of drivers and receivers see Drawing 4501 572 Pins 1 18 of field I O connector P2 provide co...

Page 19: ...S INPUT BUSY Pin 11 Input Line Printer Busy Active high signal from the printer that is asserted when the printer is not ready to accept more Data The state of this bit is monitored via Bit 7 of the L...

Page 20: ...o obtain parts and repair PRELIMINARY SERVICE PROCEDURE Before beginning repair be sure that all of the procedures in Section 2 Preparation For Use have been followed Also refer to the documentation o...

Page 21: ...t maximum Choose shielded or unshielded cable according to model number The unshielded cable is recommended for digital I O while the shielded cable is recommended for optimum performance with precisi...

Page 22: ...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 p...

Page 23: ......

Page 24: ......

Page 25: ......

Page 26: ......

Page 27: ......

Page 28: ......

Page 29: ......

Page 30: ......

Page 31: ......

Reviews: