Alarm Interrupt Function; Related Registers For Alarm Interrupt Functions; Table 28 Alarm Interrupt Registers; Table 29 Wada Bit (Week Alarm / Day Alarm Select) - Epson RX4111CE Applications Manual

Real time clock module
Hide thumbs Also See for RX4111CE:
Table of Contents

Advertisement

14.3. Alarm Interrupt Function

The alarm interrupt function generates interrupt events for alarm settings such as date, day, hour, minute, and second
settings. When an interrupt event occurs, the AF bit value is set to 1 and the /INT pin goes to low level to indicate that an
event has occurred.
/INT= Low output when occurs alarm interruption event is not cancelled automatically unless giving
intentional cancellation and /INT = Low are maintained.

14.3.1. Related Registers for Alarm Interrupt Functions.

Table 28 Alarm Interrupt Registers

Address[h]
Bank2 - C
Bank1 - 7
8
9
D
Extension Register
E
F
Before entering settings for operations, it is recommended to first set the AIE bit to 0 in order to avoid inadvertent
hardware interrupt at setting.
When the STOP bit value is 1alarm interrupt events do not occur.
When the alarm interrupt function is not being used, the Alarm registers 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 is being used as a RAM register, /INT may
be changed to low level unintentionally.
1) Alarm registers
The second, minute, hour, day and date when an alarm interrupt event will occur is set using this register and
the WADA bit.
In the WEEK alarm /Day alarm register, 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).
In case "AE" bit of register 9h is set to 1, the day will be ignored, and an interrupt occurs ones the actual time
matches the seconds, minutes and hour setting of the alarm register.
(Example) Write 80h (AE = 1) to the WEEK Alarm / DAY Alarm register (Reg - 9h):
Only the hour, minute and second 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 the hour, minute and second values match the alarm data.
If all 4 AE bit values are 1 the week/date and time settings are ignored, and an alarm interrupt event will occur once
per second.
The alarm does not occur even if it is set the same as the current time. Occurs at the next time match.
2) WADA bit(Week Alarm / Day Alarm Select)
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.

Table 29 WADA bit (Week Alarm / Day Alarm Select)

WADA
Write
RX4111CE
ETM62E-02
Function
bit 7
SEC Alarm
AE
MIN Alarm
AE
AE
HOUR Alarm
WEEK Alarm
AE
DAY Alarm
FSEL1 FSEL0
Flag Register
POR
Control Register
z
Data
0
Sets WEEK as target of alarm function
1
Sets DAY as target of alarm function
Seiko Epson Corporation
bit 6
bit 5
bit 4
bit 3
40
20
10
40
20
10
20
10
6
5
4
20
10
WADA
USEL
TE
z
UF
TF
z
UIE
TIE
Description
14. How to use
bit 2
bit 1
bit 0
8
4
2
8
4
2
8
4
2
3
2
1
8
4
2
TSEL1 TSEL0
AF
EVF
VLF
XST
AIE
EIE
z
STOP
Jump to
1
1
1
0
1
Top
/
Bottom
32

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rx4111ce aRx4111ce bX1b000431000115X1b000431000215

Table of Contents