xr16c872iq Exar Corporation, xr16c872iq Datasheet - Page 16

no-image

xr16c872iq

Manufacturer Part Number
xr16c872iq
Description
Dual Uart With 1284 Parallel Port And Plug-and-play Controller
Manufacturer
Exar Corporation
Datasheet
XR16C872
The UART compares each incoming receive character
with Xoff-2 data. If a match exists, the received data will
be transferred to FIFO and ISR bit-4 will be set to indicate
detection of special character. Although the Internal
Register Table shows each register with eight bits of
character information, the actual number of bits is
dependent on the programmed word length. Line Con-
trol Register (LCR) bits 0-1 defines the number of
character bits, i.e., either 5 bits, 6 bits, 7 bits, or 8 bits.
The word length selected by LCR bits 0-1 also deter-
mines the number of bits that will be used for the special
character comparison. Bit-0 in the X-registers corre-
sponds to the LSB bit for the receive character.
Interrupts
Interrupt conditions and priorities are indicated in the
interrupt status register (ISR), see Table 4. When the
transmitter interrupt is enabled the UART will issue an
interrupt to indicate that transmit holding register (THR)
is empty. This interrupt must be serviced before continu-
ing operations. The LSR register provides the current
singular highest priority interrupt only. It could be noted
that CTS and RTS interrupts have lowest interrupt
priority. A condition can exist where a higher priority
interrupt may mask the lower priority CTS/RTS
interrupt(s). Only after servicing the higher pending
interrupt will the lower priority CTS/ RTS interrupt(s) be
reflected in the status register. Servicing the interrupt
without investigating further interrupt conditions can
result in data errors.
When two interrupt conditions have the same priority, it
is important to service these interrupts correctly. Re-
ceive Data Ready and Receive Time Out have the same
interrupt priority (when enabled by IER bit-0). The
receiver issues an interrupt after the number of charac-
ters have reached the programmed trigger level. In this
case the receive FIFO may hold more characters than
the programmed trigger level. Following the removal of
a data byte, the user should recheck LSR bit-0 for
additional characters. A Receive Time Out will not occur
if the receive FIFO is empty. The time out counter is
reset at the center of each stop bit received or each time
the receive holding register (RHR) is read. The actual
time out value is T (Time out length in bits) = 4 X P
(Programmed word length) + 12. To convert the time out
value to a character value, the user has to consider the
complete word length, including data information length,
Rev. 1.00
DISCONTINUED
16
start bit, parity bit, and the size of stop bit, i.e., 1X, 1.5X,
or 2X bit times.
Example -B: If the user programs the word length = 7,
with parity and one stop bit, the time out will be:
T = 4 X 7(programmed word length) + 12 = 40 bit times.
Character time = 40 / 10 [ (programmed word length =
7) + (parity = 1) + (stop bit = 1) + (start bit = 1) = 4
characters.
Programmable Baud Rate Generator
The 872 UART supports high speed modem technolo-
gies that have increased input data rate by employing
data compression schemes. For example a 33.6 Kbps
modem that employs data compression may require a
115.2 Kbps input data rate. A 128.0 Kbps ISDN modem
that supports data compression may need an input data
rate of 460.8 Kbps. The 872 UART supports standard
data rate from 50 to 460.8 Kbps with a main clock of
7.3728 MHz which is internally derived from the external
crystal or clock of 22.1184 MHz. A single baud rate
generator provides for each UART transmitter and re-
ceiver.
clock operation. For internal clock oscillator operation,
an industry standard microprocessor crystal (parallel
resonant, 20-33pF loading capacitance) is connected
externally between the XTAL1 and XTAL2 pin, see
Figure 5. Alternatively, an external clock can be con-
nected to the XTAL1 pin to clock the internal baud rate
generator for standard or custom rates.
The 872 UART can be configured for internal or external
Figure 5, Crystal Osc. Ext. Components
*Consult with crystal manufacturer for the proper loading capacitance
Visit Exar Web Site at www.exar.com
XTAL1
GND
*22-33pF
XR16C872
22.1184MHz
XTAL2
GND
*22-33pF

Related parts for xr16c872iq