CHAPTER 10 SERIAL INTERFACE UART6
Preliminary User’s Manual U19014EJ1V0UD
249
(a) Baud
rate
The baud rate can be calculated by the following expression.
•
Baud rate = [bps]
f
XCLK6
: Frequency of base clock selected by TPS63 to TPS60 bits of CKSR6 register
k:
Value set by MDL67 to MDL60 bits of BRGC6 register (k = 4, 5, 6, ..., 255)
(b) Error of baud rate
The baud rate error can be calculated by the following expression.
•
Error (%) =
−
1
×
100 [%]
Cautions 1. Keep the baud rate error during transmission to within the permissible error range at
the reception destination.
2. Make sure that the baud rate error during reception satisfies the range shown in (4)
Permissible baud rate range during reception.
Example:
Frequency of base clock = 16 MHz = 16,000,000 Hz
Set value of MDL67 to MDL60 bits of BRGC6 register = 01000101B (k = 69)
Target baud rate = 115200 bps
Baud rate = 16 M/(2
×
69)
=
16000000/(2
×
69) = 115942 [bps]
Error = (115942/115200
−
1)
×
100
= 0.644 [%]
Actual baud rate (baud rate with error)
Desired baud rate (correct baud rate)
f
XCLK6
2
×
k
electronic components distributor