298
CHAPTER 16 SERIAL INTERFACE UART0
User’s Manual U15798EJ2V0UD
The transmit/receive clock that is used to generate the baud rate is obtained by dividing the main system
clock.
• Transmit/receive clock generation for baud rate by using main system clock
The main system clock is divided to generate the transmit/receive clock. The baud rate generated from
the main system clock is determined according to the following formula.
[Baud rate] =
f
X
[Hz]
2
n+1
(k + 16)
f
X
: Main system clock oscillation frequency
n: Value set via TPS00 to TPS02 (1
≤
n
≤
7)
For details, see
Table 16-2
.
k: Value set via MDL00 to MDL03 (0
≤
k
≤
14)
Table 16-2 shows the relationship between the 5-bit counter’s source clock assigned to bits 4 to 6 (TPS00
to TPS02) of BRGC0 and the “n” value in the above formula and Table 16-3 shows the relationship between
the main system clock and the baud rate.
Table 16-2. Relationship Between 5-Bit Counter’s Source Clock and “n” Value
TPS02
TPS01
TPS00
5-Bit Counter’s Source Clock Selected
n
0
0
0
Setting prohibited
—
0
0
1
f
X
/2
1
0
1
0
f
X
/2
2
2
0
1
1
f
X
/2
3
3
1
0
0
f
X
/2
4
4
1
0
1
f
X
/2
5
5
1
1
0
f
X
/2
6
6
1
1
1
f
X
/2
7
7
Remark
f
X
: Main system clock oscillation frequency