2009 Microchip Technology Inc.
DS39636D-page 199
PIC18F2X1X/4X1X
BAUD
RATE
(K)
SYNC = 0, BRGH = 0, BRG16 = 1
FOSC = 40.000 MHz
FOSC = 20.000 MHz
FOSC = 10.000 MHz
FOSC = 8.000 MHz
Actual
Rate
(K)
%
Error
SPBRG
value
(decimal)
Actual
Rate
(K)
%
Error
SPBRG
value
(decimal)
Actual
Rate
(K)
%
Error
SPBRG
value
(decimal)
Actual
Rate
(K)
%
Error
SPBRG
value
(decimal)
0.3
0.300
0.00
8332
0.300
0.02
4165
0.300
0.02
2082
300
-0.04
1665
1.2
1.200
0.02
2082
1.200
-0.03
1041
1.200
-0.03
520
1201
-0.16
415
2.4
2.402
0.06
1040
2.399
-0.03
520
2.404
0.16
259
2403
-0.16
207
9.6
9.615
0.16
259
9.615
0.16
129
9.615
0.16
64
9615
-0.16
51
19.2
19.231
0.16
129
19.231
0.16
64
19.531
1.73
31
19230
-0.16
25
57.6
58.140
0.94
42
56.818
-1.36
21
56.818
-1.36
10
55555
3.55
8
115.2
113.636
-1.36
21
113.636
-1.36
10
125.000
8.51
4
—
BAUD
RATE
(K)
SYNC = 0, BRGH = 0, BRG16 = 1
FOSC = 4.000 MHz
FOSC = 2.000 MHz
FOSC = 1.000 MHz
Actual
Rate
(K)
%
Error
SPBRG
value
(decimal)
Actual
Rate
(K)
%
Error
SPBRG
value
(decimal)
Actual
Rate
(K)
%
Error
SPBRG
value
(decimal)
0.3
0.300
0.04
832
300
-0.16
415
300
-0.16
207
1.2
1.202
0.16
207
1201
-0.16
103
1201
-0.16
51
2.4
2.404
0.16
103
2403
-0.16
51
2403
-0.16
25
9.6
9.615
0.16
25
9615
-0.16
12
—
19.2
19.231
0.16
12
—
57.6
62.500
8.51
3
—
115.2
125.000
8.51
1
—
BAUD
RATE
(K)
SYNC = 0, BRGH = 1, BRG16 = 1 or SYNC = 1, BRG16 = 1
FOSC = 40.000 MHz
FOSC = 20.000 MHz
FOSC = 10.000 MHz
FOSC = 8.000 MHz
Actual
Rate
(K)
%
Error
SPBRG
value
(decimal)
Actual
Rate
(K)
%
Error
SPBRG
value
(decimal)
Actual
Rate
(K)
%
Error
SPBRG
value
(decimal)
Actual
Rate
(K)
%
Error
SPBRG
value
(decimal)
0.3
0.300
0.00
33332
0.300
0.00
16665
0.300
0.00
8332
300
-0.01
6665
1.2
1.200
0.00
8332
1.200
0.02
4165
1.200
0.02
2082
1200
-0.04
1665
2.4
2.400
0.02
4165
2.400
0.02
2082
2.402
0.06
1040
2400
-0.04
832
9.6
9.606
0.06
1040
9.596
-0.03
520
9.615
0.16
259
9615
-0.16
207
19.2
19.193
-0.03
520
19.231
0.16
259
19.231
0.16
129
19230
-0.16
103
57.6
57.803
0.35
172
57.471
-0.22
86
58.140
0.94
42
57142
0.79
34
115.2
114.943
-0.22
86
116.279
0.94
42
113.636
-1.36
21
117647
-2.12
16
BAUD
RATE
(K)
SYNC = 0, BRGH = 1, BRG16 = 1 or SYNC = 1, BRG16 = 1
FOSC = 4.000 MHz
FOSC = 2.000 MHz
FOSC = 1.000 MHz
Actual
Rate
(K)
%
Error
SPBRG
value
(decimal)
Actual
Rate
(K)
%
Error
SPBRG
value
(decimal)
Actual
Rate
(K)
%
Error
SPBRG
value
(decimal)
0.3
0.300
0.01
3332
300
-0.04
1665
300
-0.04
832
1.2
1.200
0.04
832
1201
-0.16
415
1201
-0.16
207
2.4
2.404
0.16
415
2403
-0.16
207
2403
-0.16
103
9.6
9.615
0.16
103
9615
-0.16
51
9615
-0.16
25
19.2
19.231
0.16
51
19230
-0.16
25
19230
-0.16
12
57.6
2.12
16
55555
3.55
8
—
115.2
111.111
-3.55
8
—
TABLE 17-3:
BAUD RATES FOR ASYNCHRONOUS MODES (CONTINUED)