
CHAPTER 6 CLOCK GENERATOR
User’s Manual U17260EJ6V0UD
161
Caution
2. Set the X1 clock after the supply voltage has reached the operable voltage of the clock to
be used (see CHAPTER 29 ELECTRICAL SPECIFICATIONS (STANDARD PRODUCTS) to
CHAPTER 32
ELECTRICAL SPECIFICATIONS ((A2) GRADE PRODUCTS: TA =
40 to
+125
°C)).
(2) Example of setting procedure when using the external main system clock
<1> Setting frequency (OSCCTL register)
Using AMPH, set the frequency to be used.
AMPH
Note
Operating Frequency Control
0
1 MHz
≤ fXH ≤ 10 MHz
1
10 MHz < fXH
≤ 20 MHz
Note
Set AMPH before setting the peripheral functions after a reset release. The value of AMPH can
be changed only once after a reset release. The clock supply to the CPU is stopped for the
duration of 160 external clocks after AMPH is set to 1.
Remark
fXH: High-speed system clock oscillation frequency
<2> Setting P121/X1 and P122/X2/EXCLK pins and selecting operation mode (OSCCTL register)
When EXCLK and OSCSEL are set to 1, the mode is switched from port mode to external clock input
mode.
EXCLK
OSCSEL
Operation Mode of High-
Speed System Clock Pin
P121/X1 Pin
P122/X2/EXCLK Pin
1
External clock input mode
I/O port
External clock input
<3> Controlling external main system clock input (MOC register)
When MSTOP is cleared to 0, the input of the external main system clock is enabled.
Cautions 1. Do not change the value of EXCLK and OSCSEL while the external main system clock is
operating.
2. Set the external main system clock after the supply voltage has reached the operable
voltage of the clock to be used (see CHAPTER 29
ELECTRICAL SPECIFICATIONS
(STANDARD PRODUCTS) to CHAPTER 32 ELECTRICAL SPECIFICATIONS ((A2) GRADE
PRODUCTS: TA =
40 to +125°C)).
(3) Example of setting procedure when using high-speed system clock as CPU clock and peripheral
hardware clock
<1> Setting high-speed system clock oscillation
Note
(See 6.6.1 (1) Example of setting procedure when oscillating the X1 clock and (2) Example of
setting procedure when using the external main system clock.)
Note The setting of <1> is not necessary when high-speed system clock is already operating.
<R>