PCA2125_1 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 01 — 28 July 2008 19 of 36
NXP Semiconductors
PCA2125
SPI Real-time clock/calendar
The timing shown for clearing bit MSF in Figure 12 is also valid for the non-pulsed
interrupt mode i.e. when bit TI_TP = 0, where the pulse can be shortened by setting both
bits MI and SI to logic 0.
8.7.2 Countdown timer interrupts
Generation of interrupts from the countdown timer is controlled via bit TIE; see Table 7.
The pulse generator for the countdown timer interrupt also uses an internal clock which is
dependent on the selected source clock for the countdown timer and on the countdown
value n. As a consequence, the width of the interrupt pulse varies; see Table 34.
[1] n = loaded countdown value. Timer stopped when n = 0.
If the TF flag is clear before the end of the INT pulse, then the INT pulse is shortened. This
allows the source of a system interrupt to be cleared immediately it is serviced i.e. the
system does not have to wait for the completion of the pulse before continuing; see
Figure 13. Instructions for clearing TF are given in Section 8.6.3.
(1) Indicates normal duration of INT pulse (bit TI_TP = 1).
Fig 12. Example of shortening the INT pulse by clearing the MSF flag
001aaf908
58seconds counter
MSF
INT
SCL
instruction
59
CLEAR INSTRUCTION
8th clock
(1)
Table 34. INT operation (bit TI_TP = 1)
Source clock (Hz) INT period (s)
n = 1
[1]
n > 1
4096
1
8192
1
4096
64
1
128
1
64
1
1
64
1
64
1
60
1
64
1
64
PCA2125_1 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 01 — 28 July 2008 20 of 36
NXP Semiconductors
PCA2125
SPI Real-time clock/calendar
The timing shown for clearing bit TF in Figure 13 is also valid for the non-pulsed interrupt
mode i.e. when bit TI_TP = 0, where the pulse can be shortened by setting bit TIE = 0.
8.7.3 Alarm interrupts
Generation of interrupts from the alarm function is controlled via bit AIE. If bit AIE is
enabled, the INT pin follows the status of bit AF. Clearing bit AF will immediately clear INT.
No pulse generation is possible for alarm interrupts; see Figure 14.
(1) Indicates normal duration of INT pulse (bit TI_TP = 1).
Fig 13. Example of shortening the INT pulse by clearing the TF flag
001aaf909
01countdown counter
TF
INT
SCL
instruction
n
CLEAR INSTRUCTION
8th clock
(1)
Example where only the minute alarm is used and no other interrupts are enabled.
Fig 14. AF timing
001aaf910
44
45
minute counter
minute alarm
AF
INT
SCL
instruction
45
CLEAR INSTRUCTION
8th clock
PCA2125_1 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 01 — 28 July 2008 21 of 36
NXP Semiconductors
PCA2125
SPI Real-time clock/calendar
8.8 Clock output
A programmable square wave is available at pin CLKOUT. Operation is controlled by
control bits COF[2:0] in register CLKOUT_control (0Dh). Frequencies of 32.768 kHz
(default) down to 1 Hz can be generated for use as a system clock, microcontroller clock,
input to a charge pump, or for calibration of the oscillator.
Pin CLKOUT is an open-drain output and enabled at power-on. When disabled the output
is LOW.
The duty cycle of the selected clock is not controlled, but due to the nature of the clock
generation, all clock frequencies, except 32.768 kHz, have a duty cycle of 50 : 50.
The ‘stop’ function can also affect the CLKOUT signal, depending on the selected
frequency. When ‘stop’ is active, the CLKOUT pin will generate a continuous LOW for
those frequencies that can be stopped. For more details, see Section 8.10.
[1] Duty cycle definition: HIGH-level time (%) : LOW-level time (%).
8.9 External clock test mode
A test mode is available which allows for on-board testing. In this mode it is possible to set
up test conditions and control the operation of the RTC.
The test mode is entered by setting bit EXT_TEST in register Control_1 making
pin CLKOUT an input. The test mode replaces the internal signal with the signal applied to
pin CLKOUT. Every 64 positive edges applied to pin CLKOUT generates an increment of
one second.
The signal applied to pin CLKOUT should have a minimum HIGH width of 300 ns and a
minimum period of 1000 ns. The internal clock, now sourced from pin CLKOUT, is divided
down to 1 Hz by a 2
6
divide chain called a prescaler; see Section 8.10. The prescaler can
be set into a known state by using bit STOP. When bit STOP is set, the prescaler is reset
to 0. STOP must be cleared before the prescaler can operate again.
From a stop condition, the first 1 second increment will take place after 32 positive edges
on pin CLKOUT. Thereafter, every 64 positive edges will cause a 1 second increment.
Remark: Entry into 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.
Operation example:
Table 35. CLKOUT frequency selection
Bits COF[2:0] CLKOUT frequency (Hz) Typical duty cycle
[1]
(%) Effect of ‘stop’
000 32768 60 : 40 to 40 : 60 no effect
001 16384 50 : 50 no effect
010 8192 50 : 50 no effect
011 4096 50 : 50 CLKOUT = LOW
100 2048 50 : 50 CLKOUT = LOW
101 1024 50 : 50 CLKOUT = LOW
110 1 50 : 50 CLKOUT = LOW
111 CLKOUT = LOW

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