14. Functions
RX8130CE
Jump to
ETM50E-07
Seiko Epson Corporation
33
Table 23 WEEK/DAY control
WADA
Data
Description
Write
0
Sets WEEK as target of alarm function
1
Sets DAY as target of alarm function
3) AF bit
(
Alarm Flag
)
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.
Table 24 Alarm Flag
AF
Data
Description
Write
0
Clearing this bit to zero enables /IRQ low output to be canceled (/IRQ
remains Hi-z) when an alarm interrupt event has occurred
.
1
Invalid (writing a 1 will be ignored)!
Read
0
1
Alarm interrupt events are detected.
(Result is retained until this bit is cleared to zero.)
4) AIE bit
(
Alarm Interrupt Enable
)
This bit is used to control output of interrupt signals from the /IRQ pin when an Alarm interrupt event has
occurred.
Table 25 Alarm Interrupt control
The AIE bit is only output control of the /IRQ terminal. It is necessary to clear an AF flag to cancel alarm.
14.3.2. Examples of alarm settings
1) Example of alarm settings when "Week" has been specified (and WADA bit
=
"0")
Table 26 WEEK alarm example
Week is specified
WADA bit = "0"
Week Alarm
HOUR
Alarm
MIN
Alarm
bit
7
AE
bit
6
S
bit
5
F
bit
4
T
bit
3
W
bit
2
T
bit
1
M
bit
0
S
Monday through Friday, at 7:00 AM
Minute value is ignored
0 0 1 1 1 1 1 0
07 h
AE bit = 1
Every Saturday and Sunday, for 30 minutes
each hour
Hour value is ignored
0 1 0 0 0 0 0 1
AE bit = 1
30 h
Every day, at 6:59 AM
0 1 1 1 1 1 1 1
18 h
59 h
1
: Don't care
AIE
Data
Description
Write
0
1) When an alarm interrupt event
occurs, an interrupt signal is not generated
or is canceled (/IRQ status remains Hi-z).
2) When an alarm interrupt event occurs, the interrupt signal is canceled
(/IRQ status changes from low to Hi-z).
1
When an alarm interrupt event
occurs, an interrupt signal is generated
(/IRQ status changes from Hi-z to low).