![Epson RX4111CE Скачать руководство пользователя страница 34](http://html.mh-extra.com/html/epson/rx4111ce/rx4111ce_applications-manual_106861034.webp)
14. How to use
RX4111CE
Jump to
ETM62E-02
Seiko Epson Corporation
33
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 30 AF bit (Alarm Flag)
AF
Data
Description
Write
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)
Read
0
Alarm interrupt events are not detected.
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 /INT pin when an Alarm interrupt event has occurred.
Table 31 AIE bit (Alarm Interrupt Enable)
AIE
Data
Description
Write
0
1) The Alarm interrupt signal is not output.
2) The Alarm interrupt signal during output is immediately released.
Note. as for INT-pin, Alarm, Wake-up Timer and Time update interrupts are
output as OR.
1
When an Alarm interrupt event
occurs, an interrupt signal is generated
(/INT status changes from Hi-z to low).
The AIE bit is only output control of the /INT pin. 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 32 Alarm Setting Ex1.
Week is specified
WADA bit = 0
Week Alarm
HOUR
Alarm
MIN
Alarm
SEC
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
Second value is ignored.
Alarm repeatedly generate for 1 minute at set
time.
0 0 1 1 1 1 1 0
07h
00h
AE
bit 1
Every Saturday and Sunday, for 30m00s
each hour
Hour value is ignored
0 1 0 0 0 0 0 1 AE
bit
1
30h
00h
Every day, at 6:59:30 PM
0 1 1 1 1 1 1 1
18h
59h
30h
1 X X X X X X X
X: Don't care
2) Example of alarm settings when "Day" has been specified (and WADA bit
=
1)
Table 33 Alarm Setting Ex2.
Day is specified
WADA bit = 1
Day Alarm
HOUR
Alarm
MIN
Alarm
SEC
Alarm
bit
7
AE
bit
6
bit
5
20
bit
4
10
bit
3
08
bit
2
04
bit
1
02
bit
0
01
First of each month, at 7:00 AM
Second value is ignored.
Alarm repeatedly generate for 1 minute at set
time.
0 0 0 0 0 0 0 1
07h
AE
bit
1
AE
bit
1
15
th
of each month, for 30m00s each hour.
Hour value is ignored
0 0 0 1 0 1 0 1 AE
bit
1
30h
00h
Every day, at 6:59:30 PM
1 X X X X X X X
18h
59h
30h
X: Don't care