PCA2125_1 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 01 — 28 July 2008 22 of 36
NXP Semiconductors
PCA2125
SPI Real-time clock/calendar
1. Set EXT_TEST test mode (register Control_1, bit EXT_TEST = 1).
2. Set STOP (register Control_1, bit STOP = 1).
3. Clear STOP (register Control_1, bit STOP = 0).
4. Set time registers to desired value.
5. Apply 32 clock pulses to pin CLKOUT.
6. Read time registers to see the first change.
7. Apply 64 clock pulses to pin CLKOUT.
8. Read time registers to see the second change.
Repeat steps 7 and 8 for additional increments.
8.10 STOP bit function
The STOP bit function allows the accurate starting of the time circuits. The stop function
will cause the upper part of the prescaler (F
2
to F
14
) to be held at reset, thus no 1 Hz ticks
will be generated. The time circuits can then be set and will not increment until the stop is
released; see Figure 15.
Stop will not affect the output of 32768 Hz, 16384 Hz or 8192 Hz; see Section 8.8.
The lower two stages of the prescaler (F
0
and F
1
) are not reset and because the SPI-bus
is asynchronous to the crystal oscillator, the accuracy of re-starting the time circuits will be
between 0 and one 8192 Hz cycle; see Figure 16.
Fig 15. Stop bit functional diagram
Fig 16. STOP bit release timing
001aaf911
OSC
32768 Hz
16384 Hz
OSC STOP
DETECTOR
F
0
F
1
F
13
RES
F
14
RES
F
2
RES
2 Hz
512 Hz
16384 Hz
8192 Hz
1 Hz tick
stop
CLKOUT source
reset
8192 Hz
4096 Hz
001aaf912
8192 Hz
stop released
0 µs to 122 µs
PCA2125_1 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 01 — 28 July 2008 23 of 36
NXP Semiconductors
PCA2125
SPI Real-time clock/calendar
The first increment of the time circuits is between 0.499888 s and 0.500000 s after stop is
released. The uncertainty is caused by prescaler bits F0 and F1 not being reset;
see Table 36.
[1] F
0
is clocked at 32.768 kHz.
Table 36. Example: first increment of time circuits after stop release
Bit STOP Prescaler bits 1 Hz tick Time Comment
F
0
F
1
-F
2
to F
14
[1]
hh:mm:ss
Clock is running normally
0 01-0 0001 1101 0100 12:45:12 prescaler counting normally
Stop is activated by user. F0F1 are not reset and values can not be predicted externally
1 XX-0 0000 0000 0000 12:45:12 prescaler is reset; time circuits are frozen
New time is set by user
1 XX-0 0000 0000 0000 08:00:00 prescaler is reset; time circuits are frozen
Stop is released by user
0 XX-0 0000 0000 0000 08:00:00 prescaler is now running
XX-1 0000 0000 0000 08:00:00
XX-0 1000 0000 0000 08:00:00
XX-1 1000 0000 0000 08:00:00
::
11-1 1111 1111 1110 08:00:00
00-0 0000 0000 0001 08:00:01 0 to 1 transition of F14 increments the time circuits
10-0 0000 0000 0001 08:00:01
::
11-1 1111 1111 1111 08:00:01
00-0 0000 0000 0000 08:00:01
10-0 0000 0000 0000 08:00:01
::
11-1 1111 1111 1110 08:00:01
00-0 0000 0000 0001 08:00:02 0 to 1 transition of F14 increments the time circuits
Fig 17. Increment of time circuit
001aaf913
0.499888 s to 0.500000 s 1 s
PCA2125_1 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 01 — 28 July 2008 24 of 36
NXP Semiconductors
PCA2125
SPI Real-time clock/calendar
8.11 3-line SPI
Data transfer to and from the device is made via a 3-wire SPI-bus; see Table 37. The data
lines for input and output are split. The data input and output lines can be connected
together to facilitate a bidirectional data bus. The chip enable signal is used to identify the
transmitted data. Each data transfer is a byte, with the Most Significant Bit (MSB) sent
first; see Figure 18.
The transmission is controlled by the active HIGH chip enable signal CE. The first byte
transmitted is the command byte. Subsequent bytes will be either data to be written or
data to be read. Data is captured on the rising edge of the clock and transferred internally
on the falling edge.
The command byte defines the address of the first register to be accessed and the
read/write mode. The address counter will auto increment after every access and will
reset to zero after the last valid register is accessed. The read/write bit (R/W) defines if the
following bytes will be read or write information.
In Figure 19 the Seconds register is set to 45 seconds and the Minutes register to
10 minutes.
Table 37. Serial interface
Pin Function Description
CE chip enable input when LOW, the interface is reset; pull-down resistor included; active
input can be higher than V
DD
, but must not be wired HIGH
permanently
SCL serial clock input when pin CE = LOW, this input might float; input can be higher than
V
DD
SDI serial data input when pin CE = LOW, this input might float; input can be higher than
V
DD
; input data is sampled on the rising edge of SCL
SDO serial data output push-pull output; drives from V
SS
to V
DD
; output data is changed on
the falling edge of SCL
Fig 18. Data transfer overview
Table 38. Command byte definition
Bit Symbol Value Description
7R/
W data read or data write selection
0 write data
1 read data
6 to 4 SA 001 subaddress; other codes will cause the device to ignore data
transfer
3 to 0 RA 00h to 0Fh register address range
001aaf914
COMMANDdata bus
chip enable
DATA DATADATA

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