background image

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

- 8 -

DLL & DLM - Divisor Latch Registers, Ports A-H (R/W)

The Divisor Latch Registers form the divisor used by the internal

baud-rate generator to divide the 14.7456MHz clock to produce an
internal sampling clock suitable for synchronization to the desired
baud rate.  The output of the baud generator (RCLK) is sixteen times
the baud rate.  Two 8-bit divisor latch registers per port are used to
store the divisors in 16-bit binary format.  The DLL register stores
the low-order byte of the divisor, DLM stores the high-order byte.

These registers must be loaded during initialization.

Note that bit 7 of the LCR register must first be set high to

access the divisor latch registers (DLL & DLM).

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 relationship between the

baud rate, the divisor, and the 14.7456MHz clock can be
summarized in the following equations:

(

)

Divisor =  14.7456MHz

16 

 Baud Rate 

 MCRDIV  

×

×

(

)

Baud Rate  =   14.7456MHz

16  

Divisor  

MCRDIV

×

×

The MCRDIV term represents the state of bit-7 of the MCR

(Mode Control Register) as follows:

MCRDIV = 1     If MCR bit-7=0
MCRDIV = 4     If MCR bit-7=1

The following table shows the correct divisor to use for

generation of some standard baud rates (based on the 14.7456MHz
clock).  A different external crystal can replace the 14.7456MHz
crystal on the circuit board to obtain unique clock rates.  You may
contact Acromag Applications Engineering to explore options in this
area.

Table 3.2:  Baud Rate Divisors (

14.7456MHz Clock)

           BAUD RATE

DIVISOR (N)

MCR
Bit-7=1

MCR
Bit-7=0

Decimal

DLM

(HEX)

DLL

(HEX)

50

200

4608

12

00

300

1200

768

03

00

600

2400

384

01

80

1200

4800

192

00

C0

2400

9600

96

00

60

3600

14,400

64

00

40

4800

19,200

48

00

30

7200

28,800

32

00

20

9600

38,400

24

00

18

19,200

76,800

12

00

0C

28,800

115,200

8

00

08

38,400

153,600

6

00

06

57,600

230,400

4

00

04

230,400

921,600

1

00

01

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 (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 

±

3.125% of the actual center

(this is 50% 

÷

 16, providing an error margin of 46.875%).  Thus, the

start bit can begin as much as one 16x clock cycle prior to being
detected.

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

The Interrupt Enable Register is used to independently enable/

disable the serial port interrupt sources.  Each of the eight ports
have seven unique interrupt sources which are all mapped to
INTREQ0* of the IP module.

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 7-5 and 3-0 low) also inhibits the Interrupt
Status Register (ISR) and the interrupt request line (INTREQ0*).  

In

addition to enabling the desired bits in the IER, bit-3 of the
Modem Control Register (MCR) must be set to a logic “1” to
enable interrupts.

Interrupt Enable Register

IER BIT

INTERRUPT ACTION

0

0 = Disable Interrupt              1 = Enable Interrupt
This interrupt will be issued when the FIFO has
reached the programmed trigger level or is cleared
when the FIFO drops below the trigger level in the
FIFO mode of operation.  Note that the receive FIFO
must also be enabled via bit-0 of the FCR for a receive
interrupt to be issued.

1

0 = Disable Interrupt                1 = Enable Interrupt
This interrupt will be issued whenever the THR is
empty and is associated with bit-1 in the LSR.

2

0 = Disable Interrupt                1 = Enable Interrupt
This interrupt will be issued whenever a fully
assembled receive character is available.

3

0 = Disable Interrupt                 1 = Enable Interrupt
Modem Status Interrupt.  Since the modem input
signals are not used on this module, this interrupt
should always be disabled.

4

1

0 = Disable Sleep Mode      1 = Enable Sleep Mode
The clock/oscillator circuit is disabled in sleep mode.
The UART will not lose the programmed bits when
sleep mode is activated or deactivated.  The UART will
not enter sleep mode if any interrupts are pending.

5

1

0 = Disable the Receive Xoff Interrupt
1 = Enable the Receive Xoff Interrupt
When software flow control in enabled, and one or two
sequential receive data characters match the
preprogrammed Xoff 1-2 values an interrupt will be
issued.

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

Отзывы: