(c) Baud rate
The baud rate is the value obtained according to the following formula.
f
= Frequency [Hz] of basic clock selected according to TPS3 to TPS0 bits of CKSRm
CLK
register.
k = Value set according to MDL7 to MDL0 bits of BRGCm register (k = 8, 9, 10,..., 255)
(d) Baud rate error
The baud rate error is obtained according to the following formula.
Error
=
Cautions: 1. Make sure that the baud rate error during transmission does not exceed the
allowable error of the reception destination.
2. Make sure that the baud rate error during reception is within the allowable baud
rate range during reception, which is described in chapter 13.2.6 (3)"Allowable
baud rate range during reception" on page 389.
Example:
Basic clock frequency = 10 MHz
Settings of MDL7 to MDL0 bits in BRGC0 register = 01000001B (k = 65)
Target baud rate = 76800 bps
Baud rate = 10 × 10
Error
Chapter 13 Serial Interface Function
Baud rate
Actual baud rate (baud rate with error)
------------------------------------------------------------------------------------------------------ - 1
Desired baud rate (normal baud rate)
6
/ (2 × 65)
= 76923 bps
= (76923/76800 - 1) × 100
= 0.160%
Preliminary User's Manual U15839EE1V0UM00
f
[
]
CLK
----------
=
bps
2 k ⋅
×
[
]
–
100
%
387