Epson RX-8564LC Applications Manual page 30

Real time clock module
Table of Contents

Advertisement

RX
8564 LC
3) AIE bit ( Alarm Interrupt Enable )
This bit is used to control interrupt signal output from the /INT pin when an alarm interrupt event has
occurred.
Writing "1" to this bit causes a low-level interrupt signal to be output from the /INT pin when an interrupt
event occurs.
When a "0" is written to this bit, output from the /INT pin is prohibited (disabled).
AIE
Write / Read
To detect when an alarm interrupt event has occurred without having to set the /INT pin to low level,
monitor the AF bit value (to see if it changes from "0" to "1") while keeping the AIE bit value as "0".
13.3.3. Examples of alarm settings
1) Basic information about alarm settings
Four parameters can be set as alarm objects: minute, hour, day, and date.
Hour settings are based on a 24-hour clock.
To exclude a setting from possibly triggering an alarm interrupt, write "1" to the AE bit in the register
corresponding to the setting in question.
If all four AE bits have a value of "1", no alarm interrupt events will occur.
Alarm interrupt events occur when conditions change to become conditions which trigger an alarm.
2) Examples of alarm settings are listed below.
At 7:30 AM every
Monday
At 7:30 PM on the 15th
of each month
At the top of each
=hour (one-hour cycle)
Data
1 ) When an alarm interrupt event occurs, an interrupt signal is not generated
or is canceled (/INT status remains Hi-z).
0
2 ) When an alarm interrupt event occurs, the interrupt signal is canceled
(/INT status changes from low to Hi-z).
When an alarm interrupt event occurs, an interrupt signal is generated (/INT
status changes from Hi-z to low).
1
If the AIE bit value is changed from "0" to "1" without first canceling an
interrupt event (i.e., if the AF bit value remains "1"), the /INT pin is
immediately set to low level ("L").
Reg
0C[h]
Weekday
Alarm
[Weekday] set
01 h
(Monday
[Weekday])
AE bit "1"
([Weekday]
ignored)
AE bit "1"
([Weekday]
ignored)
Page
Description
Reg
0B[h]
Reg
Day
Alarm
Alarm
[Day] set
[Hour] set
AE bit "1"
(7:00 AM)
([Day] ignored)
15 h
([15] days)
(7:00 PM)
AE bit "1"
AE bit "1"
([Day] ignored)
([Hour] ignored)
27
0A[h]
Reg
09[h]
Hour
Minute
Alarm
[Minute] set
07h
30h
(30 [Minute])
19 h
30 h
(30 minutes)
00 h
(00 minutes)
ETM12E-01

Advertisement

Table of Contents
loading

Table of Contents