
Rev.2.02 Jun 19, 2007 page 52 of 73
REJ03B0146-0202
3823 Group
CLOCK GENERATING CIRCUIT
The 3823 group has two built-in oscillation circuits. An oscillation
circuit can be formed by connecting a resonator between X
IN
and
X
OUT
(X
CIN
and X
COUT
). Use the circuit constants in accordance
with the resonator manufacturer's recommended values. The os-
cillation start voltage and the oscillation start time differ in
accordance with an oscillator, a circuit constant, or temperature,
etc.
When power supply voltage is low and the high frequency oscilla-
tor is used, an oscillation start will require sufficient conditions. No
external resistor is needed between X
IN
and X
OUT
since a feed-
back resistor exists on-chip. (an external feed-back resistor may
be needed depending on conditions.) However, an external feed-
back resistor is needed between X
CIN
and X
COUT
since a resistor
does not exist between them.
To supply a clock signal externally, input it to the X
IN
pin and make
the X
OUT
pin open. The sub-clock X
CIN
-X
COUT
oscillation circuit
cannot directly input clocks that are externally generated. Accord-
ingly, be sure to cause an external resonator to oscillate.
Immediately after poweron, only the X
IN
oscillation circuit starts
oscillating, and X
CIN
and X
COUT
pins function as I/O ports.
Fig. 55 External clock input circuit
X
I
N
E
x
t
e
r
n
a
l
o
s
c
i
l
l
a
t
i
o
n
c
i
r
c
u
i
t
Open
V
C
C
V
S
S
C
C
I
N
C
C
O
U
T
Rf
Rd
X
C
I
N
X
C
O
U
T
X
O
U
T
Frequency Control
(1) frequency/8 Mode
The internal clock
φ
is the frequency of X
IN
divided by 8.
After reset, this mode is selected.
(2) frequency/4 Mode
The internal clock
φ
is the frequency of X
IN
divided by 4.
(3) frequency/2 Mode
The internal clock
φ
is half the frequency of X
IN
.
(4) Low-speed Mode
●
The internal clock
φ
is the frequency of X
IN
or on-chip oscillation
frequency divided by 2.
●
A low-power consumption operation can be realized by stopping
the main clock X
IN
in this mode. To stop the main clock, set bit 5
of the CPU mode register to “1”.
When the main clock X
IN
is restarted, set enough time for oscil-
lation to stabilize by programming.
In low speed mode, the system clock
φ
can be switched to the
on-chip oscillator or X
CIN
. Use the on-chip oscillator control bit
(bit 0 in the CPU mode expansion register) for settings. To set
this bit to “0” from “1”, wait until X
CIN
oscillation stabilizes.
Note 1:
If you switch the mode between frequency/2/4/8 mode
and low-speed, stabilize both X
IN
and X
CIN
oscillations.
The sufficient time is required for the sub-clock to stabi-
lize, especially immediately after poweron and at
returning from stop mode. When switching the mode be-
tween middle/high-speed and low-speed, set the
frequency on condition that f(X
IN
) > 3f(X
CIN
).
2:
In frequency/2/4/8 mode, X
IN
-X
OUT
oscillation does not
stop even if the main clock (X
IN
-X
OUT
) stop bit is set to
"1".
3:
In low speed mode, X
CIN-
X
COUT
oscillation does not stop
even if the port X
C
switch bit is set to "0".
Fig. 54 Ceramic resonator circuit example
X
CIN
X
COUT
X
IN
X
OUT
C
IN
C
OUT
C
CIN
C
COUT
Rf
Rd
Rd
Note :
Insert a damping resistor if required. The resistance will vary
depending on the oscillator and the oscillation drive capacity
setting. Use the value recommended by the maker of the
oscillator. Also, if the oscillator manufacturer's data sheet
specifies that a feedback resistor be added external to the chip
though a feedback resistor exists on-chip, insert a feedback
resistor between X
IN
and X
OUT
following the instruction.