NS16C2552TVA NSC [National Semiconductor], NS16C2552TVA Datasheet - Page 34

no-image

NS16C2552TVA

Manufacturer Part Number
NS16C2552TVA
Description
Dual UART with 16-byte/64-byte FIFOs and up to 5 Mbit/s Data Rate
Manufacturer
NSC [National Semiconductor]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
NS16C2552TVA/NOPB
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
NS16C2552TVAX/NOPB
Manufacturer:
Texas Instruments
Quantity:
10 000
www.national.com
8.0 Design Notes
8.1 DEBUGGING HINTS
Although the UART device is fairly straight forward, there are
cases that when device does not behave as expected. The
normal trouble shooting steps should include the following.
1. Check power supply voltage and make sure it is within
2. Check device pin connections against the datasheet pin
3. Check an unpopulated printed circuit board (PCB)
4. Check the device clock input. For oscillator input, the
5. Reset should be active high and normally low.
6. Use internal loopback mode to test the CPU host inter-
7. If loopback mode is getting the correct data, check serial
8.2 CLOCK FREQUENCY ACCURACY
In the UART transmission, the transmitter clock and the
receive clock are running in two different clock domains
(unlike in some communication interface that the received
clock is a copy of the transmitter clock by sharing the same
clock or by performing clock-data-recovery). Not only the
local oscillator frequency, but also the clock divisor may
introduce error in between the transmitter and receiver’s
baud rate. The question is how much error can be tolerated
and does not cause data error?
The UART receiver has an internal sampling clock that is
16X the data rate. The sampling clock allows data to be
sampled at the 6/16 to 7/16 point of each bit. The following is
an example of a 8-bit data packet with a start, a parity, and
one stop bit. (Figure 14)
If a receiver baud rate generator deviates from the nominal
baud rate by ∆f, where 1/∆f = ∆T, the first sampling point will
deviate from the nominal sample point by 0.5∆T. Conse-
quently, the second sampling point will deviate by 1.5∆T, 3rd
will deviate by 2.5∆T, and the last bit of a packet with L length
(in number of bits) will deviate by
(L − 0.5) x ∆T
the operating range.
list.
against the schematic diagram for any shorts.
scope probe can be attached to Xin to verify the clock
voltage swing and frequency. For crystal connection,
attach the scope probe to Xout to check for the oscilla-
tion frequency.
face. If loopback mode is not working, check the CPU
interface timing including read and write bus timing.
data output and input. The transmit and receive data
may be looped back externally to verify the data path
integrity.
FIGURE 14. Nominal Mid-bit Sampling
20204816
34
In this example, L=11, so that the last bit will deviate by
(11 − 0.5) x ∆T = 10.5∆T(Figure 15)
Giving some margin for sampling error due to metastability
and jitter assuming that the bit period deviation can not be
more than 6/16 the bit time (i.e., the worst case), 0.375T. So
that
(L − 0.5) x ∆T
for the receiver to correctly recover the transmitted data.
Reform the equation
∆T
Using the same example of 11-bit packet (L = 11), at 9600
baud, f = 9600, the sampling clock rate is f (i.e., one sample
per period) and the bit period is
T = 1 / f
∆T
∆T
The percentage of the deviation from nominal bit period has
to be less than
∆T / T = (0.375 / (f x (L − 0.5)) x f = 0.375 / L − 0.5)
∆T / T =3.7 x 10
From the above example, the error percentage increases
with longer packet length (i.e., larger L). The best case is
packet with word length 5, a start bit and a stop bit (L = 7)
that is most tolerant to error.
∆T / T = 0.375 / (L − 0.5) = 0.375 / 6.5 = 5.8%
The worst case is packet with word length 8, a start bit, a
parity bit, and two stop bits (L = 12) that is least tolerant to
error.
∆T / T = 0.375 / L − 0.5) = 0.375 / 11.5 = 3.2%
8.3 CRYSTAL REQUIREMENTS
The crystal used should meet the following requirements.
1. AT cut with parallel resonance.
2. Fundamental oscillation mode between 1 to 24 MHz.
3. Frequency tolerance and drift is well within the UART
<
<
<
application requirements, and they are not a concern.
0.375T / (L − 0.5)
0.375T / (L − 0.5) = 0.375 / (f x (L − 0.5))
0.375 / (9600 x 10.5) = 3.7 x 10
FIGURE 15. Deviated Baud Rate Sampling
<
0.375T
-6
x 9600 = 3.6%
-6
(sec) or 3.7 µs.
20204817

Related parts for NS16C2552TVA