RL78/G1H CHAPTER 9 REAL-TIME CLOCK
R01UH0575EJ0120 Rev. 1.20 Page 237 of 920
Dec 22, 2016
Figure 9 - 1 Block Diagram of Real-time Clock
Caution 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 oscillation clock (f
IL = 15 kHz) is selected, only the constant-period interrupt function is
available.
The constant-period interrupt interval when f
IL is selected will be calculated with the constant-period (the value
selected with RTCC0 register)
× fSUB/fIL.
Count enable/
disable circuit
BufferBufferBufferBufferBuffer
Second
count
register
(SEC)
(7-bit)
Minute count
register
(MIN)
(7-bit)
Hour count
register
(HOUR)
(6-bit)
Day count
register
(DAY)
(6-bit)
Week count
register
(WEEK)
(3-bit)
Internal bus
INTRTC
0.5
seconds
1 minute
1 hour
1 day
Buffer
Year count
register
(YEAR)
(8-bit)
Buffer
Month count
register
(MONTH)
(5-bit)
1 month
Alarm week
register
(ALARMWW)
(7-bit)
Real-time clock control register 1
Watch error
correction
register
(SUBCUD)
(8-bit)
Internal
counter
(16-bit)
Wait control
RTCE
WUTMMCK0
AMPM
CT0 to CT2
fRTC
RWAIT
WALE WALIE WAFG RWAITRWSTRIFG
RWST
1 seconds
1 year
Alarm hour
register
(ALARMWH)
(6-bit)
Alarm minute
register
(ALARMWM)
(7-bit)
RTCE AMPM CT2 CT1
CT0
Real-time clock control register 0
WUTMM
CK0
Subsystem clock supply mode
control register (OSMC)
Selector
Selector
fSUB
fIL
Matched
RIFG