English
Language : 

UPD78F1502AGK-GAK-AX Datasheet, PDF (382/1031 Pages) Renesas Technology Corp – 16-Bit Single-Chip Microcontrollers
78K0R/Lx3
CHAPTER 7 REAL-TIME COUNTER
7.4.4 Setting alarm of real-time counter
Set time of alarm after setting 0 to WALE first.
Figure 7-23. Alarm Setting Procedure
Start
WALE = 0
Match operation of alarm is invalid.
WALIE = 1
Interrupt is generated when alarm matches.
Setting ALARMWM
Sets alarm minute register.
Setting ALARMWH
Sets alarm hour register.
Setting ALARMWW
Sets alarm week register.
WALE = 1
Match operation of alarm is valid.
No
INTRTC = 1?
Yes
WAFG = 1?
Match detection of alarm Yes
Alarm processing
No
Constant-period interrupt servicing
Remarks 1. ALARMWM, ALARMWH, and ALARMWW may be written in any sequence.
2. Fixed-cycle interrupts and alarm match interrupts use the same interrupt source (INTRTC). When using
these two types of interrupts at the same time, which interrupt occurred can be judged by checking the
fixed-cycle interrupt status flag (RIFG) and the alarm detection status flag (WAFG) upon INTRTC
occurrence.
R01UH0004EJ0501 Rev.5.01
366
Jun 20, 2011