NEC 78K0R/KE3 User Manual page 265

16-bit single-chip microcontrollers
Table of Contents

Advertisement

Address: FFF9DH
Symbol
RTCC0
<R>
Note RCLOE0 and RCLOE2 must not be enabled at the same time.
Caution If RCLOE0 and RCLOE1 are changed when RTCE = 1, glitches may occur in the 32.768 kHz
Remark ×: don't care
Figure 7-3. Format of Real-Time Counter Control Register 0 (RTCC0)
After reset: 00H
R/W
<7>
6
RTCE
0
RTCE
0
Stops counter operation.
1
Starts counter operation.
RCLOE1
0
Disables output of RTC1HZ pin (1 Hz).
1
Enables output of RTC1HZ pin (1 Hz).
Note
RCLOE0
0
Disables output of RTCCL pin (32.768 kHz).
1
Enables output of RTCCL pin (32.768 kHz).
AMPM
0
12-hour system (a.m. and p.m. are displayed.)
1
24-hour system
Rewrite the AMPM value after setting RWAIT (bit 0 of RTCC1) to 1. If the AMPM value is changed, the values of
the hour count register (HOUR) change according to the specified time system.
Table 7-2 shows the displayed time digits.
CT2
CT1
0
0
0
0
0
1
0
1
1
0
1
0
1
1
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.
and 1 Hz output signals.
CHAPTER 7 REAL-TIME COUNTER
<5>
<4>
RCLOE1
RCLOE0
Real-time counter operation control
RTC1HZ pin output control
RTCCL pin output control
Selection of 12-/24-hour system
CT0
Constant-period interrupt (INTRTC) selection
0
Does not use constant-period interrupt function.
1
Once per 0.5 s (synchronized with second count up)
0
Once per 1 s (same time as second count up)
1
Once per 1 m (second 00 of every minute)
0
Once per 1 hour (minute 00 and second 00 of every hour)
1
Once per 1 day (hour 00, minute 00, and second 00 of every day)
×
Once per 1 month (Day 1, hour 00 a.m., minute 00, and second 00 of
every month)
User's Manual U17854EJ9V0UD
3
2
AMPM
CT2
1
0
CT1
CT0
265

Advertisement

Table of Contents
loading

Table of Contents