Datasheet
78K0/Kx2-L CHAPTER 10 REAL-TIME COUNTER
R01UH0028EJ0400 Rev.4.00 370
Sep 27, 2010
CHAPTER 10 REAL-TIME COUNTER
78K0/KY2-L
(
μ
PD78F055x)
78K0/KA2-L
(
μ
PD78F056x)
78K0/KB2-L
(
μ
PD78F057x)
78K0/KC2-L
(
μ
PD78F058x)
Item
16 Pins 20, 25, 32 Pins 30 Pins 40 Pins 44 Pins 48 Pins
Real-time counter
−
√ (RTC
output: none)
√ (RTC output: 2)
Remark √: Mounted, −: Not mounted
10.1 Functions of Real-Time Counter
The real-time counter 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: 1 month to 0.5 seconds)
• Alarm interrupt function (alarm: week, hour, minute)
• Interval interrupt function
• Pin output function of 1 Hz
Note
• Pin output function of 512 Hz or 16.384 kHz or 32.768 kHz
Note 78K0/KC2-L (44-pin and 48-pin products) only
10.2 Configuration of Real-Time Counter
The real-time counter includes the following hardware.
Table 10-1. Configuration of Real-Time Counter
Item Configuration
Control registers Peripheral enable register 0 (PER0)
Real-time counter control register 0 (RTCC0)
Real-time counter control register 1 (RTCC1)
Real-time counter control register 2 (RTCC2)
Sub-count register (RSUBC)
Second count register (SEC)
Minute count register (MIN)
Hour count register (HOUR)
Day count register (DAY)
Week count register (WEEK)
Month count register (MONTH)
Year count register (YEAR)
Watch error correction register (SUBCUD)
Alarm minute register (ALARMWM)
Alarm hour register (ALARMWH)
Alarm week register (ALARMWW)
Port mode register 4 (PM4)
Port register 4 (P4)
<R>