Renesas rl78 User Manual

Page of 1004
 
RL78/G1A 
 
CHAPTER  7   REAL-TIME  CLOCK 
7.3.4  Real-time clock 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. 
The RTCC1 register can be set by a 1-bit or 8-bit memory manipulation instruction. 
Reset signal generation clears this register to 00H. 
 
Figure 7-5.  Format of Real-time Clock Control Register 1 (RTCC1) (1/2) 
 
Address: FFF9EH     After reset: 00H     R/W 
Symbol 
<7> 
<6> 5 <4> 
<3> 2 <1> 
<0> 
RTCC1 WALE WALIE 
WAFG  RIFG 
RWST RWAIT 
 
WALE Alarm 
operation 
control 
Match operation is invalid. 
Match operation is valid. 
When setting a value to the WALE bit while the counter operates (RTCE = 1) and WALIE = 1, rewrite the WALE bit 
after disabling interrupt servicing INTRTC by using the interrupt mask flag register.  Furthermore, clear the WAFG 
and RTCIF flags after rewriting the WALE bit.  When setting each alarm register (WALIE flag of real-time clock 
control register 1 (RTCC1), the alarm minute register (ALARMWM), the alarm hour register (ALARMWH), and the 
alarm week register (ALARMWW)), set match operation to be invalid (“0”) for the WALE bit. 
 
WALIE 
Control of alarm interrupt (INTRTC) function operation 
Does not generate interrupt on matching of alarm. 
Generates interrupt on matching of alarm. 
 
WAFG 
Alarm detection status flag 
0 Alarm 
mismatch 
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 cycle of f
RTC
 after matching of the alarm is detected.  This flag is cleared when “0” is written to it.  Writing “1” 
to it is invalid. 
<R> 
 
RIFG 
Constant-period interrupt status flag 
Constant-period interrupt is not generated. 
Constant-period interrupt is generated. 
This flag indicates the status of generation of the constant-period interrupt.  When the constant-period interrupt is 
generated, it is set to “1”.  
This flag is cleared when “0” is written to it.  Writing “1” to it is invalid. 
 
R01UH0305EJ0200  Rev.2.00 
 
 
299  
Jul 04, 2013