PCF8564A All information provided in this document is subject to legal disclaimers. © NXP B.V. 2013. All rights reserved.
Product data sheet Rev. 3 — 26 August 2013 14 of 48
NXP Semiconductors
PCF8564A
Real time clock and calendar
8.6.2 Register Hour_alarm
[1] Default value.
8.6.3 Register Day_alarm
[1] Default value.
8.6.4 Register Weekday_alarm
[1] Default value.
8.6.5 Alarm flag
By clearing the MSB of one or more of the alarm registers AEN_x (Alarm Enable), the
corresponding alarm condition(s) are active. When an alarm occurs, AF is set to logic 1.
The asserted AF can be used to generate an interrupt (INT
). The AF is cleared by
command.
The registers at addresses 09h through 0Ch contain alarm information. When one or
more of these registers is loaded with a valid minute, hour, day, or weekday and its
corresponding Alarm Enable bit (AEN_x) is logic 0, then that information is compared with
the current minute, hour, day, and weekday. When all enabled comparisons first match,
the Alarm Flag (AF in register Control_2) is set to logic 1.
Table 20. Hour_alarm - hour alarm register (address 0Ah) bit description
Bit Symbol Value Place value Description
7 AEN_H 0 - hour alarm is enabled
1
[1]
- hour alarm is disabled
6 - - - unused
5 to 4 HOUR_ALARM 0 to 2 ten’s place hour alarm information coded in BCD
format
3 to 0 0 to 9 unit place
Table 21. Day_alarm - day alarm register (address 0Bh) bit description
Bit Symbol Value Place value Description
7 AEN_D 0 - day alarm is enabled
1
[1]
- day alarm is disabled
6 - - - unused
5 to 4 DAY_ALARM 0 to 3 ten’s place day alarm information coded in BCD
format
3 to 0 0 to 9 unit place
Table 22. Weekday_alarm - weekday alarm register (address 0Ch) bit description
Bit Symbol Value Description
7 AEN_W 0 weekday alarm is enabled
1
[1]
weekday alarm is disabled
6 to 3 - - unused
2 to 0 WEEKDAY_ALARM 0 to 6 weekday alarm information coded in BCD format