CHAPTER 14 SERIAL INTERFACE UART6
Preliminary User’s Manual U16315EJ1V0UD
306
(c) Baud rate
The baud rate can be calculated by the following expression.
•
Baud rate = [bps]
f
XCLK
: Frequency of base clock (Clock) selected by TPS63 to TPS60 bits of CKSR6 register
k:
Value set by MDL67 to MDL60 bits of BRGC6 register (k = 8, 9, 10, ..., 255)
(d) 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 (Clock) = 20 MHz = 20,000,000 Hz
Set value of MDL67 to MDL60 bits of BRGC6 register = 01000001B (k = 65)
Target baud rate = 153600 bps
Baud rate = 20 M/(2
×
65)
= 20000000/(2
×
65) = 153846 [bps]
Error = (153846/153600
−
1)
×
100
= 0.160 [%]
f
XCLK
2
×
k
Actual baud rate (baud rate with error)
Desired baud rate (correct baud rate)