51
38C2 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
Oscillation External Output Function
The 38C2 group has the oscillation external output function to output
the rectangular waveform of the clock obtained by the oscillation cir-
cuits from P4
1
and P4
0
.
In order to validate the oscillation external output function, set P4
0
or
P4
1
, or both to the output mode (set the corresponding direction reg-
ister to
“
1
”
).
The level of the X
COUT
external output signal becomes
“
H
”
by the
P4
0
/P4
1
oscillation output control bits (bits 0 and 1) of the oscillation
output control register (address 0FF0
16
) in the following states;
the function to output the signal from the X
COUT
pin externally is
selected
the sub-clock (X
CIN
–
X
COUT
) is in the oscillating or stop mode.
Likewise, the level of the X
OUT
external output signal becomes
“
H
”
by the P4
0
/P4
1
oscillation output control bits (bits 0 and 1) of the
oscillation output control register (address 0FF0
16
) in the following
states;
the function to output the signal from the X
OUT
pin externally is
selected
the main clock (X
IN
–
X
OUT
) is in the oscillating or stop mode.
Fig. 55 Block diagram of Oscillation output function
Fig. 54 Structure of oscillation output control register
Oscillation output control register
(OSCOUT : address 0FF0
16
)
P4
0
/P4
1
oscillation output control bits
b1b0
00: P4
1
, P4
0
= Normal port
01: P4
1
= Normal port, P4
0
= X
OUT
10: P4
1
= Normal port, P4
0
= X
COUT
11: P4
1
= X
COUT
, P4
0
= X
OUT
Not used (return
“
0
”
when read)
(Do not write to
“
1
”
)
b7
b0
STP instruction
S
R
Q
X
I
N
X
O
U
T
In
t
e
r
r
u
p
t
r
e
q
u
e
s
t
In
t
e
r
r
u
p
t
d
i
s
a
b
l
e
f
l
a
g
I
R
e
s
e
t
Sy
s
t
e
m
c
l
o
c
k
c
o
n
t
r
o
l
b
i
t
s
P6
1
/X
CIN
P6
2
/X
COUT
System clock control bits
“
01
”
Sy
s
t
e
m
c
l
o
c
k
c
o
n
t
r
o
l
b
i
t
s
P
4
1
/
O
O
U
T
1
P
4
0
/
O
O
U
T
0
P4
1
direction register
P4
0
direction register
OSCOUT control
P4
1
output latch
P4
0
output latch
O
o
s
c
s
u
e
i
r
c
t
p
l
e
c
i
l
u
c
u
l
a
t
t
i
t
t
i
o
n
o
n
i
“
0
0
”
,
“
1
0
”
,
“
1
1
”
“
0
1
”
“
00
”
,
“
10
”
,
“
11
”
“
0
0
”
“
0
1
”
,
“
1
0
”
,
“
1
1
”
I
Note
When the signal from the X
OUT
pin or X
COUT
pin of the oscillation
circuit is input directly to the circuit except this MCU and used, the
system operation may be unstabilized.
In order to share the oscillation circuit safely, use the clock output
from P4
0
and P4
1
by this function for the circuits except this MCU.