
R8C/3JM Group
9. Clock Generation Circuit
R01UH0285EJ0100 Rev.1.00
Aug 08, 2011
9.5
XCIN Clock
The XCIN clock is supplied by the XCIN clock oscillation circuit. This clock is used as the clock source for the
CPU and peripheral function clocks. The XCIN clock oscillation circuit is configured by connecting a resonator
between the XCIN and XCOUT pins. The XCIN clock oscillation circuit includes an on-chip a feedback resistor,
which is disconnected from the oscillation circuit in stop mode in order to reduce the amount of power consumed
by the chip. The XCIN clock oscillation circuit may also be configured by feeding an externally generated clock to
During and after a reset, the XCIN clock stops.
After setting the XCSEL bit in the PINSR register to 1 (XCIN connected to P4_3, XCOUT connected to P4_4) and
the CM04 bit in the CM0 register to 1 (XCIN-XCOUT pin), the XCIN clock starts oscillating when the CM03 bit
in the CM0 register is set to 0 (XCIN clock oscillates). After the XCIN clock oscillation stabilizes, the XCIN clock
is used as the CPU clock source when the CM07 bit in the CM0 register is set to 1 (XCIN clock). To input an
externally generated clock to the XCIN pin, also set the CM04 bit in the CM0 register to 1 (XCIN-XCOUT pin).
Leave the XCOUT pin open at this time.
This MCU has an on-chip feedback resistor, which can be disabled/enabled by the CM12 bit in the CM1 register.
In stop mode, all clocks including the XCIN clock stop. Refer to 9.7 Power Control for details.
Note:
1. To input an externally generated clock from the XCIN pin, set the CM03 bit in the CM0 register to 1
(XCIN clock stops) and the CM12 bit in the CM1 register to 1 (on-chip feedback resistor disabled).
Figure 9.4
Examples of XCIN Clock Connection Circuits
XCIN
XCOUT
MCU
(on-chip feedback resistor)
Rd (1)
COUT
CIN
XCIN
XCOUT
MCU
(on-chip feedback resistor)
Externally generated clock
VCC
VSS
Note:
1. Insert a damping resistor and feedback resistor if required. The resistance will vary depending on
the oscillator and the oscillation drive capacity setting. Use the value recommended by the oscillator
manufacturer.
If the oscillator manufacturer's datasheet specifies that a feedback resistor be added to the chip externally,
insert a feedback resistor between XCIN and XCOUT following the instructions.
Open
External crystal oscillator circuit
External clock input circuit
Rf (1)
When CM03 bit in CM0 register is set
to 0 (XCIN clock oscillates) and CM04
bit is set to 1 (XCIN-XCOUT pin)
When CM03 bit in CM0 register is set
to 1 (XCIN clock stops) and CM04 bit
is set to 1 (XCIN-XCOUT pin), and
CM12 bit in CM1 register is set to 1
(on-chip feedback resistor disabled)