Epson RX-8581JE Applications Manual page 22

Real time clock module
Table of Contents

Advertisement

RX - 8581 SA
JE
/
8.5.2. Related registers
Address
1
2
3
4
8
9
HOUR Alarm
WEEK Alarm
A
DAY Alarm
D
Extension Register
E
Flag Register
F
Control Register
1)
"o" indicates write-protected bits. A zero is always read from these bits.
2)
Bits marked with " " are RAM bits that can contain any value and are read/write-accessible.
Before entering settings for operations, we recommend writing a "0" to the AIE bit to prevent hardware interrupts
from occurring inadvertently while entering settings.
When the STOP bit or RESET bit value is "1" alarm interrupt events do not occur.
When the alarm interrupt function is not being used, the Alarm registers (Reg - 8 to A) can be used as a RAM
register. In such cases, be sure to write "0" to the AIE bit.
When the AIE bit value is "1" and the Alarm registers (Reg - 8 to A) is being used as a RAM register, /INT may be
changed to low level unintentionally.
1) WADA (Week Alarm /Day Alarm) bit
The alarm interrupt function uses either "Day" or "Week" as its target. The WADA bit is used to specify either
WEEK or DAY as the target for alarm interrupt events.
WADA
Write/Read
2) Alarm registers (Reg - 8 to A)
Address
8
9
A
The hour, minute, date or day when an alarm interrupt event will occur is set using this register and the
WADA bit.
In the WEEK alarm /Day alarm register (Reg - A), the setting selected via the WADA bit determines whether
WEEK alarm data or DAY alarm data will be set. If WEEK has been selected via the WADA bit, multiple
days can be set (such as Monday, Wednesday, Friday, Saturday).
When the settings made in the alarm registers and the WADA bit 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.
1) The register that "1" was set to "AE" bit, doesn't compare alarm.
(Example) Write 80h (AE = "1") to the WEEK Alarm /DAY Alarm register (Reg - A):
Only the hour and minute settings are used as alarm comparison targets. The week and date settings
are not used as alarm comparison targets.
As a result, alarm occurs if only an hour and minute accords with alarm data.
2) If all three AE bit values are "1" the week/date settings are ignored and an alarm interrupt event will
occur once per minute.
NB
/
Function
bit 7
MIN
!
HOUR
!
WEEK
!
DAY
!
MIN Alarm
AE
AE
AE
TEST
!
!
Data
Sets WEEK as target of alarm function
0
(DAY setting is ignored)
Sets DAY as target of alarm function
1
(WEEK setting is ignored)
Function
MIN Alarm
HOUR Alarm
WEEK Alarm
DAY Alarm
bit 6
bit 5
bit 4
40
20
10
20
10
!
6
5
4
20
10
!
40
20
10
20
10
6
5
4
20
10
WADA
USEL
TE
!
UF
TF
!
UIE
TIE
Description
bit 7
bit 6
bit 5
AE
40
20
AE
20
6
5
AE
20
Page - 19
bit 3
bit 2
bit 1
8
4
2
8
4
2
3
2
1
8
4
2
8
4
2
8
4
2
3
2
1
8
4
2
!
!
TSEL1
AF
!
VLF
AIE
!
STOP
bit 4
bit 3
bit 2
bit 1
10
8
4
2
10
8
4
2
4
3
2
1
10
8
4
2
MQ372-02
bit 0
1
1
0
1
1
1
0
1
TSEL0
!
RESET
bit 0
1
1
0
1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rx-8581nbRx-8581sa

Table of Contents