Epson RX-8564LC Applications Manual page 29

Real time clock module
Table of Contents

Advertisement

RX
8564 LC
13.3.2. Alarm interrupt function registers
Address [h]
01
03
04
05
06
09
Minute Alarm
0A
0B
0C
Weekday Alarm
Before entering settings for operations, we recommend writing a "0" to the AIE bit to prevent hardware interrupts
from occurring inadvertently while entering settings.
1) Alarm registers ( Reg
The hour, minute, date or day when an alarm interrupt event will occur is set using this register and the AE
bit.
When the settings made in the alarm registers match the current time, the AF bit value is changed to "1". At
that time, if the AIE bit value has already been set to "1", the /INT pin goes low.
AE bit
1) When the AE bit value is "1", the data concerning the setting in question is ignored and is not
subject to any comparison that would trigger an alarm interrupt.
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.
(Example) To leave [hour], [minute], and [day of week (weekday)] settings as possible alarm interrupt
triggers while excluding only the [day] setting from being a possible alarm interrupt trigger:
80h (AE = "1") to the register used for the [day] setting register (the DAY Alarm
register, (Reg
2) If all four AE bits have a value of "1", no alarm interrupt events will occur.
2) AF bit ( Alarm Flag )
This is a flag bit that retains the result when an alarm interrupt event has been detected.
When this flag bit value is already set to "0", occurrence of an alarm interrupt event changes it to "1".
AF
Write
Read
Function
bit 7
Control 2
0
Minutes
Hours
Days
Weekdays
AE
Hour Alarm
AE
Day Alarm
AE
AE
09 [h] to 0C [h] )
0B[h])).
Data
The AF bit is cleared to zero to prepare for the next status detection
0
Clearing this bit to zero enables /AIRQ low output to be canceled (/AIRQ
remains Hi-Z) when an alarm interrupt event has occurred.
1
This bit is invalid after a "1" has been written to it.
0
Alarm interrupt events are not detected.
Alarm interrupt events are detected.
1
Result is retained until this bit is cleared to zero.
bit 6
bit 5
bit 4
0
TI / TP
40
20
10
20
10
20
10
40
20
10
20
10
20
10
Description
Page
26
bit 3
bit 2
bit 1
AF
TF
AIE
8
4
2
8
4
2
8
4
2
4
2
8
4
2
8
4
2
8
4
2
4
2
ETM12E-01
bit 0
TIE
1
1
1
1
1
1
1
1
Write

Advertisement

Table of Contents
loading

Table of Contents