English
Language : 

R01AN1504EJ0100 Datasheet, PDF (16/50 Pages) Renesas Technology Corp – Using the DTC to Perform Continuous Clock
RL78/G14
Using the DTC to Perform Continuous Clock
Synchronous Serial Communication
4.8.3 Peripheral Function Initialization
Figure 4.7 shows the peripheral function initialization.
R_Systeminit
Disable the peripheral I/O
redirect function
CPIUnitcialoliczke itnhiteiaClizPaUtion
R_CGC_Create()
SAU0 initialization
R_SAU0_Create()
DTC initialization
R_DTC_Create()
PIOR0 register ← 00H
PIOR1 register ← 00H
return
Figure 4.7 Peripheral Function Initialization
4.8.4 CPU Clock Initialization
Figure 4.8 shows the CPU clock initialization
R_CGC_Create
Set the X1 and XT1 oscillators
not to be used
CMC register ← 00H
EXCLK bit = 0, OSCSEL bit = 0:
High-speed system clock pin operation mode: Input port mode
EXCLKS bit = 0, OSCSELS bit = 0
Subsystem clock pin operation mode: Input port mode
Stop the high-speed system clock
Set the main system clock
Set the subsystem clock
to stopped
CSC register
MSTOP bit ← 1: X1 oscillator stopped
CKC register
MCM0 bit ← 0: Selects the high-speed on-chip oscillator clock as the main system clock
CSC register
XTSTOP bit ← 1: XT1 oscillator stopped
Set the operating clock of the
real-time clock and interval timer
Set the CPU/peripheral
hardware clock
OSMC register ← 10H
WUTMMCK0 bit ← 1: Selects the low-speed on-chip oscillator clock
CKC register
CSS bit ← 0: Main system clock
Set the high-speed on-chip
oscillator to operate
CSC register
HIOSTOP bit ← 0
return
Figure 4.8 CPU Clock Initialization
R01AN1504EJ0100 Rev. 1.00
Feb. 14, 2014
Page 16 of 47