PCA2125_1 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 01 — 28 July 2008 10 of 36
NXP Semiconductors
PCA2125
SPI Real-time clock/calendar
Figure 6 shows the data flow and data dependencies starting from the 1 Hz clock tick.
8.5 Alarm function
When one or several alarm registers are loaded with a valid minute, hour, day or weekday
value and its corresponding alarm enable not bit (AENx) is logic 0, then that information is
compared with the current minute, hour, day and weekday value.
October X X X 1 0 0 0 0
November X X X 1 0 0 0 1
December X X X 1 0 0 1 0
Table 17. Register Years (address 08h) bit description
Bit Symbol Value Description
7 to 0 YEARS[7:0] 00 to 99 this register holds the current year value coded in BCD
format
Fig 6. Data flow for the time function
Table 16. Month assignments
…continued
Month Double-digit Digit
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
001aaf901
1 Hz tick
12_24 hour mode
WEEKDAY
SECONDS
MINUTES
HOURS
DAYS
LEAP YEAR
CALCULATION
MONTHS
YEARS
Table 18. Register Minute_alarm (address 09h) bit description
Bit Symbol Value Description
7 AEN_M 0 minute alarm is enabled
1 minute alarm is disabled
6 to 0 MINUTE_ALARM[6:0] 00 to 59 this register holds the minute alarm value coded in
BCD format
PCA2125_1 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 01 — 28 July 2008 11 of 36
NXP Semiconductors
PCA2125
SPI Real-time clock/calendar
Table 19. Register Hour_alarm (address 0Ah) bit description
Bit Symbol Value Description
7 AEN_H 0 hour alarm is enabled
1 hour alarm is disabled
6 - 0 unused
12 hour mode
5 AMPM 0 indicates AM
1 indicates PM
4 to 0 HOUR_ALARM 01 to 12 this register holds the hour alarm value coded in BCD
format when in 12 hour mode
24 hour mode
5 to 0 HOUR_ALARM 00 to 23 this register holds the hour alarm value coded in BCD
format when in 24 hour mode
Table 20. Register Day_alarm (address 0Bh) bit description
Bit Symbol Value Description
7 AEN_D 0 day alarm is enabled
1 day alarm is disabled
6 - 0 unused
5 to 0 DAY_ALARM 01 to 31 this register holds the day alarm value coded in BCD
format
Table 21. Register Weekday_alarm (address 0Ch) bit description
Bit Symbol Value Description
7 AEN_W 0 weekday alarm is enabled
1 weekday alarm is disabled
3 to 6 - 0 unused
2 to 0 WEEKDAY_ALARM 0 to 6 this register holds the weekday alarm value
PCA2125_1 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 01 — 28 July 2008 12 of 36
NXP Semiconductors
PCA2125
SPI Real-time clock/calendar
Generation of interrupts from the alarm function is described in Section 8.7.3.
8.5.1 Alarm flag
When all enabled comparisons first match, the alarm flag bit AF is set. Bit AF will remain
set until cleared by software. Once bit AF has been cleared it will only be set again when
the time increments once more to match the alarm condition.
Alarm registers which have their bit AENx at logic 1 are ignored.
Figure 8 shows an example for clearing bit AF, but leaving bit MSF and bit TF unaffected.
The flags are cleared by a write command, therefore bits 7, 6, 4, 1 and 0 must be written
with their previous values. Repeatedly re-writing these bits has no influence on the
functional behavior.
Fig 7. Alarm function block diagram
001aaf902
WEEKDAY ALARM
WEEKDAY AEN
WEEKDAY TIME
=
DAY ALARM
DAY AEN
DAY TIME
=
HOUR ALARM
HOUR AEN
HOUR TIME
=
MINUTE ALARM
MINUTE AEN
MINUTE TIME
=
check now signal
set alarm flag, AF
MINUTE AEN = 1
1
0
example
Example where only the minute alarm is used and no other interrupts are enabled.
Fig 8. Alarm flag timing
001aaf903
44
45
45minute alarm
minutes counter
AF
INT when AIE = 1
46

PCA2125TS/1,112

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
IC RTC CLK/CALENDAR SPI 14-TSSOP
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet