English
Language : 

UPD78F1502AGK-GAK-AX Datasheet, PDF (365/1031 Pages) Renesas Technology Corp – 16-Bit Single-Chip Microcontrollers
78K0R/Lx3
CHAPTER 7 REAL-TIME COUNTER
Figure 7-3. Format of Real-Time Counter Control Register 0 (RTCC0)
Address: FFF9DH After reset: 00H R/W
Symbol
<7>
6
<5>
<4>
3
2
1
0
RTCC0
RTCE
0
RCLOE1 RCLOE0
AMPM
CT2
CT1
CT0
RTCE
0
1
Stops counter operation.
Starts counter operation.
Real-time counter operation control
RCLOE1
0
1
RTC1HZ pin output control
Disables output of RTC1HZ pin (1 Hz).
Enables output of RTC1HZ pin (1 Hz).
RCLOE0Note
RTCCL pin output control
0
Disables output of RTCCL pin (32 kHz).
1
Enables output of RTCCL pin (32 kHz).
AMPM
Selection of 12-/24-hour system
0
12-hour system (a.m. and p.m. are displayed.)
1
24-hour system
• To change the value of AMPM, set RWAIT (bit 0 of RTCC1) to 1, and re-set the hour count register (HOUR).
• Table 7-2 shows the displayed time digits that are displayed.
CT2
CT1
CT0
Constant-period interrupt (INTRTC) selection
0
0
0
Does not use constant-period interrupt function.
0
0
1
Once per 0.5 s (synchronized with second count up)
0
1
0
Once per 1 s (same time as second count up)
0
1
1
Once per 1 m (second 00 of every minute)
1
0
0
Once per 1 hour (minute 00 and second 00 of every hour)
1
0
1
Once per 1 day (hour 00, minute 00, and second 00 of every day)
1
1
×
Once per 1 month (Day 1, hour 00 a.m., minute 00, and second 00 of
every month)
When changing the values of CT2 to CT0 while the counter operates (RTCE = 1), rewrite the values of CT2 to CT0
after disabling interrupt servicing INTRTC by using the interrupt mask flag register. Furthermore, after rewriting the
values of CT2 to CT0, enable interrupt servicing after clearing the RIFG and RTCIF flags.
Note RCLOE0 and RCLOE2 must not be enabled at the same time.
Caution If RCLOE0 and RCLOE1 are changed when RTCE = 1, the last waveform of the 32.768 kHz and 1
Hz output signals may become short.
Remark ×: don’t care
R01UH0004EJ0501 Rev.5.01
349
Jun 20, 2011