![](http://datasheet.mmic.net.cn/30000/M38C89EFFP_datasheet_2360547/M38C89EFFP_40.png)
39
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
38C8 Group
Fig. 39 State transitions of system clock
Low-speed mode (f(
φ) =16 kHz)
Notes 1 : Switch the mode by the allows shown between the mode blocks. (Do not switch between the mode directly without an allow.)
2 : The all modes can be switched to the stop mode or the wait mode and returned to the source mode when the stop mode or the wait mode is ended.
3 : Timer and LCD operate in the wait mode.
4 : When the stop mode is ended, a delay of approximately 1 ms occurs automatically by timer 1 and timer 2 in middle-/high-speed mode.
5 : When the stop mode is ended, a delay of approximately 0.25 s occurs automatically by timer 1 and timer 2 in low-speed mode.
6 : Wait until oscillation stabilizes after oscillating the main clock XIN before the switching from the low-speed mode to middle-/high-speed mode.
7 : The example assumes that 4 MHz is being applied to the XIN pin and 32 kHz to the XCIN pin.
φ indicates the internal clock.
CM4 : Sub-clock (XCIN –XCOUT) oscillating bit
0: Stopped
1: Oscillating
CM5 : Main clock (XIN–XOUT) stop bit
0: Oscillating
1: Stopped
CM6 : Main clock division ratio selection bit
0: f(XIN)/2 (high-speed mode)
1: f(XIN)/8 (middle-speed mode)
CM7 : Internal system clock selection bit
0: XIN–XOUT selected
(middle-/high-speed mode)
1: XCIN–XCOUT selected
(low-speed mode)
CPU mode register
(CPUM : address 003B16)
b7
b4
Reset
CM6
“0”
“1”
C
M
4
“0
”
“1
”
Middle-speed mode (f(
φ) = 0.5 MHz)
Middle-speed mode (f(
φ) = 0.5 MHz)
High-speed mode (f(
φ) = 2 MHz)
High-speed mode (f(
φ) = 2 MHz)
Low-speed mode (f(
φ) = 16 kHz)
Low-speed mode (f(
φ) =16 kHz)
Low-speed mode (f(
φ) =16 kHz)
CM6
“0”
“1”
CM6
“0”
“1”
CM6
“0”
“1”
C
M
4
“0
”
“1
”
C
M
7
“0
”
“1
”
C
M
7
“0
”
“1
”
C
M
5
“0
”
“1
”
C
M
5
“0
”
“1
”
CM7 = 0 (4 MHz selected)
CM6 = 1 (Middle-speed)
CM5 = 0 (4 MHz oscillating)
CM4 = 0 (32 kHz stoped)
CM7 = 0 (4 MHz selected)
CM6 = 0 (High-speed)
CM5 = 0 (4 MHz oscillating)
CM4 = 0 (32 kHz stoped)
CM7 = 0 (4 MHz selected)
CM6 = 1 (Middle-speed)
CM5 = 0 (4 MHz oscillating)
CM4 = 1 (32 kHz oscillating)
CM7 = 0 (4 MHz selected)
CM6 = 0 (High-speed)
CM5 = 0 (4 MHz oscillating)
CM4 = 1 (32 kHz oscillating)
CM7 = 1 (32 kHz selected)
CM6 = 0 (High-speed)
CM5 = 0 (4 MHz oscillating)
CM4 = 1 (32 kHz oscillating)
CM7 = 1 (32 kHz selected)
CM6 = 1 (Middle-speed)
CM5 = 0 (4 MHz oscillating)
CM4 = 1 (32 kHz oscillating)
CM7 = 1 (32 kHz selected)
CM6 = 1 (Middle-speed)
CM5 = 1 (4 MHz stopped)
CM4 = 1 (32 kHz oscillating)
CM7 = 1 (32 kHz selected)
CM6 = 0 (High-speed)
CM5 = 1 (4 MHz stopped)
CM4 = 1 (32 kHz oscillating)
C
M
4
“0
”
“1
”
C
M
6
“0
”
“1
”
C
M
5
“0
”
“1
”
C
M
6
“0
”
“1
”
C
M
6
“0
”
“1
”
C
M
4
“1
”
“0
”
C
M
6
“0
”
“1
”
C
M
5
“1
”
“0
”