This baud rate calculator computes from fcpu ,
the desired baud rate and the clock mode, if possible, the value of BSEL for all
possible values of scale factor BSCALE.
Result for fcpu = 2 MHz , baud rate = 115200 bps and normal clock speed
BSCALE
BSEL calculated
BSEL
baud rate calculated
error
-7
10.889
11
115108
-0.1%
-6
5.444
5
115942
0.6%
-5
2.722
3
114286
-0.8%
-4
1.361
1
117647
2.1%
-3
0.681
1
111111
-3.5%
-2
0.340
0
125000
8.5%
-1
0.170
0
125000
8.5%
0
0.085
0
125000
8.5%
1
-0.457
0
62500
-45.7%
2
-0.729
-1
3
-0.864
-1
4
-0.932
-1
5
-0.966
-1
6
-0.983
-1
7
-0.992
-1
legend
OK
error ≤ 1%
probably OK
error ≤ 2%
not OK
error > 2%
or
BSEL > 4095
or
BSEL=0 and BSCALE≠0
or
BSEL < 0