C8051F50x-F51x
Table 21.2 includes the configuration values required for the typical system clocks and baud rates:
Table 21.2. Manual Baud Rate Parameters Examples
Baud (bits/sec)
20 K
19.2 K
9.6 K
4.8 K
1 K
SYSCLK
(MHz)
25
24.5
24
0
0
0
0
0
0
0
0
0
1
1
1
1
1
0
0
0
0
312
306
300
276
200
306
300
276
200
0
0
0
0
0
0
0
0
0
1
1
1
1
1
0
0
0
0
325
319
312
288
208
319
312
288
208
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0
0
0
0
325
319
312
288
208
319
312
288
208
3
3
3
3
3
3
3
3
3
1
1
1
1
1
0
0
0
0
325
319
312
288
208
319
312
288
208
19
19
19
19
19
19
19
19
19
1
1
1
1
1
0
0
0
0
312
306
300
276
200
306
300
276
200
22.1184
16
12.25
12
11.0592
8
21.2.4. Baud Rate Calculations—Automatic Mode
If the LIN controller is configured for slave mode, only the prescaler and divider need to be calculated:
SYSCLK
------------------------
1
ln2
prescaler = ln
-------- – 1
4000000
SYSCLK
divider = ---------------------------------------------------------------------
prescaler + 1
2
20000
The following example calculates the values of these variables for a 24 MHz system clock:
24000000
--------------------------
1
ln2
prescaler = ln
-------- – 1 = 1.585 1
4000000
24000000
divider = --------------------------------------------- = 300
1 + 1
2
20000
Table 21.3 presents some typical values of system clock and baud rate along with their factors.
204
Rev. 1.1