NXP Semiconductors
UM10788
User manual for I²C-bus RTC demo board OM13515
UM10788
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2014. All rights reserved.
User manual
Rev. 2 — 4 August 2014
10 of 16
5.2 System testing
There is a fast mode facility to test the functionality of the RTC; it can be activated by
setting the EXT_TEST bit in the Control_1 word.
The RTC PCF85063x has a frequency tuning facility; its operation is explained in section
RTC tuning. The RTC can stay switched on all the time. There is no need to restart or
reset the clock.
5.3 Software instructions for setting the clock
5.3.1 Setting the time
Setting the clock to 3.45 pm December 15, 2014:
I
2
C-bus S START condition
Slave address 1010 0010 address pointer to status
word 0
Register address 0000 0000 address pointer to status
word 0
Status word 0 0000 0010 set 12 hour mode and
select option for 7 pF quartz
I
2
C-bus Sr Repeated START condition
Slave address 1010 0010
R/
W = 0, write mode
Register address 0000 0100 address pointer to Seconds
register, address 4h
Seconds 0000 0000 0 seconds (clock integrity
ok MSB OS = 0)
Minutes 0100 0101 45 min
Hours 0010 0011 PM, 3
Days 0001 0101 15
th
Weekdays 0000 0001 Monday (1
st
day of the
week)
Month 0001 0010 December (12
th
month)
Year 0001 0100 (20)14
I
2
C-bus P STOP condition
NXP Semiconductors
UM10788
User manual for I²C-bus RTC demo board OM13515
UM10788
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2014. All rights reserved.
User manual
Rev. 2 — 4 August 2014
11 of 16
5.3.2 Reading the clock
Reading the clock (2 minutes after writing)
I
2
C-bus S START condition
Slave address 1010 0010 R/
W = 1, read mode
Register address 0000 0100 address pointer to Seconds
register
I
2
C-bus Sr repeated start condition
Slave address 1010 0011 read mode
Read register 4 e.g. 56 seconds, (clock
integrity ok OS = 0)
Minutes e.g. 47 (Minutes)
Hours e.g. 23 (PM, 03h)
Days e.g. 15 (15
th
)
Weekdays e.g. 01 (Monday)
Month e.g. 12 (December)
Year e.g. 14 (20)14
I
2
C-bus P STOP condition
6. RTC tuning
6.1 Frequency tuning
The 32 kHz quartzes are typically sold with a tolerance at room temperature of either
±10 ppm or ±20 ppm. 11.5 ppm corresponds to 1 s/day.
The quartzes require a characteristic load capacity of either 7 pF or 12.5 pF. Oscillators
utilizing 7 pF quartzes feature slightly lower power consumption, where the quartzes of
12.5 pF have largest production quantities. Program the CAP_SEL bit in register
Control_1 accordingly. The tracks between quartz and RTC represent also some
parasitic capacitances and must be kept short.
The PCF85063 has a tuning facility where above tolerances can be compensated.
Tuning procedure:
Measure the 32xxx Hz (f) signal at the CLKOUT pin.
The offset is calculated in ppm as
Δf
[ppm]
= 10
6
× (f - 32768) / 32768
Consult the offset table in the data sheet. Take the correction value and write it into
the register 02h.
NXP Semiconductors
UM10788
User manual for I²C-bus RTC demo board OM13515
UM10788
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2014. All rights reserved.
User manual
Rev. 2 — 4 August 2014
12 of 16
The correction is done by means of inhibition or addition: the oscillator runs at
constant speed, then every 2 hours (mode 0) 1 second is corrected to by making it
shorter or longer. This is not easily visible at the CLKOUT.
Corrections can also be applied every 4 minutes by using mode 1. This mode will
consume slightly more power.
The 32 kHz quartzes are of the type tuning fork and feature a parabolic frequency
response over temperature. When the application is dominantly used over a limited
temperature range, it is often helpful to tune the frequency to be slightly higher at the
turn-over point. The error around 25 °C (clock goes too fast) is then compensated during
the time when temperature is lower or higher. For example, for operation between 5 °C
and 45 °C, tune the clock 8 ppm faster than the value for 25 °C would be. (Fig 7
)
(1) Characteristic if tuned to 32.768 kHz at 25 ºC.
(2) Characteristic if tuned with the positive offset Δf
off
.
Fig 7. Temperature averaged over application range 5 °C to 45 °C

OM13515UL

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
Clock & Timer Development Tools PCF85063AT Evaluation board
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet