31
7510 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
CLOCK GENERATING CIRCUIT
The 7510 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. No exter-
nal resistor is needed between X
IN
and X
OUT
since a feed-back
resistor exists on-chip. However, an external feed-back resistor is
needed between X
CIN
and X
COUT
.
Immediately after power on, only the X
IN
oscillation circuit starts
oscillating, and X
CIN
and X
COUT
pins function as I/O port. The pull-
up resistor of X
CIN
and X
COUT
pins must be made invalid to use
the X
CIN
oscillating circuit.
Frequency Control
Middle-speed mode
The internal clock
φ
is the frequency of X
IN
divided by 8.
After reset, this mode is selected.
High-speed mode
The internal clock
φ
is half the frequency of X
IN
.
Low-speed mode
The internal clock
φ
is half the frequency of X
CIN
.
Note:
If you switch the mode between middle/high-speed and low-speed,
both of X
IN
and X
CIN
oscillation must be stabilized. The sufficient
time is required for the X
CIN
oscillation to stabilize, especially imme-
diately after power-on and at returning from stop mode. The mode
must be switched on condition that f(X
IN
) > 3f(X
CIN
).
Low-power consumption mode
In low-speed mode, a low-power consumption operation can be
entered by stopping the main clock X
IN
. To stop the main clock, set
bit 5 of the CPU mode register to “1”. When the main clock X
IN
is
restarted, the program must allow enough time for oscillation to
stabilize.
In low-power consumption mode, the X
CIN
-X
COUT
drive perfor-
mance can be reduced, allowing lower power consumption (8
μ
A
or less with X
CIN
= 32 kHz). To reduce the X
CIN
-X
COUT
drive per-
formance, clear bit 3 of the CPU mode register to “0”. At reset or
when the STP instruction is executed, this bit is set to “1” and
strong drive is selected to help the oscillation to start.
Oscillation Control
Stop mode
If the STP instruction is executed, the internal clock
φ
stops at an
“H” level. Timer 1 is set to “FF
16
” and timer 2 is set to “01
16
”.
Either X
IN
or X
CIN
divided by 16 is input to timer 1, and the output
of timer 1 is connected to timer 2. The bits of the timer 123 mode
register are cleared to “0” except for bit 4.
The timer 1 and timer 2 interrupt enable bits must be set to dis-
abled (“0”), so a program must set these bits before executing a
STP instruction. Oscillation restarts at reset or when an external
interrupt is received, but the internal clock
φ
is not supplied to the
CPU until timer 2 underflows. This allows time for the clock circuit
oscillation to stabilize.
Wait mode
If the WIT instruction is executed, the internal clock
φ
stops at an
“H” level. X
IN
and X
CIN
are the same state with that before the ex-
ecution of the WIT instruction. The internal clock restarts if a reset
occurs or when an interrupt is received. Since the oscillator does
not stop, normal operation can be started immediately after the
clock is restarted.
Fig. 29 Ceramic resonator circuit
Fig. 30 External clock input circuit
X
CIN
X
COUT
C
CIN
C
COUT
R
d
R
f
X
IN
X
OUT
C
IN
C
OUT
X
CIN
X
COUT
X
IN
X
OUT
Open
Open
External oscillator
or pulse
External oscillator
2.5V
V
SS
V
CC
V
SS