EasyManuals Logo

Renesas RL78/G1H User Manual

Renesas RL78/G1H
941 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
Page #146 background imageLoading...
Page #146 background image
RL78/G1H CHAPTER 6 CLOCK GENERATOR
R01UH0575EJ0120 Rev. 1.20 Page 128 of 920
Dec 22, 2016
6.6.3 Example of setting XT1 oscillation clock
After a reset release, the CPU/peripheral hardware clock (fCLK) always starts operating with the high-speed on-
chip oscillator clock. To subsequently change the clock to the XT1 oscillation clock, set the oscillator and start
oscillation by using the subsystem clock supply mode control register (OSMC), clock operation mode control
register (CMC), and clock operation status control register (CSC), set the XT1 oscillation clock to f
CLK by using
the system clock control register (CKC).
[Register settings] Set the register in the order of <1> to <5> below.
<1> Set the RTCLPC bit to 1 to run only the real-time clock, and 12-bit interval timer on the subsystem clock (for ultra-
low current consumption) in the STOP mode or HALT mode during CPU operation on the subsystem clock.
<2> Set (1) the OSCSELS bit of the CMC register to operate the XT1 oscillator.
AMPHS0 and AMPHS1 bits: These bits are used to specify the oscillation mode of the XT1 oscillator.
<3> Clear (0) the XTSTOP bit of the CSC register to start oscillating the XT1 oscillator.
<4> Use the timer function or another function to wait for oscillation of the subsystem clock to stabilize by using
software.
<5> Use the CSS bit of the CKC register to specify the XT1 oscillation clock as the CPU/peripheral hardware clock.
76543210
OSMC
RTCLPC
0/1 0 0
WUTMMCK0
00000
76543210
CMC
EXCLK
0
OSCSEL
0
EXCLKS
0
OSCSELS
10
AMPHS1
0/1
AMPHS0
0/1
AMPH
0
76543210
CSC
MSTOP
1
XTSTOP
000000
HIOSTOP
0
76543210
CKC
CLS
0
CSS
1
MCS
0
MCM0
00000

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas RL78/G1H and is the answer not in the manual?

Renesas RL78/G1H Specifications

General IconGeneral
BrandRenesas
ModelRL78/G1H
CategoryMicrocontrollers
LanguageEnglish

Related product manuals