ST10F269-T3
Asynchronous Mode Baud rates
For asynchronous operation, the Baud rate generator provides a clock with 16 times the rate of the
established Baud rate. Every received bit is sampled at the 7th, 8th and 9th cycle of this clock. The Baud
rate for asynchronous operation of serial channel ASC0 and the required reload value for a given Baud
rate can be determined by the following formulas:
f
CPU
B
Async
=
16 x [2 + (S0BRS)] x [(S0BRL) + 1]
f
CPU
S0BRL = (
16 x [2 + (S0BRS)] x B
Async
)-1
(S0BRL) represents the content of the reload register, taken as unsigned 13-bit integer,
(S0BRS) represents the value of bit S0BRS (鈥?鈥?or 鈥?鈥?, taken as integer.
Using the above equation, the maximum Baud rate can be calculated for any given clock speed. Baud
rate versus reload register value (SOBRS=0 and SOBRS=1) is described in Table 23.
Table 23 :
Commonly Used Baud Rates by Reload Value and Deviation Errors
S0BRS = 鈥?鈥? f
CPU
= 32MHz
Baud Rate (Baud)
1000 000
56000
38400
19200
9600
4800
2400
1200
600
95
Deviation Error
卤0.0%
+5.0% / -0.8%
+0.2% / -3.5%
+0.2% / -1.7%
+0.2% / -0.8%
+0.5% / -0.3%
+0.2% / -0.1%
+0.1% / -0.1%
+0.1% / -0.1%
+0.1% / -0.1%
Reload Value
0000h
0010h / 001h
0019h / 0020h
0033h / 0034h
0067h/ 0068h
00CFh / 00CEh
019Fh / 01A0h
0340h / 0341h
0681h / 0682h
291Dh / 291Eh
S0BRS = 鈥?鈥? f
CPU
= 32MHz
Baud Rate (Baud)
666 667
56000
38400
19200
9600
4800
2400
1200
600
75
63
Deviation Error
卤0.0%
+8.2% / -0.8%
+2.1% / -3.5%
+2.1% / -0.8%
+0.6% / -0.8%
+0.6% / -0.1%
+0.3% / -0.1%
+0.1% / -0.1%
+0.1% / -0.1%
+0.1% / 0.1%
+0.1% / -0.1%
Reload Value
0000h
000Ah / 000Bh
0010h / 0011h
0021h / 0022h
0044h / 0045h
0089h / 008Ah
0114h / 0115h
022Ah / 022Bh
0456h / 0457h
22B7h / 22B8h
2955h / 2956h
Note: The deviation errors given in the Table 23 are rounded. To avoid deviation errors use a Baud rate
crystal (providing a multiple of the ASC0/SSC sampling frequency).
92/160