NXP Semiconductors
UM10301
User Manual for PCF85x3, PCF85x63, PCA8565, PCF2123, and
PCA21125
UM10301
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2015. All rights reserved.
User manual
Rev. 2.1 — 23 July 2015
26 of 54
12. Initialization and setting of alarm and timer
Setting the clock is a straightforward procedure, setting first the mode and then the actual
time. This example is for the PCF8563 and for reference its block diagram is given in
Fig 10 which shows the registers and their addresses. The procedure for the other RTCs
is similar but there are small differences in register structure and therefore the
appropriate datasheet should be consulted first.
Fig 10. Block Diagram PCF8563
Examples for initialisation and setting of time, alarm and timer are given below.
12.1 Initialization of the RTC and setting the time
Table 5 on the next page shows the sequence of commands to be sent to the RTC for
initialization and setting the time.
In this example the time to be set is Friday, July 16 2008, 2:45 pm.