
CHAPTER 9 REAL-TIME COUNTER
User’s Manual U19780EJ2V0UD
290
(2)
Real-time counter control register 1 (RTCC1)
The RTCC1 register is an 8-bit register that is used to control the alarm interrupt function and the wait time of
the counter.
RTCC1 can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation clears this register to 00H.
Figure 9-3. Format of Real-Time Counter Control Register 1 (RTCC1) (1/2)
Address: FF7EH After reset: 00H R/W
Symbol
<7>
<6> 5 <4>
<3> 2 <1>
<0>
RTCC1 WALE
Note
WALIE
0
WAFG RIFG
0
RWST RWAIT
WALE
Note
Alarm
operation
control
0
Match operation is invalid.
1
Match operation is valid.
When setting each alarm register (WALIE flag of RTCC1, the ALARMWM register, the ALARMWH register, and the
ALARMWW register), set match operation to be disable (“0”) for the WALE bit.
WALIE
Control of alarm interrupt (INTRTC) function operation
0
Does not generate interrupt on matching of alarm.
1
Generates interrupt on matching of alarm.
WAFG
Alarm detection status flag
0 Alarm
mismatch
1
Detection of matching of alarm
This is a status flag that indicates detection of matching with the alarm. It is valid only when WALE = 1 and is set to
“1” one clock (32.768 kHz) after matching of the alarm is detected. This flag is cleared when “0” is written to it.
Writing “1” to it is invalid.
Note
Rewrite the WALE bit after disabling interrupt servicing INTRTC. Furthermore, after rewriting the
WALE bit, enable INTRTC after clearing the WAFG flag, RIFG flag, and RTCIF flags.