
7542 Group
Rev.3.02 Oct 31, 2006 Page 64 of 134
REJ03B0006-0302
Fig. 81 State transition
STP mode
f(X
IN
) oscillation: stop
On-chip oscillator: stop
WAIT mode 1
WAIT mode 2
WAIT mode 3
WAIT mode 3’
Operation clock source: On-chip oscillator (Note 2)
Operation clock source: f(X
IN
) (Note 1)
Notes on switch of clock
(1) In operation clock = f(X
IN
), the following can be selected for the CPU clock division ratio.
f(X
IN
)/2 (high-speed mode)
f(X
IN
)/8 (middle-speed mode)
f(X
IN
) (double-speed mode, only at a ceramic oscillation)
(2) In operation clock = On-chip oscillator, the following can be selected for the CPU clock division ratio.
R
OSC
/1 (On-chip oscillator double-speed mode)
R
OSC
/2 (On-chip oscillator high-speed mode)
R
OSC
/8 (On-chip oscillator middle-speed mode)
R
OSC
/128 (On-chip oscillator low-speed mode)
(3) After system is released from reset, and state transition of state 2
→
state 3 and state transition of state 2’
→
state 3’,
R
OSC
/8 (On-chip oscillator middle-speed mode) is selected for CPU clock.
(4) Executing the state transition state 3 to 2 or state 3 to 3’ after stabilizing X
IN
oscillation.
(5) When the state 2
→
state 3
→
state 4 is performed, execute the NOP instruction as shown below
according to the division ratio of CPU clock.
1. CPUM
76
= 10
2
(state 2
→
state 3)
2. NOP instruction
Transition from Double-speed mode: NOP
✕
3
Transition from High-speed mode: NOP
✕
1
Transition from Middle-speed mode: NOP
✕
0
3. CPU
4
= 1
2
(state 3
→
state 4)
(6) When the state 3
→
state 2
→
state 1 is performed, execute the NOP instruction as shown below
according to the division ratio of CPU clock.
1. CPUM
76
= 00
2
or 01
2
or 11
2
(state 3
→
state 2)
2. NOP instruction
Transition from On-chip oscillator double-speed mode: NOP
✕
4
Transition from On-chip oscillator high-speed mode: NOP
✕
2
Transition from On-chip oscillator middle-speed mode: NOP
✕
0
Transition from On-chip oscillator low-speed mode: NOP
✕
0
3. CPUM
3
= 1
2
(state 2
→
state 1)
WAIT mode 4
State 4
RESET state
f(X
IN
) oscillation: enabled
On-chip oscillator: enabled
State 3
State 3’
WAIT mode 2’
State 2’
State 2
State 1
Interrupt
STP
instruction
Interrupt
WIT
instruction
Interrupt
CPUM
3
=0
2
CPUM
3
=1
2
CPUM
76
=10
2
(Note 3)
CPUM
76
=00
2
01
2
11
2
(Note 4)
CPUM
76
=10
2
(Note 3)
CPUM
76
=00
2
01
2
11
2
MISRG
1
=1
2
MISRG
1
=0
2
MISRG
1
=1
2
(Note 4)
MISRG
1
=0
2
Reset
released
(Note 3)
CPUM
4
=0
2
CPUM
4
=1
2
Interrupt
WIT
instruction
WIT
instruction
Interrupt
WIT
instruction
Interrupt
WIT
instruction
Interrupt
WIT
instruction
STP
instruction
STP
instruction
STP
instruction
Interrupt
Interrupt
Interrupt
f(X
IN
) oscillation: enabled
On-chip oscillator: stop
f(X
IN
) oscillation: enabled
On-chip oscillator: enabled
f(X
IN
) oscillation: enabled
On-chip oscillator: enabled
f(X
IN
) oscillation: enabled
On-chip oscillator: enabled
f(X
IN
) oscillation: enabled
On-chip oscillator: enabled
Oscillation stop detection circuit valid
f(X
IN
) oscillation: stop
On-chip oscillator: enabled