NXP Semiconductors
UM10760
RTC PCF8523 evaluation board OM13511
Jumper JP4 links in a 10 kΩ pull-up resistor for the open-drain output in case that
there is none in the application.
The RC delay circuit R1 and C2 (plus C3) are guaranteeing that the V
DD
at the RTC
is not falling too fast to hamper uninterrupted power supply to the RTC.
The pull-up resistors, R5 and R6, for the I
2
C-bus are of 47 kΩ.
Position of the jumpers and connectors are found in the circuit diagram in Fig 3
and
the layout drawing in Fig 4.
Fig 4. Demo board and top side layout
5. Optional features for test and evaluation
5.1 Oscillator
The characteristics of the oscillator with different quartz crystals can easily be verified.
Landing pads for different size of quartz crystal
Landing pads to add load capacitances C4 and C5
Resistor R4 (0 Ω) can be replaced to simulate variance of quartz R
S
tolerances. Total
impedance of maximum 100 kΩ is recommended
5.2 Experimental area
On the board, there is space for adding a custom circuitry for general purpose. V
SS
and
V
DD
are available for easy set-up.
UM10760 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2015. All rights reserved.
User manual Rev. 1 — 2 February 2015 7 of 13
NXP Semiconductors
UM10760
RTC PCF8523 evaluation board OM13511
6. Software
The actual time must be set after power-on. For this, straightforward I
2
C-bus instructions
are used.
6.1 Functionality
The RTC PCF8523 is controlled via standard I
2
C-bus interface. Common I
2
C protocol
applies. The interface features the Fast Mode+ I
2
C-bus, operating up to 1 MHz. There is
theoretically no lower speed limit, however the access of the RTC should be completed
within less than 1 second, otherwise time counter-increments could be lost. During
access, the time registers of the RTC are frozen and after the read or write, sequence is
completed, a second’s increment is executed if necessary.
The clock tracks the actual time from seconds to year. It must initially be set to the
correct time. The days per month and leap year are corrected automatically.
The RTC can be programmed to generate an interrupt every 30 seconds or every
60 seconds.
A general-purpose RAM byte to store temporary information is at address 03h.
6.2 Software instructions for setting the clock
6.2.1 Setting the time
Setting the clock to 3.45 PM, December 15, 2015:
I
2
C-bus START condition
Slave address D0h, i.e. write bit set to 0
Register address 00h: address pointer to register Control_1
Register Control_1, 08h: set 12-hour mode and selects option for 7 pF quartz crystal
Register Control_2, 00h: no timers or watch dog initiated
Register Control_1, 88h: activate interrupt to monitor battery switch-over
Setting the actual time and date
Register Seconds, 00h: 0 Seconds (clock integrity ok, MSB OS = 0)
Register Minutes, 45h: 45 min
Register Hours, 23h: PM, 3 hours
Register Days, 15h: 15
th
day of the month
Register Weekdays, 02h: Tuesday (second day of the week)
Register Months, 12h: December
Register Years, 15h: (20)15
I
2
C-bus STOP condition
UM10760 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2015. All rights reserved.
User manual Rev. 1 — 2 February 2015 8 of 13
NXP Semiconductors
UM10760
RTC PCF8523 evaluation board OM13511
6.2.2 Reading the clock
Example reading the clock (some 2 minutes after writing)
I
2
C-bus START condition
Slave address D0h, i.e. write bit set to 0
Register address 03h: address pointer to forth byte (register Seconds)
I
2
C-bus repeated START condition
Slave address D1h read mode, i.e. write bit set to 1
Reading the time/date registers:
Register Seconds: e.g. 56 Seconds (clock integrity ok, i.e. OS = 0)
Register Minutes: e.g. 46 Minutes
Register Hours: e.g. 03 (PM, 03h)
Register Days: e.g.15 (15th)
Register Weekdays: e.g. 02 (Tuesday)
Register Months: e.g. 12 (December)
Register Years: e.g. 14 ((20)14)
I
2
C-bus STOP condition
6.3 Frequency tuning
The 32 kHz quartz crystals are typically sold with a tolerance of either ±10 ppm or
±20 ppm at room temperature.
Remark: 11.5 ppm corresponds to a deviation of 1 s/day.
The quartz crystals feature a characteristic load capacity of either 7 pF or 12.5 pF.
Oscillators, utilizing 7 pF quartz crystals, feature slightly lower power consumption, where
the quartz crystals of 12.5 pF have largest production quantities. The tracks between
quartz and RTC represent some parasitic capacitances as well and must be kept short.
The PCF8523 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] = 106 × (f - 32768) / 32768
Consult the offset table in the data sheet. Take the correction value and write it into
the register 0Eh.
The correction is done with inhibition or addition: the oscillator runs at constant
speed, then every 2 hours (mode 0) 1 second is corrected by making it shorter or
longer. This is not visible at the CLKOUT.
Corrections can also be applied every minute by using mode 1. This mode consumes
slightly more power (< 1 % more).
The 32 kHz quartz crystal is of the type tuning fork and features a parabolic frequency
UM10760 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2015. All rights reserved.
User manual Rev. 1 — 2 February 2015 9 of 13

OM13511UL

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
PCF8523 DEMOBOARD
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet