CHAPTER 9 REAL-TIME CLOCK
Page 236 of 920
CHAPTER 9 REAL-TIME CLOCK
9.1
Functions of Real-time Clock
The real-time clock has the following features.
• Having counters of year, month, week, day, hour, minute, and second, and can count up to 99 years.
• Constant-period interrupt function (period: 0.5 seconds, 1 second, 1 minute, 1 hour, 1 day, 1 month)
• Alarm interrupt function (alarm: week, hour, minute)
The real-time clock interrupt signal (INTRTC) can be utilized for wakeup from STOP mode and triggering an A/D
converter’s SNOOZE mode.
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
= 15kHz) is selected, only the constant-period interrupt
function is available.
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
/f
IL
.
9.2
Configuration of Real-time Clock
The real-time clock includes the following hardware.
Table 9 - 1 Configuration of Real-time Clock
Item
Configuration
Counter
Internal counter (16-bit)
Control registers
Peripheral enable register 0 (PER0)
Subsystem clock supply mode control register (OSMC)
Real-time clock control register 0 (RTCC0)
Real-time clock control register 1 (RTCC1)
Watch error correction register (SUBCUD)
Содержание RL78/G1H
Страница 941: ...R01UH0575EJ0120 RL78 G1H...