Download UM10315

Transcript
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
FT
FT
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
Chapter 22: LPC315x Universal Asynchronous Receiver/Transmitter
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
Figure 22–67 illustrates three examples of the baud-rate generator.
FT
UM10315
FT
FT
NXP Semiconductors
D
FT
FT
A
A
R
R
D
D
D
R
A
FT
D
R
A
Fig 67.
Baud-rate generation examples
In example A the fractional divider is bypassed while the second divider is dividing by 2.
In example B the fractional divider is bypassed while the second divider is dividing by 3.
In example C the fractional divider is multiplying the clock by 4/(3+4)=4/7 while the second
divider divides by 3.
Table 22–485 lists the baud-rates for UART_U_CLK = 12 MHz. All baud rates were
calculated with and without the fractional divider. Note that the error between actual baud
rate and desired baud rate is always smaller when using the fractional divider clock
pre-scaling.
Table 485. Baud rates for UART_U_CLK = 12 MHz
Fractional divider off
(DivAddVal = 0)
Fractional divider on (DivAddVal > 0)
desired
UART
baudrate
[Hz]
actual UART {DLM, DLL}
Relative
baudrate
divisor used to error %
[Hz]
generate 16X
Baud-rate
actual UART
baudrate
Relativ
error %
{DLM, DLL}
divisor used to
generate 16X
Baud-rate
DivAddVal MulVal
[dec]
[dec]
50
50
15000
0.000
50
0.0000
15000
0
2
75
75
10000
0.000
75
0.0000
10000
0
2
110
110.002
6818
0.003
110
0.0000
6250
1
11
135
135.014
5555
0.010
134.500
0.0001
3983
2
5
150
150
5000
0.000
150
0.0000
5000
0
2
300
300
2500
0.000
300
0.0000
2500
0
2
600
600
1250
0.000
600
0.0000
1250
0
2
UM10315_0
User manual
© NXP B.V. 2009. All rights reserved.
Rev. 00.06 — 9 September 2009
443 of 643