EasyManuals Logo
Home>Renesas>Microcontrollers>RL78/G1H

Renesas RL78/G1H User Manual

Renesas RL78/G1H
941 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #275 background imageLoading...
Page #275 background image
RL78/G1H CHAPTER 9 REAL-TIME CLOCK
R01UH0575EJ0120 Rev. 1.20 Page 257 of 920
Dec 22, 2016
9.4.4 Setting alarm of real-time clock
Set time of alarm after setting 0 to WALE (alarm operation invalid) first.
Figure 9 - 22 Alarm Setting Procedure
Remark 1. The alarm week register (ALARMWW), alarm hour register (ALARMWH), and alarm week register (ALARMWW) may be
written in any sequence.
Remark 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.
Constant-period interrupt servicing
Alarm processing
WALE = 0
Start
Setting ALARMWM
INTRTC = 1 ?
Match operation of alarm is invalid.
Sets alarm minute register.
Yes
WALIE = 1
Interrupt is generated when alarm matches.
Setting ALARMWH
Sets alarm hour register.
Setting ALARMWW
Sets alarm week register.
WALE = 1
Match operation of alarm is valid.
WAFG = 1 ?
No
Yes
Match detection of alarm
No

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas RL78/G1H and is the answer not in the manual?

Renesas RL78/G1H Specifications

General IconGeneral
BrandRenesas
ModelRL78/G1H
CategoryMicrocontrollers
LanguageEnglish

Related product manuals