
R8C/3JM Group
9. Clock Generation Circuit
R01UH0285EJ0100 Rev.1.00
Aug 08, 2011
9.6
CPU Clock and Peripheral Function Clock
There are a CPU clock to operate the CPU and a peripheral function clock to operate the peripheral functions. Refer
9.6.1
System Clock
The system clock is the clock source for the CPU and peripheral function clocks. The XIN clock, the XCIN
clock, or the on-chip oscillator clock can be selected.
9.6.2
CPU Clock
The CPU clock is an operating clock for the CPU and the watchdog timer.
The system clock divided by 1 (no division), 2, 4, 8, or 16 is used as the CPU clock. Use the CM06 bit in the
CM0 register and bits CM16 and CM17 in the CM1 register to select the value of the division.
Also, use the XCIN clock while the XCIN clock oscillation stabilizes.
After a reset, the low-speed on-chip oscillator clock divided by 1 (no division) is used as the CPU clock.
When the MCU enters stop mode, the CM06 bit is set to 1 (divide-by-8 mode). To enter stop mode, set the
CM35 bit in the CM3 register to 0 (settings of CM06 in CM0 register and bits CM16 and CM17 in CM1
register enabled).
9.6.3
Peripheral Function Clock (f1, f2, f4, f8, and f32)
The peripheral function clock is an operating clock for the peripheral functions.
The fi (i = 1, 2, 4, 8, and 32) clock is generated by the system clock divided by i. It is used for timers RA, RB,
RC, RD, RE, the serial interface, and the A/D converter.
If the MCU enters wait mode after the CM02 bit in the CM0 register is set to 1 (peripheral function clock stops
in wait mode), the fi clock stops.
9.6.4
fOCO
fOCO is an operating clock for the peripheral functions.
The frequency of fOCO is the frequency of the on-chip oscillator clock selected by the FRA01 bit in the FRA0
register.
For the high-speed on-chip oscillator, its frequency is the frequency divided by the divide ratio selected by bits
FRA20 to FRA22 in the FRA2 register. fOCO can be used for timer RA.
In wait mode, the fOCO clock does not stop.
9.6.5
fOCO40M
fOCO40M is used as the count source for timers RC and RD.
This clock is generated by the high-speed on-chip oscillator and supplied by setting the FRA00 bit to 1.
In wait mode, the fOCO40M clock does not stop.
This clock can be used with supply voltage VCC = 2.7 to 5.5 V.
9.6.6
fOCO-F
fOCO-F is used as the count source for timers RC, RD and the A/D converter.
fOCO-F is a clock generated by the high-speed on-chip oscillator and divided by i (i = 2, 3, 4, 5, 6, 7, 8, and 9;
divide ratio selected by the FRA2 register). This clock is supplied by setting the FRA00 bit to 1.
In wait mode, the fOCO-F clock does not stop.