PCA8565 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Product data sheet Rev. 4 — 5 December 2014 13 of 48
NXP Semiconductors
PCA8565
Real time clock/calendar
As an example, if the time (seconds through to hours) is set in one access and then in a
second access the date is set, it is possible that the time may increment between the two
accesses. A similar problem exists when reading. A roll over may occur between reads
thus giving the minutes from one moment and the hours from the next.
Recommended method for reading the time:
1. Send a START condition and the slave address for write (A2h).
2. Set the address pointer to registers Seconds (02h).
3. Send a RESTART condition or STOP followed by START.
4. Send the slave address for read (A3h).
5. Read the register Seconds.
6. Read the register Minutes.
7. Read the register Hours.
8. Read the register Days.
9. Read the register Weekdays.
10. Read the register Months_century.
11. Read the register Years.
12. Send a STOP condition.
8.6 Alarm registers
When one or more of the alarm registers are loaded with a valid minute, hour, day or
weekday and its corresponding bit alarm enable (AE_x) is logic 0, then that information is
compared with the actual minute, hour, day and weekday.
When all enabled comparisons first match, the Alarm Flag (AF) is set. AF will remain set
until cleared by command. Once AF has been cleared it is only set again when the
time increments to match the alarm condition once more. (For clearing the AF, see
Section 8.9.1.1 on page 18
.)
Alarm registers which have their bit AE_x at logic 1 are ignored.
Fig 6. Access time for read/write operations
WV
DDD
6/$9($''5(66 '$7$ 6723'$7$
67$57
PCA8565 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Product data sheet Rev. 4 — 5 December 2014 14 of 48
NXP Semiconductors
PCA8565
Real time clock/calendar
8.6.1 Register Minute_alarm
[1] Default value.
8.6.2 Register Hour_alarm
[1] Default value.
(1) Only when all enabled alarm settings are matching.
It’s only on increment to a matched case that the alarm is set, see Section 8.9.1.1
.
Fig 7. Alarm function block diagram
:((.
FKHFNQRZVLJQDO
Table 19. Register Minute_alarm (address 09h) bits description
Bit Symbol Value Place value Description
7 AE_M 0 - minute alarm is enabled
1
[1]
- minute alarm is disabled
6 to 4 MINUTE_ALARM 0 to 5 ten’s place minute alarm information coded in BCD
format
3 to 0 0 to 9 unit place
Table 20. Register Hour_alarm (address 0Ah) bits description
Bit Symbol Value Place value Description
7 AE_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
PCA8565 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Product data sheet Rev. 4 — 5 December 2014 15 of 48
NXP Semiconductors
PCA8565
Real time clock/calendar
8.6.3 Register Day_alarm
[1] Default value.
8.6.4 Register Weekday_alarm
[1] Default value.
8.7 Timer functions
The 8-bit countdown timer at address 0Fh is controlled by the timer control register at
address 0Eh. The timer control register determines one of 4 source clock frequencies for
the timer (4.096 kHz, 64 Hz, 1 Hz, or
1
60
Hz) and enables or disables the timer. The timer
counts down from a software-loaded 8-bit binary value. At the end of every countdown,
the timer sets the timer flag (TF) in the register Control_status_2. The TF may only be
cleared by command. The asserted TF can be used to generate an interrupt (on pin INT
).
The interrupt may be generated as a pulsed signal every countdown period or as a
permanently active signal which follows the state of TF. Bit TI_TP is used to control this
mode selection. When reading the timer, the current countdown value is returned.
8.7.1 Register Timer_control
The timer register is an 8-bit binary countdown timer. It is enabled and disabled via the
bit TE in register Timer_control. The source clock for the timer is also selected by the
TD[1:0] in register Timer_control. Other timer properties such as interrupt generation are
controlled via register Control_2.
Table 21. Register Day_alarm (address 0Bh) bits description
Bit Symbol Value Place value Description
7 AE_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. Register Weekday_alarm (address 0Ch) bits description
Bit Symbol Value Description
7 AE_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

PCA8565TS/1,118

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
Real Time Clock CMOS RTC/CALENDAR RTC IC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet