R8C/36T-A Group
9. Clock Generation Circuit
Under development Preliminary document
Specifications in this document are tentative and subject to change.
R01UH0240EJ0010 Rev.0.10
Page 97 of 728
Aug 05, 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 clock and the peripheral function clock. The XCIN clock oscillation circuit is configured by connecting an
oscillator between pins XCIN and XCOUT. The XCIN clock oscillation circuit includes an on-chip feedback
resistor, which is disconnected from the oscillation circuit in stop mode to reduce power consumption. The XCIN
clock oscillation circuit also allows an externally generated clock to be input to the XCIN pin.
The XCIN clock is stopped during and after a reset.
After the XCSEL bit in the PINSR register is set to 1 (XCIN is connected to P4_3 and XCOUT is connected to
P4_4) and the CM04 bit in the CM0 register is set to 1 (Xtal used), when the CM03 bit in the CM0 register is set to
0 (XCIN clock oscillates), the XCIN clock starts oscillating. After the XIN clock oscillation stabilizes, when bits
CM42 to CM40 in the CM4 register are set to 010b (XCIN clock), the XCIN clock is used as the clock source for
the CPU. When inputting an externally generated clock to the XCIN pin, set the CM04 bit to 0 (external clock input
from XCIN). Leave the XCOUT pin open at this time.
The R8C/36T-A Group 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 are stopped. For details, refer to 10. Power Control.
Figure 9.4
Connection Examples of XCIN Clock Oscillation Circuit
XCIN
XCOUT
MCU
(on-chip feedback resistor)
Rd
(1)
COUT
CIN
XCIN
XCOUT
MCU
(on-chip feedback resistor)
Externally generated clock
VCC
VSS
Open
External clock input circuit
Rf
(1)
When XCSEL bit in PINSR register is
1 (XCIN is connected to P4_3 and
XCOUT is connected to P4_4), CM03
bit in CM0 register is 0 (oscillates),
and CM04 bit in CM0 register is 1
(Xtal used)
When XCSEL bit in PINSR register is
1 (XCIN is connected to P4_3 and
XCOUT is connected to P4_4), CM03
bit in CM0 register is 0 (oscillates),
and CM04 bit in CM0 register is 0
(external clock input from XCIN)
External ceramic resonator connected circuit
Note:
1. Insert a damping resistor or feedback resistor if necessary. The resistance will vary depending on the
oscillator and the oscillation drive capacity. Use the values recommended by the oscillator manufacturer.
When the oscillation drive capacity is set to low, check that the oscillation is stable even in that state. If the
manufacturer specifies that a feedback resistor be added to the chip externally, insert a feedback resistor
between XCIN and XCOUT following the instructions.