Rev.3.01
REJ03B0158-0301
Aug 08, 2007
Page 16 of 134
38D5 Group
Fig. 9 Switch procedure of CPU mode register
After releasing reset
N
Y
Low-speed/X
IN
mode
Start the oscillation
(bits 4 and 5 of CPUM)
Oscillator starts oscillation.
Do not change bit 3, bit 6 and bit 7 of CPUM until
oscillation stabilizes.
Select internal system clock
(bit 3 of CPUM or bit 7, 6 = “01”)
Wait by on-chip oscillator operation until
establishment of oscillator clock
Switch the main clock division ratio
selection bit (bit 7, 6 = “00” or “10”)
Start with an on-chip oscillator.
Initial value of CPUM is E0
16
.
Initial value of CPUM2 is 00
16
.
As for the details of condition for
transition among each mode,
refer to the state transition of system clock.
System can operate in on-chip oscillator mode until
oscillation stabilize.
Select internal system clock.
Do not change bit 3, bit 6 and bit 7 of CPUM at the
same time.
Select main clock division ratio.
Switch to frequency/2 or frequency/4 mode here,
if necessary.
Main routine
Reset
L
OSCSEL
After releasing reset
Wait by operation until establishment
H
The CPU starts its operation
in the built-in X
IN
mode.
Initial value of CPUM is 40
16
.
Initial value of CPUM2 is 01
16
.
After releasing reset
N
Y
Low-speed/X
IN
mode
Start the oscillation
(bits 4 and 5 of CPUM)
Oscillator starts oscillation.
Do not change bit 3, bit 6 and bit 7 of CPUM until
oscillation stabilizes.
Select internal system clock
(bit 3 of CPUM or bit 7, 6 = “01”)
Wait by on-chip oscillator operation until
establishment of oscillator clock
Switch the main clock division ratio
selection bit (bit 7, 6 = “00” or “10”)
Start with an on-chip oscillator.
Initial value of CPUM is E0
16
.
Initial value of CPUM2 is 00
16
.
As for the details of condition for
transition among each mode,
refer to the state transition of system clock.
System can operate in on-chip oscillator mode until
oscillation stabilize.
Select internal system clock.
Do not change bit 3, bit 6 and bit 7 of CPUM at the
same time.
Select main clock division ratio.
Switch to frequency/2 or 4 mode here, if necessary.
Main routine
Reset
<QzROM version>
<Flash memory version>