Philips LPC213 Series User Manual page 87

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
Table 76:
Bit
7:0
Table 77:
Bit
7:0
9.3.4 UART0 Baud-rate calculation
Example: Using UART0
with PCLK = 20 MHz, U0DL = 130 (U0DLM = 0x00 and U0DLL = 0x82) will enable
UART0 with UART0
Table 78:
Desired
baud-rate
50
75
110
134.5
150
300
600
1200
1800
2000
2400
3600
[1]
9.3.5 UART0 Interrupt Enable Register (U0IER - 0xE000 C004, when
DLAB = 0)
The U0IER is used to enable the three UART0 interrupt sources.
User manual
UART0
UART0 Divisor Latch LSB register (U0DLL - address 0xE000 C000, when
DLAB = 1) bit description
Symbol
Description
DLLSB
The UART0 Divisor Latch LSB Register, along with the U0DLM
register, determines the baud rate of the UART0.
UART0 Divisor Latch MSB register (U0DLM - address 0xE000 C004, when
DLAB = 1) bit description
Symbol
Description
DLMSB
The UART0 Divisor Latch MSB Register, along with the U0DLL
register, determines the baud rate of the UART0.
baudrate
=9615 baud.
baudrate
Some baud-rates available when using 20 MHz peripheral clock (PCLK=20 MHz)
U0DLM:U0DLL
hex
dec
0x61A8
25000
0x411B
16667
0x2C64
11364
0x244E
9294
0x208D
8333
0x1047
4167
0x0823
2083
0x0412
1042
0x02B6
694
0x0271
625
0x0209
521
0x015B
347
Relative error calculated as: actual_baudrate/desired_baudrate-1. Actual baudrate based on
Rev. 01 — 24 June 2005
pclk
=
---------------------------------------------------------------------------- -
×
(
×
baudrate
16
16
U0DLM
Equation 1
from above, it can be determined that system
[1]
% error
Desired
baud-rate
0
4800
0.0020
7200
0.0032
9600
0.0034
19200
0.0040
38400
0.0080
56000
0.0160
57600
0.0320
112000
0.0640
115200
0
224000
0.0320
448000
0.0640
UM10120
Chapter 9: UART0
)
+
U0DLL
Reset value
0x01
Reset value
0x00
U0DLM:U0DLL
% error
hex
dec
0x0104
260
0.1603
0x00AE
174
0.2235
0x0082
130
0.1603
0x0041
65
0.1603
0x0021
33
1.3573
0x0021
22
1.4610
0x0016
22
1.3573
0x000B
11
1.4610
0x000B
11
1.3573
0x0006
6
6.9940
0x0003
3
6.9940
Equation
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
(1)
[1]
1.
87

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2131Lpc2132Lpc2134Lpc2136Lpc2138

Table of Contents