RL78/G10 CHAPTER 5 CLOCK GENERATOR
R01UH0384EJ0311 Rev. 3.11 87
Dec 22, 2016
5.3.8 High-speed on-chip oscillator frequency selection register (HOCODIV)
This register is used to change the frequency of the high-speed on-chip oscillator clock set with the option byte
(000C2H).
HOCODIV can be set by an 8-bit memory manipulation instruction.
Reset signal generation clears this register to the value set by FRQSEL2 to FRQSEL0 of the option byte (000C2H).
Figure 5-9. Format of High-Speed On-Chip Oscillator Frequency Selection Register (HOCODIV)
Address: F00A8H After reset: value set by FRQSEL2 to FRQSEL0 of the option byte (000C2H) R/W
Symbol 7 6 5 4 3
2 1 0
HOCODIV 0 0 0 0 0
HOCODIV 2 HOCODIV 1 HOCODIV 0
HOCODIV 2 HOCODIV 1 HOCODIV 0
High-speed on-chip oscillator clock frequency selection
0 0 1 20 MHz
0 1 0 10 MHz
0 1 1 5 MHz
1 0 0 2.5 MHz
1 0 1 1.25 MHz
Other than above Setting prohibited
Cautions 1. Set the HOCODIV register within the operable voltage range before and after the
frequency change.
2. Set the HOCODIV register with the high-speed on-chip oscillator clock (f
IH) selected
as the CPU/peripheral hardware clock (fCLK).
3. After the frequency is changed with the HOCODIV register, the frequency is
switched after the following transition time has elapsed.
• Operation for up to three clocks at the pre-change frequency
• CPU/peripheral hardware clock wait at the post-change frequency for up to
three clocks