Examples Of Alarm Settings - Epson RA8804 CE Applications Manual

Real time clock module
Table of Contents

Advertisement

RA8804 CE
3) AF (Alarm Flag) bit
When this flag bit value is already set to "0", occurrence of an alarm interrupt event changes it to "1". When this
flag bit value is "1", its value is retained until a "0" is written to it.
AF
Write
Read
4) AIE (Alarm Interrupt Enable) bit
When an alarm interrupt event occurs (when the AF bit value changes from "0"to "1"), this bit's value specifies
whether an interrupt signal is generated (/INT status changes from Hi-Z to low) or is not generated (/INT status
remains Hi-Z).
AIE
Write/Read

8.7.3. Examples of alarm settings

1) Example of alarm settings when "Day" has been specified (and WADA bit="0")
Monday through Friday, at 7:00 AM
 Minute value is ignored
Every Saturday and Sunday, for 30 minutes
each hour  Hour value is ignored
Every day, at 6:59 AM
: Don't care
2) Example of alarm settings when Day has been specified (and WADA bit="1")
First of each month, at 7:00 AM
 Minute value is ignored
th
15
of each month, for 30 minutes each hour
 Hour value is ignored
Every day, at 6:59 PM
: Don't care
Data
The AF bit is cleared to zero to prepare for the next status detection

0
Clearing this bit to zero enables /INT low output to be canceled (/INT remains Hi-Z) when an alarm
interrupt event has occurred.
1
Invalid (writing a 1 will be ignored)!
0
Alarm interrupt events are not detected.
Alarm interrupt events are detected.
1
(Result is retained until this bit is cleared to zero.)
Data
1) When an alarm interrupt event occurs, an interrupt signal is not generated
or is canceled (/INT status remains Hi-Z).
2) When an alarm interrupt event occurs, the interrupt signal is canceled (/INT
0
status changes from low to Hi-Z).
 
Even when the AIE bit value is "0" another interrupt event may change the /INT status to low
(or may hold /INT ="L").
When an alarm interrupt event occurs, an interrupt signal is generated (/INT
status changes from Hi-Z to low).
1
When an alarm interrupt event occurs, low-level output from the /INT pin occurs only when the
AIE bit value is "1". This value is retained (not automatically cleared) until the AF bit is cleared
to zero.
Day is specified
WADA bit = "0"
Day is specified
WADA bit = "1"
Description
Description
Reg – A
bit
bit
bit
bit
bit
bit
7
6
5
4
3
2
AE
S
F
T
W
T
0
0
1
1
1
1
0
1
0
0
0
0
0
1
1
1
1
1
1
Reg - A
bit
bit
bit
bit
bit
bit
6
7
5
4
3
2
AE
20
10
08
04
0
0
0
0
0
0
0
0
0
1
0
1
1
Page - 29
Reg - 9
bit
bit
HOUR
1
0
Alarm
M
S
80h  FFh
1
0
07h
80h  FFh
0
1
1
1
18h
Reg - 9
bit
bit
HOUR
1
0
Alarm
02
01
80h  FFh
0
1
0 h
80h  FFh
0
1
18h
ETM60E-02
Reg - 8
MIN
Alarm
30h
59h
Reg - 8
MIN
Alarm
30h
59h

Advertisement

Table of Contents
loading

Table of Contents