AT91SAM7S32-AI ATMEL [ATMEL Corporation], AT91SAM7S32-AI Datasheet - Page 270

no-image

AT91SAM7S32-AI

Manufacturer Part Number
AT91SAM7S32-AI
Description
AT91 ARM Thumb-based Microcontrollers
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
Figure 102. Baud Rate Generator
Baud Rate in
Asynchronous Mode
Baud Rate Calculation
Example
Table 59. Baud Rate Example (OVER = 0)
270
Source Clock
12 000 000
12 288 000
14 318 180
14 745 600
3 686 400
4 915 200
5 000 000
7 372 800
8 000 000
MHz
AT91SAM7S32 Preliminary
SCK
Reserved
MCK/DIV
MCK
Expected Baud
USCLKS
0
1
2
3
If the USART is programmed to operate in asynchronous mode, the selected clock is first
divided by CD, which is field programmed in the Baud Rate Generator Register (US_BRGR).
The resulting clock is provided to the receiver as a sampling clock and then divided by 16 or 8,
depending on the programming of the OVER bit in US_MR.
If OVER is set to 1, the receiver sampling is 8 times higher than the baud rate clock. If OVER
is cleared, the sampling is performed at 16 times the baud rate clock.
The following formula performs the calculation of the Baud Rate.
This gives a maximum baud rate of MCK divided by 8, assuming that MCK is the highest pos-
sible clock and that OVER is programmed at 1.
Table 59 shows calculations of CD to obtain a baud rate at 38400 bauds for different source
clock frequencies. This table also shows the actual resulting baud rate and the error.
38 400
38 400
38 400
38 400
38 400
38 400
38 400
38 400
38 400
Rate
Bit/s
Baudrate
=
16-bit Counter
--------------------------------------------
Calculation Result
8 2 Over
SelectedClock
CD
12.00
13.02
19.53
20.00
23.30
24.00
6.00
8.00
8.14
USCLKS = 3
CD
0
SYNC
CD
>1
1
0
CD
12
13
20
20
23
24
6
8
8
1
0
OVER
Sampling
Actual Baud Rate
Divider
38 400.00
38 400.00
39 062.50
38 400.00
38 461.54
37 500.00
38 400.00
38 908.10
38 400.00
FIDI
Bit/s
0
1
SYNC
SCK
Baud Rate
Sampling
Clock
Clock
6071A–ATARM–28-Oct-04
0.00%
0.00%
1.70%
0.00%
0.16%
2.40%
0.00%
1.31%
0.00%
Error

Related parts for AT91SAM7S32-AI