EasyManua.ls Logo

Renesas RL78/G10 - Clock Operation Mode Control Register (CMC)

Renesas RL78/G10
637 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RL78/G10 CHAPTER 5 CLOCK GENERATOR
R01UH0384EJ0311 Rev. 3.11 79
Dec 22, 2016
5.3.1 Clock operation mode control register (CMC)
This register is used to set the operation mode of the X1/P121/(INTP3) and X2/EXCLK/P122/(INTP2) pins, and to
select a gain of the oscillator.
The CMC register can be written only once by an 8-bit memory manipulation instruction after reset release. This
register can be read by an 8-bit memory manipulation instruction.
Reset signal generation clears this register to 00H.
Figure 5-2. Format of Clock Operation Mode Control Register (CMC)
Address: FFFA0H After reset: 00H R/W
Symbol 7 6 5 4 3 2 1 0
CMC EXCLK OSCSEL 0 0 0 0 0 AMPH
EXCLK OSCSEL High-speed system clock
pin operation mode
X1/P121/(INTP3) pin X2/EXCLK/P122/
(INTP2) pin
0 0 Input port mode Input port
0 1 X1 oscillation mode Crystal/ceramic resonator connection
1 0 Input port mode Input port
1 1 External clock input mode Input port External clock input
AMPH Control of X1 clock oscillation frequency
0 1 MHz fX 10 MHz
1 10 MHz < fX 20 MHz
Cautions 1. The CMC register can be written only once after reset release, by an 8-bit
memory manipulation instruction. When using the CMC register with its initial
value (00H), be sure to set the register to 00H after a reset ends in order to
prevent malfunction due to a program loop. Such a malfunction becomes
unrecoverable when a value other than 00H is mistakenly written.
2. After reset release, set the CMC register before X1 oscillation is started as set
by the clock operation status control register (CSC).
3. Be sure to set the AMPH bit to 1 if the X1 clock oscillation frequency exceeds 10
MHz. Specify the settings for the AMPH bits while f
IH is selected as fCLK after a
reset ends (before f
CLK is switched to fMX).
4. Switch the operation mode of the X1/X2 pins only when MSTOP = 1.
Remark f
X: X1 clock frequency

Table of Contents

Related product manuals