46
4501 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
Fig. 42 Switch to ceramic resonance/RC oscillation
Fig. 43 Handling of X
IN
and X
OUT
when operating ring oscillator
Fig. 44 Ceramic resonator external circuit
Fig. 45 External RC oscillation circuit
Execute the CMCK instruc-
tion in program.
Note: Externally connect a damping
resistor Rd depending on the
oscillation frequency.
(A feedback resistor is built-in.)
Use the resonator manu-
facturer
’
s recommended value
because constants such as ca-
pacitance depend on the
resonator.
(1) Selection of source oscillation (f(X
IN
))
The ceramic resonator or RC oscillation can be used for the source
oscillation of the MCU.
After system is released from reset, the MCU starts operation by
the clock output from the ring oscillator which is the internal oscilla-
tor.
When the ceramic resonator is used, execute the CMCK instruc-
tion. When the RC oscillation is used, execute the CRCK
instruction. The oscillation circuit by the CMCK or CRCK instruction
can be selected only at once. The oscillation circuit corresponding
to the first executed one of these two instructions is valid. Other os-
cillation circuit and the ring oscillator stop.
Execute the CMCK or the CRCK instruction in the initial setting rou-
tine of program (executing it in address 0 in page 0 is
recommended). Also, when the CMCK or the CRCK instruction is
not executed in program, the MCU operates by the ring oscillator.
(2) Ring oscillator operation
When the MCU operates by the ring oscillator as the source oscil-
lation (f(X
IN
)) without using the ceramic resonator or the RC
oscillator, connect X
IN
pin to V
SS
and leave X
OUT
pin open (Figure
43).
The clock frequency of the ring oscillator depends on the supply
voltage and the operation temperature range.
Be careful that variable frequencies when designing application
products.
(3) Ceramic resonator
When the ceramic resonator is used as the source oscillation
(f(X
IN
)), connect the ceramic resonator and the external circuit to
pins X
IN
and X
OUT
at the shortest distance. Then, execute the
CMCK instruction. A feedback resistor is built in between pins X
IN
and X
OUT
(Figure 44).
(4) RC oscillation
When the RC oscillation is used as the source oscillation (f(X
IN
)),
connect the X
IN
pin to the external circuit of resistor R and the ca-
pacitor C at the shortest distance and leave X
OUT
pin open. Then,
execute the CRCK instruction (Figure 45).
The frequency is affected by a capacitor, a resistor and a micro-
computer. So, set the constants within the range of the frequency
limits.
*
R
e
s
e
t
R
i
n
o
g
p
o
e
s
r
c
a
i
l
i
l
o
a
n
t
o
r
t
CMCK instruction
C
R
C
K
i
n
s
t
r
u
c
t
i
o
n
Ceramic resonator valid
Ring oscillator stop
RC oscillation stop
R
R
C
C
i
n
e
g
r
a
o
s
o
m
c
s
i
i
l
l
a
i
l
r
t
a
e
i
o
t
s
n
o
o
v
s
n
a
t
t
l
i
d
p
r
c
c
l
r
o
o
a
s
t
o
p
4501
X
IN
X
O
U
T
*
Do not use the CMCK instruction
and CRCK instruction in program.
4501
X
IN
X
OUT
R
d
C
IN
C
OUT
4
5
0
1
X
I
N
X
O
U
T
R
C
*
E
x
s
e
t
c
r
u
c
t
e
t
i
t
n
h
e
i
C
p
R
r
C
o
K
r
i
n
u
o
n
g
a
m
.