The PCF8563 is a CMOS1 Real-Time Clock (RTC) and calendar optimized for low power
consumption. A programmable clock output, interrupt output, and volt age-low detector are
also provided. All addresses and data are transferred serially via a two-line bidirectional
2
I
C-bus. Maximum bus speed is 400 kbit/s. The register address is incremented
automatically after each written or read data byte.
2. Features and benefits
Provides year, month, day, weekday, hours, minutes, and seconds based on a
32.768 kHz quartz crystal
Century flag
Clock operating voltage: 1.0 V to 5.5 V at room temperature
Low backup current; typical 0.25 Aat V
400 kHz two-wire I
Programmable clock output for peripheral devices (32.768 kHz, 1.024 kHz, 32 Hz, and
Product data sheetRev. 11 — 26 October 2015 4 of 45
Top view. For mechanical details, see Figure 31.
Fig 4.Pin configuration for TSSOP8 (PCF8563TS)
NXP Semiconductors
7.2 Pin description
Table 3.Pin description
SymbolPinDescription
OSCI11oscillator input
OSCO22oscillator output
INT
V
SS
SDA56serial data input and output
SCL67serial clock input
CLKOUT78clock output, open-drain
V
DD
n.c.-3, 10not connected; do not connect and do not
[1] The die paddle (exposed pad) is connected to VSS through high ohmic (non-conductive) silicon attach and
PCF8563
Real-time clock/calendar
SO8, TSSOP8HVSON10
34interrupt output (open-drain; active LOW)
45
89supply voltage
should be electrically isolated. It is good engineering practice to solder the exposed pad to an electrically
isolated PCB copper pad for better heat transfer but it is not required as the RTC doesn’t consume much
power. In no case should traces be run under the package exposed pad.
Product data sheetRev. 11 — 26 October 2015 5 of 45
NXP Semiconductors
8. Functional description
The PCF8563 contains sixteen 8-bit registers with an auto-incr ementing register add ress,
an on-chip 32.768 kHz oscillator with one integrated capacitor, a frequency divider which
provides the source clock for the Real-Time Clock (RTC) and calender, a programmable
clock output, a timer, an alarm, a voltage-low detector, and a 400 kHz I
All 16 registers are designed as addressable 8-bit parallel registers although not all bits
are implemented. The first two registers (memory address 00h and 01h) are used as
control and/or status registers. The memory addresses 02h through 08h are used as
counters for the clock function (seconds up to years counters). Address locations 09h
through 0 Ch contain alar m re gis te rs wh ich de fin e the cond itio ns for an alar m .
Address 0 Dh contro ls the CLKO UT ou tp ut fr eque n cy. 0Eh and 0Fh are the Timer_control
and Timer registers, respectively.
The Seconds, Minutes, Hours, Days, Months, Years as well as the Minute_alarm,
Hour_alarm, and Day_alarm registers are all coded in Binary Coded Decimal (BCD)
format.
When one of the RTC registers is written or read, the contents of all time counters are
frozen. Therefore, faulty writing or reading of the clock and calendar during a carry
condition is prevented.
PCF8563
Real-time clock/calendar
2
C-bus interface.
8.1 CLKOUT output
A programmable square wave is available at the CLKOUT pin. Operation is controlled by
the register CLKOUT_control at address 0Dh. Frequencies of 32.768 kHz (default),
1.024 kHz, 32 Hz, and 1 Hz can be generated for use as a system clock, microcontroller
clock, input to a charge pump, or for calibration of the oscillator. CLKOUT is an open-drain
output and enabled at power-on. If disabled it becomes high-impedance.
8.2 Register organization
Table 4.Formatted registers overview
Bit positions labelled as x are not relevant. Bit positions labelled with N should always be written with logic 0; if read they
could be either logic 0 or logic 1 . After reset, all registers are set according to Table 27
02hVL_secondsVLSECONDS (0 to 59)
03hMinutesxMINUTES (0 to 59)
04hHoursxxHOURS (0 to 23)
05hDaysxxDAYS (1 to 31)
06hWeekdaysxxxxxWEEKDAYS (0 to 6)
07hCentury_monthsCxxM ONTHS (1 to 12)
08hYearsYEARS (0 to 99)
Product data sheetRev. 11 — 26 October 2015 6 of 45
NXP Semiconductors
PCF8563
Real-time clock/calendar
Table 4.Formatted registers overview
…continued
Bit positions labelled as x are not relevant. Bit positions labelled with N should always be written with logic 0; if read they
could be either logic 0 or logic 1 . After reset, all registers are set according to Table 27.
Address Register nameBit
76543210
Alarm registers
09hMinute_alarmAE_MMINUTE_ALARM (0 to 59)
0AhHour_alarmAE_HxHOUR_ALARM (0 to 23)
0BhDay_alarmAE_DxDAY_ALARM (1 to 31)
0ChWeekday_alarmAE_WxxxxWEEKDAY_ALARM (0 to 6)
CLKOUT control register
0DhCLKOUT_controlFExxxxxFD[1:0]
Timer registers
0EhTimer_controlTExxxxxTD[1:0]
0FhTimerTIMER[7:0]
8.3 Control registers
8.3.1 Register Control_status_1
Table 5.Control_status_1 - control and status register 1 (address 00h) bit description
BitSymbolValueDescriptionReference
7TEST10
6N 0
5STOP0
4N 0
3TESTC0Power-On Reset (POR) override facility is disabled; set to logic 0 for
2to0N000
[1]
normal mode
must be set to logic 0 during normal operations
1EXT_CLK test mode
[2]
[1]
unused
RTC source clock runsSection 8.10
1all RTC divider chain flip-flops are asynchronously set to logic 0; the RTC
clock is stopped (CLKOUT at 32.768 kHz is still available)
[2]
unused
normal operation
[1]
1
Power-On Reset (POR) override may be enabled
[2]
unused
Section 8.9
Section 8.11.1
[1] Default value.
[2] Bits labeled as N should always be written with logic 0.
8.3.2 Register Control_status_2
Table 6.Control_status_2 - control and status register 2 (address 01h) bit description
Product data sheetRev. 11 — 26 October 2015 7 of 45
[1]
[2]
unused
INT is active when TF is active (subject to the status of TIE)Section 8.3.2.1
1INT pulses active according to Table 7 (subject to the status of TIE);
Remark: note that if AF and AIE are active then INT
will be
permanently active
and
Section 8.8
NXP Semiconductors
013aaa087
TE
COUNTDOWN COUNTER
AF: ALARM
FLAG
CLEAR
SET
to interface:
read AF
0
1
TF: TIMER
CLEAR
SET
PULSE
GENERATOR 2
CLEAR
TRIGGER
TIE
INT
from interface:
clear TF
from interface:
clear AF
set alarm
flag AF
to interface:
read TF
TI_TP
AIE
e.g. AIE
0
1
PCF8563
Real-time clock/calendar
Table 6.Control_status_2 - control and status register 2 (address 01h) bit description …continued
BitSymbolValueDescriptionReference
3AF 0
2TF 0
1AIE 0
0TIE 0
[2]
read: alarm flag inactiveSection 8.3.2.1
write: alarm flag is cleared
1read: alarm flag active
write: alarm flag remains unchanged
[2]
read: timer flag inactive
write: timer flag is cleared
1read: timer flag active
write: timer flag remains unchanged
[2]
alarm interrupt disabled
1alarm interrupt enabled
[2]
timer interrupt disabled
1timer interrupt enabled
[1] Bits labeled as N should always be written with logic 0.
[2] Default value.
8.3.2.1 Interrupt output
Bits TF and AF: When an alarm occurs, AF is set to logic 1. Similarly, at the end of a
timer countdown, TF is set to logic 1. These bits maintain their value until overwritten
using the interface. If both timer and alarm interrupts are required in the application, the
source of the interrupt can be determined by reading these bit s. To prevent one flag being
overwritten while clearing another, a logic AND is performed during a write access.
Product data sheetRev. 11 — 26 October 2015 8 of 45
When bits TIE and AIE are disabled, pin INT will remain high-impedance.
Bits TIE and AIE: These bits activate or deactivate the generation of an interrupt when
TF or AF is asserted, respectively. The interrupt is the logical OR of these two conditions
when both AIE and TIE are set.
NXP Semiconductors
Countdown timer interrupts: The pulse generator for the countdown timer interrupt uses
an internal clock and 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 7
Table 7.INT operation (bit TI_TP = 1)
Source clock (Hz)INT period (s)
4096
64
1
1
⁄
60
[1] TF and INT become active simultaneously.
[2] n = loaded countdown value. Timer stops when n = 0.
8.4 Time and date registers
The majority of the registers are coded in the BCD form at to simp lify ap plic at ion use .
PCF8563
Real-time clock/calendar
).
[1]
n=1
1
⁄
8192
1
⁄
128
1
⁄
64
1
⁄
64
[2]
n>1
1
⁄
4096
1
⁄
64
1
⁄
64
1
⁄
64
[2]
8.4.1 Register VL_seconds
Table 8.VL_seconds - seconds and clock integrity status register (address 02h) bi t
description
BitSymbolValuePlace value Description
7VL0-clock integrity is guaranteed
[1]
1
6 to 4 SECONDS 0 to 5ten’s placeactual seconds coded in BCD format, see Table 9
3 to 00 to 9unit place
Product data sheetRev. 11 — 26 October 2015 9 of 45
NXP Semiconductors
VL set
normal power
operation
period of battery
operation
t
V
DD
V
low
mgr887
8.4.1.1 Voltage-low detector and clock monitor
PCF8563
Real-time clock/calendar
The PCF8563 has an on-chip voltage-low detector (see Figure 6
V
, bit VL in the VL_seconds register is set to indicate that the integrity of the clock
low
information is no longer guaranteed. The VL flag can only be cleared by using the
interface.
Fig 6.Voltage-low detection
The VL flag is intended to detect the situation when VDD is decreasing slowly, for example
under battery operation. Should the oscillator stop or V
re-asserted, then the VL flag is set. This will indicate that the time may be corrupted.
8.4.2 Register Minutes
Table 10.Minutes - minutes register (address 03h) bit description
BitSymbolValuePlace value Description
7---unused
6 to 4 MINUTES0 to 5ten’s placeactual minutes coded in BCD format
3 to 00 to 9unit place
reach V
DD
). When VDD drops below
before power is
low
8.4.3 Register Hours
Table 11.Hours - hours register (address 04h) bit descrip tion
BitSymbolValuePlace value Description
7 to 6 ---unused
5 to 4 HOURS0 to 2ten’s placeactual hours coded in BCD format
3to00to9unit place
8.4.4 Register Days
Table 12.Days - days register (address 05h) bit description
Product data sheetRev. 11 — 26 October 2015 12 of 45
NXP Semiconductors
t < 1 s
013aaa215
SLAVE ADDRESSDATASTOPDATA
START
After this read/write access is completed, the time circuit is released again and any
pending request to increment the time counters that occurred during the read access is
serviced. A maximum of 1 request can be stored; therefore, all accesses must be
completed within 1 second (see Figure 8
Fig 8.Access time for read/write operations
As a consequence of this method, it is very important to make a read or write access in
one go, that is, setting or reading seconds through to years should be made in on e single
access. Failing to comply with this method could result in the time becoming corrupted.
As an example, if the time (seconds through to hours) is set in one access and then in a
second access the date is set, it is possible that the time may increment between the two
accesses. A similar problem exists when reading. A roll over may occu r be twe e n read s
thus giving the minutes from one moment and the hours from the next.
PCF8563
Real-time clock/calendar
).
Recommended method for reading the time:
1. Send a START condition and the slave address for write (A2h).
2. Set the address pointer to 2 (VL_seconds) by sending 02h.
3. Send a RESTART condition or STOP followed by START.
4. Send the slave address for read (A3h).
5. Read VL_seconds.
6. Read Minutes.
7. Read Hours.
8. Read Days.
9. Read Weekdays.
10. Read Century_months.
11. Read Years.
12. Send a STOP condition.
8.6 Alarm registers
8.6.1 Register Minute_alarm
Table 18.Minute_alarm - minute alarm register (address 09h ) bi t description
BitSymbolValuePlace value Description
7AE_M0-minute alarm is enabled
6 to 4 MINUTE_ALARM0 to 5ten’s placeminute alarm information coded in BCD
3 to 00 to 9unit place
6---unused
5 to 4 HOUR_ALARM0 to 2ten’s placehour alarm information coded in BCD
3 to 00 to 9unit place
[1] Default value.
8.6.3 Register Day_alarm
Table 20.Day_alarm - day alarm register (address 0Bh) bit description
BitSymbolValuePlace value Description
7AE_D0-day alarm is enabled
6---unused
5 to 4 DAY_ALARM0 to 3ten’s placeday alarm information coded in BCD
3 to 00 to 9unit place
PCF8563
Real-time clock/calendar
[1]
1
[1]
1
-hour alarm is disabled
format
-day alarm is disabled
format
[1] Default value.
8.6.4 Register Weekday_alarm
Table 21.Weekday_alarm - weekday alarm register (address 0Ch) bit description
BitSymbolValueDescription
7AE_W0weekday alarm is enabled
1
6 to 3 --unused
2 to 0 WEEKDAY_ALARM 0 to 6weekday alarm information
[1] Default value.
8.6.5Alarm flag
By clearing the alarm enable bit (AE_x) of one or more of the alarm registers, the
corresponding alarm condition(s) are active. When an alarm occurs, AF is set to logic 1.
The asserted AF can be used to generate an interrupt (INT
interface.
The registers at addresses 09h through 0Ch contain alarm information. When one or
more of these registers is loaded with minute, hour, day or weekday, and its
corresponding AE_x is logic 0, then that information is compared with the current minute,
hour, day, and weekday. When all enabled comparisons first match, the alarm flag (AF in
register Control_2) is set to logic 1.
Product data sheetRev. 11 — 26 October 2015 14 of 45
NXP Semiconductors
The generation of interrupts from the alarm function is controlled via bit AIE. If bit AIE is
enabled, the INT
interface. Once AF has been cleared, it will only be set again when the time increments to
match the alarm condition once more. Alarm re gisters wh ich have th eir AE_x bit at logic 1
are ignored.
PCF8563
Real-time clock/calendar
pin follows the condition of bit AF. AF will remain set until cleared by the
check now signal
MINUTE ALARM
=
MINUTE TIME
HOUR ALARM
=
HOUR TIME
DA Y ALARM
=
DA Y TIME
WEEKDA Y ALARM
=
WEEKDA Y TIME
(1) Only when all enabled alarm settings are matching.
It’s only on increment to a matched case that the alarm flag is set, see Section 8.6.5
Fig 9.Alarm function block diagram
AEN_M
AEN_H
AEN_D
AEN_W
example
AEN_M = 1
set alarm flag AF
013aaa088
1
0
(1)
.
8.7 Register CLKOUT_control and clock output
Frequencies of 32.768 kHz (default), 1.024 kHz, 32 Hz, and 1 Hz can be generated for
use as a system clock, microcontroller clock, input to a charge pump, or for calibration of
the oscillator.
Table 22.CLKOUT_control - CLKOUT control register (address 0Dh) bit description
BitSymbolValueDescription
7FE0the CLKOUT output is inhibited and CLKOUT output is
set high-impedance
[1]
1
6 to 2 --unused
1 to 0 FD[1:0]frequency output at pin CLKOUT
The 8-bit countdown timer at address 0Fh is controlled by the Timer_control register at
address 0Eh. The Timer_control register determines one of 4 source clock frequencies for
the timer (4096 Hz, 64 Hz, 1 Hz, or
counts down from a software-loaded 8-bit binary value. At the end of every countdown,
the timer sets the timer flag TF. The TF may only be cleared by using the interface. The
asserted TF can be used to generate an interrupt on pin INT
generated as a pulsed signal every countdown period or as a permanently active signal
which follows the state of TF. Bit TI_TP is used to control this mode selection. When
reading the timer, the current countdown value is returned.
8.8.1 Register Timer_control
Table 23.Timer_control - timer control register (address 0Eh) bit description
BitSymbolValueDescription
7TE0
6 to 2 --unused
1 to 0 TD[1:0]timer source clock frequency select
1
⁄60Hz), and enables or disables the timer. The timer
[1]
timer is disabled
1timer is enabled
004.096 kHz
0164 Hz
101 Hz
[2]1
11
⁄60Hz
PCF8563
Real-time clock/calendar
. The interrupt may be
[2]
[1] Default value.
[2] These bits determine the source clock for the countdown timer; when not in use, TD[1:0] should be set to
1
⁄60Hz for power saving.
8.8.2 Register Timer
Table 24.Timer - timer value register (address 0Fh) bit description
BitSymbolValueDescription
7 to 0TIMER[7:0]00h to FFhcountdown period in seconds:
Table 25.Timer register bits value range
Bit
76543210
1286432168421
The register Timer is an 8-bit binary countdown timer. It is enabled and disabled via the
Timer_control register bit TE. The source clock for the timer is also selected by the
Timer_control register. Other timer properties such as interrupt generation are controlled
via the register Control_status_2.
Product data sheetRev. 11 — 26 October 2015 16 of 45
For accurate read back of the count down value, it is recommended to read the register
twice and check for consistent results, since it is not possible to freeze the countdown
timer counter during read back.
NXP Semiconductors
8.9 EXT_CLK test mode
A test mode is available which allows for on-board testing. In such a mode it is possible to
set up test conditions and control the operation of the RTC.
The test mode is entered by setting bit TEST1 in register Control_status_1. Then
pin CLKOUT becomes an input. The test mode replaces the internal 64 Hz signal with the
signal applied to pin CLKOUT. Every 64 positive edges applied to pin CLKOUT will then
generate an increment of one second.
The signal applied to pin CLKOUT should have a minimum pulse width of 300 ns and a
maximum period of 1000 ns. The internal 64 Hz clock, now sourced from CLKOUT, is
divided down to 1 Hz by a 2
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 CLKOUT. Thereafter, every 64 positive edges will cause a one-second
increment.
Remark: Entry into EXT_CLK 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.
PCF8563
Real-time clock/calendar
6
divide chain called a prescaler . The prescaler ca n be set into
8.9.1 Operation example:
1. Set EXT_CLK test mode (Control_status_1, bit TEST1 = 1).
Product data sheetRev. 11 — 26 October 2015 17 of 45
NXP Semiconductors
013aaa089
OSCILLATOR
32768 Hz
16384 Hz
OSCILLATOR STOP
DETECTOR
F
0
F
1
F
13
RESET
F
14
RESET
F
2
RESET
2 Hz
1024 Hz
32 Hz
1 Hz tick
STOP
CLKOUT source
reset
8192 Hz
4096 Hz
32768 Hz
1 Hz
001aaf912
8192 Hz
stop released
0 μs to 122 μs
8.10 STOP bit function
The function of the STOP bit is to allow for accurate starting of the time circuits. The ST OP
bit function will cause the upper part of the prescaler (F
thus no 1 Hz ticks will be generated (see Figure 10
will not increment until the STOP bit is released (see Figure 11
PCF8563
Real-time clock/calendar
to F14) to be held in reset and
2
). The time circuits can then be set and
and Table 26).
Fig 10. STOP bit functional diagram
The STOP bit function will not affect the output of 32.768 kHz on CLKOUT, but will stop
the generation of 1.024 kHz, 32 Hz, and 1 Hz.
The lower two stages of the prescaler (F
is asynchronous to the crystal oscillator, the accuracy of re-starting the time circuit s will be
between zero and one 8.192 kHz cycle (see Figure 11
08:00:00prescaler is now running
08:00:0008:00:0008:00:00::
08:00:0008:00:010 to 1 transition of F14 increments the time circuits
08:00:01::
08:00:0108:00:0108:00:01::
08:00:0108:00:020 to 1 transition of F14 increments the time circuits
Product data sheetRev. 11 — 26 October 2015 19 of 45
[1] F0 is clocked at 32.768 kHz.
The first increment of the time circuits is between 0.507813 s and 0.507935 s after STOP
bit is released. The uncertainty is caused by the prescaler bits F
(see Table 26
8.11 Reset
The PCF8563 includes an internal reset circuit which is active whenever the oscillator is
stopped. In the reset state the I
all registers are set according to Table 27
reset.
) and the unknown state of the 32 kHz clock.
2
C-bus logic is initialized including the address pointer and
[1] Registers marked x are undefined at power-up and unchanged by subsequent resets.
8.11.1 Power-On Reset (POR) override
The POR duration is directly related to the crystal oscillator start-up time. Due to the long
start-up times experienced by these types of circuits, a mechanism has been built in to
disable the POR and hence speed up on-board test of the device. The setting of this
mode requires that the I
shown in Figure 12
Once the override mode has been entered, the device immediately stops, being reset,
and normal operation may commence i.e. entry into the EXT_CLK test mode via I
access. The override mode may be cleared by writing logic 0 to TESTC. TESTC must be
set to logic 1 before re-entry into the override mode is possible. Setting TESTC to logic 0
during normal operation has no effect except to prevent entry into the POR override
mode.
2
C-bus pins, SDA and SCL, are toggled in a specific order as
Product data sheetRev. 11 — 26 October 2015 20 of 45
NXP Semiconductors
mbc621
data line
stable;
data valid
change
of data
allowed
SDA
SCL
mbc622
SDA
SCL
P
STOP condition
SDA
SCL
S
START condition
9. Characteristics of the I2C-bus
The I2C-bus is for bidirectional, two-line communication between different ICs or modules.
The two lines are a Serial DAta line (SDA) and a Serial CLock line (SCL). Both lines must
be connected to a positive supply via a pull-up resistor. Data transfer may be initiated only
when the bus is not busy.
9.1 Bit transfer
One data bit is transferred during each clock pulse. The d ata on the SDA line must re main
stable during the HIGH period of the clock pulse as changes in the data line at this time
will be interpreted as a control signal (see Figure 13
PCF8563
Real-time clock/calendar
).
Fig 13. Bit transfer
9.2 START and STOP conditions
Both data and clock lines remain HIGH when the bus is not busy.
A HIGH-to-LOW transition of the data line while the clock is HIGH is defined as the START
condition - S.
A LOW-to-HIGH transition of the data line while the clock is HIGH is defined as the STOP
condition - P (see Figure 14
Fig 14. Definition of START and STOP conditions
).
9.3 System configuration
A device generating a message is a transmitter; a device receiving a message is a
receiver. The device that controls the message is the master; and the devices which are
controlled by the master are the slaves (see Figure 15
Product data sheetRev. 11 — 26 October 2015 21 of 45
).
NXP Semiconductors
mba605
MASTER
TRANSMITTER
RECEIVER
SLAVE
RECEIVER
SLAVE
TRANSMITTER
RECEIVER
MASTER
TRANSMITTER
MASTER
TRANSMITTER
RECEIVER
SDA
SCL
mbc602
S
START
condition
9821
clock pulse for
acknowledgement
not acknowledge
acknowledge
data output
by transmitter
data output
by receiver
SCL from
master
Fig 15. System configuration
9.4 Acknowledge
The number of data bytes transferred between th e START and STOP conditions from
transmitter to receiver is unlimited. Each byte of eight bits is followed by an acknowledge
cycle.
• A slave receiver, which is addressed, must generate an acknowledge after the
• Also a master receiver must generate an acknowledge after the reception of each
• The device that acknowledges must pull-down the SDA line during the acknowledge
• A master receiver must signal an end of data to the transmitter by not generating an
PCF8563
Real-time clock/calendar
reception of each byte.
byte that has been clocked out of the slave transmitter.
clock pulse, so that the SDA line is stable LOW during the HIGH period of the
acknowledge related clock pulse (set-up and hold times must be taken into
consideration).
acknowledge on the last byte that has been clocked out of the slave. In this event, the
transmitter must leave the data line HIGH to enable the master to generate a STOP
condition.
Product data sheetRev. 11 — 26 October 2015 22 of 45
NXP Semiconductors
mce189
1010001 R/W
group 1
group 2
S
0ASLAVE ADDRESSREGISTER ADDRESS AADATA
P
acknowledgement
from slave
acknowledgement
from slave
acknowledgement
from slave
R/W
auto increment
memory register address
013aaa346
n bytes
9.5 I2C-bus protocol
9.5.1 Addressing
Before any data is transmitted on the I2C-bus, the device which should respond is
addressed first. The addressing is always carried out with the first byte transmitted after
the start procedure.
The PCF8563 acts as a slave receiver or slave transmitter. Therefore the clock signal SCL
is only an input signal, but the data signal SDA is a bidirectional line.
Two slave addresses are reserved for the PCF8563:
Read: A3h (10100011)
Write: A2h (10100010)
PCF8563
Real-time clock/calendar
The PCF8563 slave address is illustrated in Figure 17
Fig 17. Slave address
9.5.2 Clock and calendar READ or WRITE cycles
The I2C-bus configuration for the different PCF 8563 READ and WRITE cycles is shown in
Figure 18
which register is to be accessed next. The upper four bits of the register address are not
used.
, Figure 19 and Figure 20. The register address is a 4-bit value that defines
Product data sheetRev. 11 — 26 October 2015 24 of 45
NXP Semiconductors
013aaa421
SLAVE ADDRESS
running
time
counters
WD timer
data
WD timer tracking
time counters frozenrunning
DATA
1 s < t < 2 s
DATA
START
data transfer fail
WD trips
9.6 Interface watchdog timer
PCF8563
Real-time clock/calendar
t < 1 s
data
WD timer
time
counters
START
SLAVE ADDRESS
running
DATA
DATA
WD timer tracking
time counters frozenrunning
STOP
013aaa420
a. Correct data transfer: read or write
b. Incorrect data transfer; read or write
Fig 21. Interface watchdog timer
During read/write operations, the time cou n tin g circ uits are froze n . To prevent a situation
where the accessing device becomes locked and do es not cle ar the int er fa ce , the
PCF8563 has a built in watchdog timer. Should the interface be active for more than 1 s
from the time a valid slave address is transmitted, then the PCF8563 will automatically
clear the interface and allow the time counting circuit s to continue counting . The watchdog
will trigger between 1 s and 2 s after receiving a valid slave address. Each time the
watchdog period is exceeded, 1 s will be lost from the time counters.
The watchdog is implemented to prevent the excessive loss of time due to interface
access failure e.g. if main power is removed from a battery backed-up system during an
interface access.
output voltageon pins CLKOUT and INT0.5+6.5V
input currentat any input10+10mA
output currentat any output10+10mA
total power dissipation-300mW
electrostatic discharge voltageHBM
TSSOP8 (PCF8563TS/5)
latch-up current
storage temperature
-3500V
[1]
[1]
[1]
-
[1]
-
2000V
-
-
[2]
-
[2]
-
[2]
[2]
[2]
[3]
-200mA
[4]
65+150C
2000V
1000V
1500V
1500V
1750V
ambient temperatureoperating device40+85C
[1] Pass level; Human Body Model (HBM), according to Ref. 5 “JESD22-A114”.
[2] Pass level; Charged-Device Model (CDM), according to Ref. 6 “
[3] Pass level; latch-up testing according to Ref. 7 “
[4] According to the NXP store and transport requirements (see Ref. 9 “
to +45 C and a humidity of 25 % to 75 %. For long term storage products deviant conditions are described in that document.
Product data sheetRev. 11 — 26 October 2015 30 of 45
capacitance on pin O SCO152535pF
relative oscillator frequency variationVDD=200mV;
series resistance--100k
load capacitanceparallel
trimmer capacitanceexternal;
duty cycle on pin CLKOUT
SCL clock frequency
hold time (repeated) START condition0.6--s
set-up time for a repeated START condition0.6--s
LOW period of the SCL clock1.3--s
HIGH period of the SCL clock0.6--s
rise time of both SDA and SCL signals
=25C; normalized to VDD=3V.
amb
Fig 26. Frequency deviation as a function of supply
fall time of both SDA and SCL signals--0.3s
bus free time between a STOP and START
condition
C
b
t
SU;DAT
t
HD;DAT
t
SU;STO
t
w(spike)
capacitive load for each bus line--400pF
data set-up time100--ns
data hold time0--ns
set-up time for STOP condition0.6--s
spike pulse widthon bus--50ns
Product data sheetRev. 11 — 26 October 2015 31 of 45
NXP Semiconductors
mgm665
SCL
SDA
V
SS
OSCI
OSCO
CLOCK CALENDAR
PCF8563
SDA
SCL
MASTER
TRANSMITTER/
RECEIVER
V
DD
V
DD
SDA SCL
RR
V
DD
(I2C-bus)
R: pull-up resistor
R =
1 F
t
r
C
b
100 nF
14. Application information
PCF8563
Real-time clock/calendar
Fig 28. Application diagram
14.1 Quartz frequency adjustment
14.1.1 Method 1: fixed OSCI capacitor
By evaluating the average capacitance necessary for the application layout, a fixed
capacitor can be used. The frequency is best measured via the 32.768 kHz signal
available after power-on at pin CLKOUT. The frequency tolerance depends on the quartz
crystal tolerance, the capacitor tolerance and the device-to-device tolerance (on average
5 ppm). Average deviations of 5 minutes per year can be easily achieved.
14.1.2 Method 2: OSCI trimmer
Using the 32.768 kHz signal available after power-on at pin CLKOUT, fast setting of a
trimmer is possible.
14.1.3 Method 3: OSCO output
Direct measurement of OSCO out (accounting for test probe capacitance).
Product data sheetRev. 11 — 26 October 2015 35 of 45
NXP Semiconductors
16. Handling information
All input and output pins are protected against ElectroStatic Discharge (ESD) under
normal handling. When handling Metal-Oxide Semiconductor (MOS) devices ensure that
all normal precautions are taken as described in JESD625-A, IEC61340-5 or equivalent
standards.
17. Soldering of SMD packages
This text provides a very brief insight into a complex technology . A more in-depth account
of soldering ICs can be found in Application Note AN10365 “Surface mount reflow soldering description”.
17.1 Introduction to soldering
Soldering is one of the most common methods through which packages are attached to
Printed Circuit Boards (PCBs), to form electrical circuits. The soldered joint provides both
the mechanical and the electrical connection. There is no single soldering method that is
ideal for all IC packages. Wave soldering is often preferred when through-hole and
Surface Mount Devices (SMDs) are mixed on one printed wiring board; however, it is not
suitable for fine pitch SMDs. Reflow soldering is ideal for the small pitches and high
densities that come with increased miniaturization.
PCF8563
Real-time clock/calendar
17.2 Wave and reflow soldering
Wave soldering is a joining technology in which the joints are made by so lder coming from
a standing wave of liquid solder. The wave soldering process is suitable for the following:
• Through-hole components
• Leaded or leadless SMDs, which are glued to the surface of the printed circuit board
Not all SMDs can be wave soldered. Packages with solder balls, and some leadless
packages which have solder lands underneath the body, cannot be wave soldered. Also,
leaded SMDs with leads having a pitch smaller than ~0.6 mm cannot be wave soldered,
due to an increased probability of bridging.
The reflow soldering process involves applying solder paste to a board, followed by
component placement and exposure to a temperature profile. Leade d packages,
packages with solder balls, and leadless packages are all reflow solderable.
Key characteristics in both wave and reflow soldering are:
• Board specifications, including the board finish, solder masks and vias
• Package footprints, including solder thieves and orientation
Product data sheetRev. 11 — 26 October 2015 36 of 45
NXP Semiconductors
17.3 Wave soldering
Key characteristics in wave soldering are:
• Process issues, such as application of adhesive and flux, clinching of leads, board
• Solder bath specifications, including temperature and impurities
17.4 Reflow soldering
Key characteristics in reflow soldering are:
• L ead-free versus SnPb sold ering; note that a lea d-free reflow process usually leads to
• Solder paste printing issues including smearing, release, and adjusting the process
• Reflow temperature profile; this profile includes preheat, reflow (in which the board is
Table 31.SnPb eutectic process (from J-STD-020D)
Package thickness (mm)Package reflow temperature (C)
< 2.5235220
2.5220220
PCF8563
Real-time clock/calendar
transport, the solder wave parameters, and the time during which components are
exposed to the wave
higher minimum peak temperatures (see Figure 32
reducing the process window
window for a mix of large and small components on one board
heated to the peak temperature) and cooling down. It is imperative that the peak
temperature is high enough for the solder to make reliable solder joint s (a solder paste
characteristic). In addition, the peak temperature must be low enough that the
packages and/or boards are not damaged. The peak temperature of the package
depends on package thickness and volume and is classified in accordance with
Table 31
and 32
Volume (mm3)
< 350 350
) than a SnPb process, thus
Table 32.Lead-free process (from J-STD-020D)
Package thickness (mm)Package reflow temperature (C)
Volume (mm3)
< 350350 to 2000> 2000
< 1.6260260260
1.6 to 2.5260250245
> 2.5250245245
Moisture sensitivity precautions, as indicated on the packing, must be respected at all
times.
Studies have shown that small packages reach higher temperatures during reflow
soldering, see Figure 32
Product data sheetRev. 11 — 26 October 2015 37 of 45
.
NXP Semiconductors
001aac844
temperature
time
minimum peak temperature
= minimum soldering temperature
maximum peak temperature
= MSL limit, damage level
peak
temperature
Fig 32. Temperature profiles for large and small components
PCF8563
Real-time clock/calendar
MSL: Moisture Sensitivity Level
For further information on temperature profiles, refer to Application Note AN10365 “Surface mount reflow soldering description”.
18. Abbreviations
Table 33.Abbreviations
AcronymDescription
BCDBinary Coded Decimal
CDMCharged-Device Model
CMOSComplementary Metal Oxide Semiconductor
ESDElectroStatic Discharge
HBMHuman Body Model
2
CInter-Integrated Circuit
I
ICIntegrated Circuit
LSBLeast Significant Bit
MSBMost Significant Bit
MSLMoisture Sensitivity Level
PCBPrinted-Circuit Board
PORPower-On Reset
RTCReal-Time Clock
SCLSerial CLock line
SDASerial DAta line
SMDSurface Mount Device
PCF8563 v.1120151026Prod uct data sheet-PCF8563 v.10
Modifications:
PCF8563 v.1020120403Product data sheet-PCF8563 v.9
Modifications:
PCF8563 v.920110616Product data sheet-PCF8563 v.8
PCF8563 v.820101118Product data sheet-PCF8563 v.7
PCF8563 v.720100723Product data sheet-PCF8563_6
PCF8563_620080221Prod uct data sheet-PCF8563_5
PCF8563_520070717Prod uct data sheet-PCF8563-04
PCF8563-04
(9397 750 12999)
PCF8563-03
(9397 750 11158)
PCF8563-02
(9397 750 04855)
PCF8563_N_1
(9397 750 03282)
• Removed DIP8 package
• Table 3: Corrected Table note 1
• Table 28, Table note 4: Corrected “the devices have to be stored” to “the devices should be
Product data sheetRev. 11 — 26 October 2015 40 of 45
NXP Semiconductors
PCF8563
Real-time clock/calendar
21. Legal information
21.1 Data sheet status
Document status
Objective [short] data sheetDevelopmentThis document contains data from the objective specification for product development.
Preliminary [short] data sheet QualificationThis document contains data from the preliminary specification.
Product [short] data sheetProductionThis document contains the product specification.
[1] Please consult the most recently issued document before initiating or completing a design.
[2] The term ‘short data sheet’ is explained in section “Definitions”.
[3] The product status of device(s) d escribed i n this docume nt may have changed since this docume nt was publis hed and ma y dif fer in case of multiple devices. The latest product status
information is available on the Internet at URL http://www.nxp.com.
[1][2]
Product status
[3]
Definition
21.2 Definitions
Draft — The document is a draft version only. The content is still under
internal review and subject to formal approval, which may result in
modifications or additions. NXP Semiconductors does not give any
representations or warranties as to the accuracy or completeness of
information included herein and shall have no liability for the consequences of
use of such information.
Short data sheet — A short data sheet is an extract from a full data sheet
with the same product type number(s) and title. A short data sheet is intended
for quick reference only and should not be relied u pon to cont ain det ailed and
full information. For detailed and full information see the relevant full data
sheet, which is available on request via the local NXP Semiconductors sales
office. In case of any inconsistency or conflict with the short data sheet, the
full data sheet shall prevail.
Product specification — The information and data provided in a Product
data sheet shall define the specification of the product as agreed between
NXP Semiconductors and its customer, unless NXP Semiconductors and
customer have explicitly agreed otherwise in writing. In no event however,
shall an agreement be valid in which the NXP Semiconductors product is
deemed to offer functions and qualities beyond those described in the
Product data sheet.
21.3 Disclaimers
Limited warranty and liability — Information in this document is believed to
be accurate and reliable. However, NXP Semiconductors does not give any
representations or warranties, expressed or implied, as to the accuracy or
completeness of such information and shall have no liability for the
consequences of use of such information. NXP Semiconductors takes no
responsibility for the content in this document if provided by an information
source outside of NXP Semiconductors.
In no event shall NXP Semiconductors be liable for any indirect, incidental,
punitive, special or consequential damages (including - without limitation - lost
profits, lost savings, business interruption, costs related to the removal or
replacement of any products or rework charges) whether or not such
damages are based on tort (including negligence), warranty, breach of
contract or any other legal theory.
Notwithstanding any damages that customer might incur for any reason
whatsoever, NXP Semi conductors’ aggregat e and cumulative liabil ity towards
customer for the products described herein shall be limited in accordance
with the Terms and conditions of commercial sale of NXP Semiconductors.
Right to make changes — NXP Semiconductors reserves the right to make
changes to information published in this document, including without
limitation specifications and product descriptions, at any time and without
notice. This document supersedes and replaces all information supplied prior
to the publication hereof.
Suitability for use — NXP Semiconductors products are not designed,
authorized or warranted to be suitable for use in life support, life-critical or
safety-critical systems or equipment, nor in applications where failure or
malfunction of an NXP Semiconductors product can reasonabl y be expected
to result in personal injury, death or severe property or environmental
damage. NXP Semiconductors and its suppliers accept no liability for
inclusion and/or use of NXP Semiconductors products in such equipment or
applications and therefore such inclusion and/or use is at the cu stomer’s own
risk.
Applications — Applications that are described herein for any of these
products are for illustrative purposes only. NXP Semiconductors makes no
representation or warranty that such applications will be suitable for the
specified use without further testing or modification.
Customers are responsible for the design and operation of their applications
and products using NXP Semiconductors products, and NXP Semiconductors
accepts no liability for any assistance with applications or customer product
design. It is customer’s sole responsibility to determine whether the NXP
Semiconductors product is suitable and fit for the customer’s applications and
products planned, as well as for the planned application and use of
customer’s third party customer(s). Customers should provide appropriate
design and operating safeguards to minimize the risks associated with their
applications and products.
NXP Semiconductors does not accept any liability related to any default ,
damage, costs or problem which is based on any weakness or default in the
customer’s applications or products, or the application or use by customer’s
third party customer(s). Customer is responsible for doing all necessary
testing for the customer’s applications and products using NXP
Semiconductors products in order to avoid a default of the applications and
the products or of the application or use by customer’s third part y
customer(s). NXP does not accept any liability in this respect.
Limiting values — Stress above one or more limiting values (as defined in
the Absolute Maximum Ratings System of IEC 60134) will cause permanent
damage to the device. Limiting values are stress ratings only and (proper)
operation of the device at these or any other conditions above those given in
the Recommended operating conditions section (if present) or the
Characteristics sections of this document is not warranted. Constant or
repeated exposure to limiting values will permanently and irreversibly affect
the quality and reliability of the device.
Terms and conditions of commercial sale — NXP Semiconductors
products are sold subject to the general terms and conditions of commercial
sale, as published at http://www.nxp.com/profile/terms
agreed in a valid written individual agreement. In case an individual
agreement is concluded only the terms and conditions of the respective
agreement shall apply. NXP Semiconductors hereby expressly objects to
applying the customer’s general terms and conditions with regard to the
purchase of NXP Semiconductors products by customer.
No offer to sell or license — Nothing in this document may be interpreted or
construed as an offer to sell product s that is ope n for accept ance or the gr ant,
conveyance or implication of any license under any copyrights, patents or
other industrial or intellectual property rights.
, unless otherwise
Product data sheetRev. 11 — 26 October 2015 41 of 45
NXP Semiconductors
PCF8563
Real-time clock/calendar
Export control — This document as well as the item(s) described herein
may be subject to export control regulations. Export might require a prior
authorization from competent authorities.
Non-automotive qualified products — Unless this data sheet expressly
states that this specific NXP Semiconductors product is automotive qualified,
the product is not suitable for automotive use. It i s neither qua lif ied nor test ed
in accordance with automotive testing or application requirements. NXP
Semiconductors accepts no liability for inclusion and/or use of
non-automotive qualified products in automotive equ ipment or applications.
In the event that customer uses the product for design-in and use in
automotive applications to automotive specifications and standards, customer
(a) shall use the product without NXP Semiconductors’ warranty of the
product for such automotive applications, use and specifications, and (b)
whenever customer uses the product for automotive applications beyond
NXP Semiconductors’ specifications such use shall be solely at customer’s
own risk, and (c) customer fully indemnifies NXP Semiconductors for any
liability, da mages or failed produ ct cl aims resulting from custome r design and
use of the product for automotive applications beyond NXP Semiconductors’
standard warranty and NXP Semiconductors’ product specifications.
Translations — A non-English (t ranslated) version of a document is for
reference only. The English version shall prevail in case of any discrepancy
between the translated and English versions.
21.4 Trademarks
Notice: All referenced brands, prod uct names, service names and trad emarks
are the property of their respective owners.
2
I
C-bus — logo is a trademark of NXP Semiconductors N.V.
22. Contact information
For more information, please visit: http://www.nxp.com
For sales office addresses, please send an email to: salesaddresses@nxp.com
Please be aware that important notices concerning this document and the product(s)
described herein, have been included in section ‘Legal information’.