RL78/G13 CHAPTER 7 REAL-TIME CLOCK
R01UH0146EJ0100 Rev.1.00 432
Sep 22, 2011
Figure 7-1. Block Diagram of Real-time Clock
INTRTC
RTCE
WUTMM
CK0
RCLOE1
AMPM CT2 CT1 CT0
RTCE
AMPM
CT0 to CT2
WUTMMCK0
fRTC
fSUB
fIL
RWAIT
WALE WALIE WAFG RWAIT
RWST
RIFG
RWST
RIFG
Real-time clock control register 1
Real-time clock control register 0
Operation speed mode
control register (OSMC)
Alarm week
register
(ALARMWW)
(7-bit)
Alarm hour
register
(ALARMWH)
(6-bit)
Alarm minute
register
(ALARMWM)
(7-bit)
Year count
register
(YEAR)
(8-bit)
Month count
register
(MONTH)
(5-bit)
Week count
register
(WEEK)
(3-bit)
Day count
register
(DAY)
(6-bit)
Hour count
register
(HOUR)
(6-bit)
Minute count
register
(MIN)
(7-bit)
Second
count
register
(SEC)
(7-bit)
Wait control
0.5
seconds
Sub-count
register
(16-bit)
Selector
Selector
Buffer
Buffer
Buffer
Buffer Buffer Buffer Buffer
Count enable/
disable circuit
Watch error
correction
register
(SUBCUD)
(8-bit)
Internal bus
1 month
1 day 1 hour
1 minute
RTC1HZ
1 seconds
1 year
Caution The count of year, month, week, day, hour, minutes and second can only be performed when a
subsystem clock (fSUB = 32.768 kHz) is selected as the operation clock of the real-time clock.
When the low-speed oscillation clock (f
IL) is selected, only the constant-period interrupt
function is available. The 20- to 36-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) × fSUB/fIL.
<R>
<R>