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 16 of 48
NXP Semiconductors
PCF8564A
Real time clock and calendar
[1] Default value.
8.8 Timer function
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 TF (Timer Flag) to logic 1. The TF may only be cleared using the
interface.
The generation of interrupts from the timer function is controlled via bit TIE. If bit TIE is
enabled the INT
pin follows the condition of bit TF. The interrupt may be generated as a
pulsed signal every countdown period or as a permanently active signal which follows the
condition of the timer flag TF. TI_TP is used for this mode control. When reading the timer,
the current countdown value is returned.
8.8.1 Register Timer_ctrl
[1] Default value.
[2] These bits determine the source clock for the countdown timer; when not in use, TD[1:0] should be set to
1
60
Hz for power saving.
Table 23. CLKOUT_ctrl - CLKOUT control register (address 0Dh) bit description
Bit Symbol Value Description
7 FE 0 the CLKOUT output is inhibited and CLKOUT output is
set to logic 0
1
[1]
the CLKOUT output is activated
6 to 2 - - unused
1 to 0 FD[1:0] frequency output at pin CLKOUT
00
[1]
32.768 kHz
01 1.024 kHz
10 32 Hz
11 1 Hz
Table 24. Timer_ctrl - timer control register (address 0Eh) bit description
Bit Symbol Value Description
7TE 0
[1]
timer is disabled
1 timer is enabled
6 to 2 - - unused
1 to 0 TD[1:0] timer source clock frequency select
[2]
00 4.096 kHz
01 64 Hz
10 1 Hz
11
[2] 1
60
Hz
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 17 of 48
NXP Semiconductors
PCF8564A
Real time clock and calendar
8.8.2 Register Timer
[1] Countdown period in seconds: where TV is the
countdown timer value.
The timer register is an 8-bit binary countdown timer. It is enabled or disabled via the timer
control register. The source clock for the timer is also selected by the timer control
register. Other timer properties such as single or periodic interrupt generation are
controlled via the register Control_2 (address 01h).
For accurate read back of the count down value, the I
2
C-bus clock (SDA) must be
operating at a frequency of at least twice the selected timer clock. Since it is not possible
to freeze the countdown timer counter during read back, it is recommended to read the
register twice and check for consistent results.
8.9 EXT_CLK test mode
The test mode is entered by setting the TEST1 bit of register Control_1 to logic 1. The
CLKOUT pin then becomes an input. The test mode replaces the internal 64 Hz signal
with that applied to the CLKOUT pin. Every 64 positive edges applied to CLKOUT then
generates an increment of one second.
The signal applied to the CLKOUT pin should have a minimum pulse width of 300 ns and
a maximum period of 1000 ns. The 64 Hz clock, now sourced from CLKOUT, is divided
down to 1 Hz by a 2
6
divide chain called a prescaler. The prescaler can be set to a known
state by using the STOP bit. When the STOP bit is set, the prescaler is reset to logic 0.
(STOP must be cleared before the prescaler can operate.)
From a STOP condition, the first 1 second increment will take place after 32 positive
edges on CLKOUT. Thereafter, every 64 positive edges will cause a 1 second increment.
Remark: Entry into EXT_CLK test mode is not synchronized to the internal 64 Hz clock.
When entering the test mode, no assumption as to the state of the prescaler can be made.
8.9.1 Operation example
1. Set EXT_CLK test mode (Bit 7 Control_1 = 1).
2. Set STOP (Bit 5 Control_1 = 1).
3. Clear STOP (Bit 5 Control_1 = 0).
4. Set time registers to desired value.
5. Apply 32 clock pulses to CLKOUT.
Table 25. Timer - timer register (address 0Fh) bit description
Bit Symbol Value Description
7to0 TV[7:0] 0htoFFh
countdown timer value
[1]
Table 26. Timer register bits value range
Bit
7 6 5 4 3 2 1 0
1286432168421
CountdownPeriod
TV
SourceClockFrequency
---------------------------------------------------------------
=
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 18 of 48
NXP Semiconductors
PCF8564A
Real time clock and calendar
6. Read time registers to see the first change.
7. Apply 64 clock pulses to CLKOUT.
8. Read time registers to see the second change.
Repeat 7 and 8 for additional increments.
8.10 STOP bit function
The function of the STOP bit is to allow for accurate starting of the time circuits. The STOP
bit function will cause the upper part of the prescaler (F
2
to F
14
) to be held in reset and
thus no 1 Hz ticks will be generated (see Figure 8
). The time circuits can then be set and
will not increment until the STOP bit is released (see Figure 9
and Table 27).
The STOP bit function will not affect the output of 32.768 kHz on CLKOUT, but will stop
the generation of 1.024 kHz, 32 Hz and 1 Hz.
The lower two stages of the prescaler (F
0
and F
1
) are not reset and because the I
2
C-bus
is asynchronous to the crystal oscillator, the accuracy of re-starting the time circuits will be
between zero and one 8.192 kHz cycle (see Figure 9
).
Fig 8. STOP bit functional diagram
DDD
26&,//$725
+]
+]
26&,//$7256723
'(7(&725
)
)
)

5(6(7
)

5(6(7
)
5(6(7
+]
+]
+]
+]WLFN
6723
&/.287VRXUFH
UHVHW
+]
+]
+]
+]
Fig 9. STOP bit release timing
DDI
+]
VWRSUHOHDVHG
VWRV

PCF8564ACX9/B/1,02

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