Datasheet
RL78/L12 CHAPTER 7 REAL-TIME CLOCK
R01UH0330EJ0200 Rev.2.00 289
Dec 13, 2013
7.3.2 Subsystem clock supply mode control register (OSMC)
The WUTMMCK0 bit can be used to select the real-time clock operation clock (fRTC).
In addition, by stopping clock functions that are an unnecessary, the RTCLPC bit can be used to reduce power
consumption. For details about setting the RTCLPC bit, see CHAPTER 5 CLOCK GENERATOR.
The OSMC register can be set by an 8-bit memory manipulation instruction.
Reset signal generation clears this register to 00H.
Figure 7-3. Format of Subsystem Clock Supply Mode Control Register (OSMC)
Address: F00F3H After reset: 00H R/W
Symbol 7 6 5 4 3 2 1 0
OSMC RTCLPC 0 0
WUTMMCK0
0 0 0 0
WUTMMCK0
Note
Selection of operation clock for real-time
clock, 12-bit interval timer, and LCD
river/controller.
Selection of clock output from PCLBUZn pin
of clock output/buzzer output
0 Subsystem clock (fSUB)
Selecting the subsystem clock (f
SUB) is
enabled.
1 Low-speed on-chip oscillator clock (fIL)
Selecting the subsystem clock (f
SUB) is
disabled.
Note Be sure to select the subsystem clock (WUTMMCK0 bit = 0) if the subsystem clock is oscillating.
Cautions 1. The count of year, month, week, day, hour, minutes and second can only be
performed when a subsystem clock (f
SUB = 32.768 kHz) is selected as the operation
clock of the real-time clock. When the low-speed on-chip oscillator clock (f
IL = 15
kHz) is selected, only the constant-period interrupt function is available. The 32-
pin products have the constant-period interrupt function only, because these
products have no subsystem clock.
However, the constant-period interrupt interval when f
IL is selected will be
calculated with the constant-period (the value selected with RTCC0 register) ×
f
SUB/fIL.
2. The subsystem clock and low-speed on-chip oscillator clock can only be switched
by using the WUTMMCK0 bit if the real-time clock, 12-bit interval timer, and LCD
driver/controller are all stopped.
These are stopped as follows:
Real-time clock: Set the RTCE bit to 0.
12-bit interval timer: Set the RINTE bit to 0.
LCD driver/controller: Set the SCOC and VLCON bits to 0.
Remark RTCE: Bit 7 of real-time clock control register 0 (RTCC0)
RINTE: Bit 15 of the interval timer control register (ITMC)
SCOC: Bit 6 of LCD mode register 1 (LCDM1)
VLCON: Bit 5 of LCD mode register 1 (LCDM1)
<R>