Professional Documents
Culture Documents
Real-time clock/calendar
16 April 1999 Product specification
1. General description
The PCF8563 is a CMOS real-time clock/calendar optimized for low power
consumption. A programmable clock output, interrupt output and voltage-low detector
are also provided. All address and data are transferred serially via a two-line
bidirectional I2C-bus. Maximum bus speed is 400 kbits/s. The built-in word address
register is incremented automatically after each written or read data byte.
2. Features
■ Provides year, month, day, weekday, hours, minutes and seconds based on
32.768 kHz quartz crystal
■ Century flag
■ Wide operating supply voltage range: 1.0 to 5.5 V
■ Low back-up current; typical 0.25 µA at VDD = 3.0 V and Tamb = 25 °C
■ 400 kHz two-wire I2C-bus interface (at VDD = 1.8 to 5.5 V)
■ Programmable clock output for peripheral devices: 32.768 kHz, 1024 Hz,
32 Hz and 1 Hz
■ Alarm and timer functions
■ Voltage-low detector
■ Integrated oscillator capacitor
■ Internal power-on reset
■ I2C-bus slave address: read A3H; write A2H
■ Open drain interrupt pin.
3. Applications
■ Mobile telephones
■ Portable instruments
■ Fax machines
■ Battery powered products.
Philips Semiconductors PCF8563
Real-time clock/calendar
5. Ordering information
Table 2: Ordering information
Type number Package
Name Description Version
PCF8563P DIP8 plastic dual in-line package; 8 leads (300 mil) SOT97-1
PCF8563T SO8 plastic small outline package; 8 leads; body width 3.9 mm SOT96-1
PCF8563TS TSSOP8 plastic thin shrink small outline package; 8 leads; body width 3.0 mm SOT505-1
6. Block diagram
7
1 CONTROL/STATUS 1 0
OSCI
OSCILLATOR 1 Hz
2 DIVIDER CONTROL/STATUS 2 1
32.768 kHz
OSCO SECONDS/VL 2
3 MINUTES 3
INT
4 HOURS 4
VSS VOLTAGE DAYS 5
8 DETECTOR
VDD WEEKDAYS 6
CONTROL MONTHS/CENTURY 7
OSCILLATOR LOGIC
MONITOR POR YEARS 8
MINUTE ALARM 9
HOUR ALARM A
6
SCL DAY ALARM B
I2C-BUS
5 INTERFACE ADDRESS WEEKDAY ALARM C
SDA REGISTER CLKOUT CONTROL D
TIMER CONTROL E
TIMER F
MGM662
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
7. Pinning information
7.1 Pinning
handbook, halfpage
OSCI 1 8 VDD
VSS 4 5 SDA
MGR885
handbook, halfpage
1 8
OSCI VDD
2 7
OSCO CLKOUT
3 6
INT SCL
4 5
VSS SDA
PCF8563
MGR886
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
8. Functional description
The PCF8563 contains sixteen 8-bit registers with an auto-incrementing address
register, an on-chip 32.768 kHz oscillator with an integrated capacitor, a frequency
divider which provides the source clock for the Real-Time Clock (RTC), a
programmable clock output, a timer, an alarm, a voltage-low detector and a 400 kHz
I2C-bus interface.
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 year counters). Address
locations 09H through 0CH contain alarm registers which define the conditions for an
alarm. Address 0DH controls the CLKOUT output frequency. 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 BCD format. The Weekdays and
Weekday alarm register are not coded in BCD format.
When one of the RTC registers is read the contents of all counters are frozen.
Therefore, faulty reading of the clock/calendar during a carry condition is prevented.
8.2 Timer
The 8-bit countdown timer (address 0FH) is controlled by the Timer Control register
(address 0EH; see Table 25). The Timer Control register selects one of 4 source
clock frequencies for the timer (4096, 64, 1, or 1⁄60 Hz), and enables/disables the
timer. The timer counts down from a software-loaded 8-bit binary value. At the end of
every countdown, the timer sets the timer flag TF (see Table 7). The timer flag TF can
only be cleared by software. The asserted timer flag TF can be used to generate an
interrupt (INT). The interrupt may be generated as a pulsed signal every countdown
period or as a permanently active signal which follows the condition of TF. TI/TP (see
Table 7) is used to control this mode selection. When reading the timer, the current
countdown value is returned.
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
8.4 Reset
The PCF8563 includes an internal reset circuit which is active whenever the oscillator
is stopped. In the reset state the I2C-bus logic is initialized and all registers, including
the address pointer, are cleared with the exception of bits FE, VL, TD1, TD0, TESTC
and AE which are set to logic 1.
The VL bit is intended to detect the situation when VDD is decreasing slowly for
example under battery operation. Should VDD reach Vlow before power is re-asserted
then the VL bit will be set. This will indicate that the time may be corrupted.
normal power
operation
period of battery
operation
Vlow
VL set t
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
AF will remain set until cleared by software. Once AF has been cleared it will only be
set again when the time increments to match the alarm condition once more. Alarm
registers which have their AE bit set at logic 1 will be ignored.
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
Table 27: Timer countdown value register bits description (address 0FH)
Bit Symbol Description
7 to 0 <timer countdown value> This register holds the loaded countdown value ‘n’.
n
Countdown period = ----------------------------------------------------------
Source clock frequency
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
The test mode is entered by setting bit TEST1 in the Control/Status1 register. The
CLKOUT pin then becomes an input. The test mode replaces the internal 64 Hz
signal with the signal that is applied to the CLKOUT pin. Every 64 positive edges
applied to CLKOUT will then generate an increment of one second.
The signal applied to the CLKOUT pin should have a minimum pulse width of 300 ns
and a minimum period of 1000 ns. The internal 64 Hz clock, now sourced from
CLKOUT, is divided down to 1 Hz by a 26 divide chain called a pre-scaler. The
pre-scaler can be set into a known state by using the STOP bit. When the STOP bit is
set, the pre-scaler is reset to 0. STOP must be cleared before the pre-scaler can
operate again. From a STOP condition, the first 1 s increment will take place after
32 positive edges on CLKOUT. Thereafter, every 64 positive edges will cause a 1 s
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 pre-scaler
can be made.
1. Enter the EXT_CLK test mode; set bit 7 of Control/Status 1 register (TEST = 1)
2. Set bit 5 of Control/Status 1 register (STOP = 1)
3. Clear bit 5 of Control/Status 1 register (STOP = 0)
4. Set time registers (Seconds, Minutes, Hours, Days, Weekdays, Months/Century
and Years) to desired value
5. Apply 32 clock pulses to CLKOUT
6. Read time registers to see the first change
7. Apply 64 clock pulses to CLKOUT
8. Read time registers to see the second change.
Once the override mode has been entered, the chip immediately stops being reset
and normal operation starts i.e. entry into the EXT_CLK test mode via I2C-bus
access. The override mode is cleared by writing a logic 0 to bit TESTC. Re-entry into
the override mode is only possible after TESTC is set to logic 1. Setting TESTC to
logic 0 during normal operation has no effect except to prevent entry into the POR
override mode.
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
SDA
SCL
8 ms
power up override active MGM664
SDA
SCL
MBA605
width
SDA SDA
SCL SCL
S P
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
dth
SDA
SCL
8.9.4 Acknowledge
The number of data bytes transferred between the START and STOP conditions from
transmitter to receiver is unlimited. Each byte of eight bits is followed by an
acknowledge bit. The acknowledge bit is a HIGH level signal put on the bus by the
transmitter during which time the master generates an extra acknowledge related
clock pulse.
The device that acknowledges must pull down the SDA line during the acknowledge
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).
A master receiver must signal an end of data to the transmitter by not generating an
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.
width
DATA OUTPUT
BY TRANSMITTER
not acknowledge
DATA OUTPUT
BY RECEIVER
acknowledge
SCL FROM
MASTER 1 2 8 9
S
clock pulse for
START acknowledgement
condition
MBC602
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.
handbook, halfpage
1 0 1 0 0 0 A0 R/W
R/W n bytes
auto increment
memory word address
MBD822
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
n bytes
R/W R/W
at this moment master-transmitter auto increment
becomes master receiver and memory word address
PCF8563 slave-receiver
becomes slave-transmitter
no acknowledgement
from master
DATA 1 P
last byte
auto increment
MGL409
memory word address
Fig 12. Master reads after setting word address (write word address; read data).
Fig 13. Master reads slave immediately after first byte (read mode).
9. Limiting values
Table 28: Limiting values
In accordance with the Absolute Maximum Rating System (IEC 60134).
Symbol Parameter Conditions Min Max Unit
VDD supply voltage −0.5 +6.5 V
IDD supply current −50 +50 mA
VI input voltage on inputs SCL and SDA −0.5 6.5 V
input voltage on input OSCI −0.5 VDD + 0.5 V
VO output voltage on outputs CLKOUT and INT −0.5 6.5 V
II DC input current at any input −10 +10 mA
IO DC output current at any output −10 +10 mA
Ptot total power dissipation − 300 mW
Tamb operating ambient temperature −40 +85 °C
Tstg storage temperature −65 +150 °C
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
MGR888 MGR889
1 1
handbook, halfpage handbook, halfpage
IDD IDD
(µA) (µA)
0.8 0.8
0.6 0.6
0.4 0.4
0.2 0.2
0 0
0 2 4 VDD (V) 6 0 2 4 VDD (V) 6
MGR890 MGR891
1
handbook, halfpage handbook, halfpage
IDD
4
(µA)
frequency
0.8
deviation
(ppm) 2
0.6
0.4
−2
0.2
−4
0
−40 0 40 80 T (°C) 120 0 2 4 6
VDD (V)
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
SDA
t BUF t LOW tf
SCL
SDA
t SU;STA
MGA728 t SU;STO
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
SDA
MASTER
TRANSMITTER/
RECEIVER
1F SCL
VDD
SCL
CLOCK CALENDAR
OSCI PCF8563
SDA VDD
OSCO VSS
R R R: pull-up resistor
tr
R=
Cb
SDA SCL
(I2C-bus) MGM665
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
SO8: plastic small outline package; 8 leads; body width 3.9 mm SOT96-1
D E A
X
y HE v M A
8 5
Q
A2
(A 3) A
A1
pin 1 index
θ
Lp
1 4 L
e w M detail X
bp
0 2.5 5 mm
scale
0.25 1.45 0.49 0.25 5.0 4.0 6.2 1.0 0.7 0.7
mm 1.75 0.25 1.27 1.05 0.25 0.25 0.1 o
0.10 1.25 0.36 0.19 4.8 3.8 5.8 0.4 0.6 0.3 8
0.010 0.057 0.019 0.0100 0.20 0.16 0.244 0.039 0.028 0.028 0o
inches 0.069 0.01 0.050 0.041 0.01 0.01 0.004
0.004 0.049 0.014 0.0075 0.19 0.15 0.228 0.016 0.024 0.012
Notes
1. Plastic or metal protrusions of 0.15 mm maximum per side are not included.
2. Plastic or metal protrusions of 0.25 mm maximum per side are not included.
95-02-04
SOT96-1 076E03S MS-012AA
97-05-22
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
D ME
seating plane
A2 A
L A1
c
Z w M
b1
e (e 1)
MH
b b2
8 5
pin 1 index
E
1 4
0 5 10 mm
scale
UNIT
A A1 A2
b b1 b2 c D (1) E (1) e e1 L ME MH w Z (1)
max. min. max. max.
1.73 0.53 1.07 0.36 9.8 6.48 3.60 8.25 10.0
mm 4.2 0.51 3.2 2.54 7.62 0.254 1.15
1.14 0.38 0.89 0.23 9.2 6.20 3.05 7.80 8.3
inches 0.068 0.021 0.042 0.014 0.39 0.26 0.14 0.32 0.39
0.17 0.020 0.13 0.10 0.30 0.01 0.045
0.045 0.015 0.035 0.009 0.36 0.24 0.12 0.31 0.33
Note
1. Plastic or metal protrusions of 0.25 mm maximum per side are not included.
92-11-17
SOT97-1 050G01 MO-001AN
95-02-04
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
TSSOP8: plastic thin shrink small outline package; 8 leads; body width 3 mm SOT505-1
D E A
X
y HE v M A
8 5
A2 (A3) A
A1
pin 1 index
θ
Lp
L
1 4
detail X
e w M
bp
0 2.5 5 mm
scale
Notes
1. Plastic or metal protrusions of 0.15 mm maximum per side are not included.
2. Plastic or metal protrusions of 0.25 mm maximum per side are not included.
SOT505-1 99-04-09
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
14. Soldering
14.1 Introduction
This text gives a very brief insight to a complex technology. A more in-depth account
of soldering ICs can be found in our Data Handbook IC26; Integrated Circuit
Packages (document order number 9398 652 90011).
There is no soldering method that is ideal for all IC packages. Wave soldering is often
preferred when through-hole and surface mount components are mixed on one
printed-circuit board. However, wave soldering is not always suitable for surface
mount ICs, or for printed-circuit boards with high population densities. In these
situations reflow soldering is often used.
Typical reflow peak temperatures range from 215 to 250 °C. The top-surface
temperature of the packages should preferable be kept below 230 °C.
If wave soldering is used the following conditions must be observed for optimal
results:
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
During placement and before soldering, the package must be fixed with a droplet of
adhesive. The adhesive can be applied by screen printing, pin transfer or syringe
dispensing. The package can be soldered after the adhesive is cured.
Typical dwell time is 4 seconds at 250 °C. A mildly-activated flux will eliminate the
need for removal of corrosive residues in most applications.
When using a dedicated tool, all other leads can be soldered in one operation within
2 to 5 seconds between 270 and 320 °C.
The device may be mounted up to the seating plane, but the temperature of the
plastic body must not exceed the specified maximum storage temperature (Tstg(max)).
If the printed-circuit board has been pre-heated, forced cooling may be necessary
immediately after soldering to keep the temperature within the permissible limit.
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
[1] All surface mount (SMD) packages are moisture sensitive. Depending upon the moisture content, the
maximum temperature (with respect to time) and body size of the package, there is a risk that internal
or external package cracks may occur due to vaporization of the moisture in them (the so called
popcorn effect). For details, refer to the Drypack information in the Data Handbook IC26; Integrated
Circuit Packages; Section: Packing Methods.
[2] For SDIP packages, the longitudinal axis must be parallel to the transport direction of the
printed-circuit board.
[3] These packages are not suitable for wave soldering as a solder joint between the printed-circuit board
and heatsink (at bottom version) can not be achieved, and as solder may stick to the heatsink (on top
version).
[4] If wave soldering is considered, then the package must be placed at a 45° angle to the solder wave
direction. The package footprint must incorporate solder thieves downstream and at the side corners.
[5] Wave soldering is only suitable for LQFP, QFP and TQFP packages with a pitch (e) equal to or larger
than 0.8 mm; it is definitely not suitable for packages with a pitch (e) equal to or smaller than 0.65 mm.
[6] Wave soldering is only suitable for SSOP and TSSOP packages with a pitch (e) equal to or larger than
0.65 mm; it is definitely not suitable for packages with a pitch (e) equal to or smaller than 0.5 mm.
• The format of this specification has been redesigned to comply with Philips Semiconductors’
new presentation and information standard
• Added Figure 3 “Device diode protection diagram.” on page 3
• Added Figure 4 “Voltage-low detection.” on page 5
• Added paragraph in Section 8.5 “Voltage-low detector and clock monitor” on page 5
• Added Figure 14 to 17 on page 18 in Section 10.
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
[1] Please consult the most recently issued data sheet before initiating or completing a design.
17. Definitions customers using or selling these products for use in such applications do so
at their own risk and agree to fully indemnify Philips Semiconductors for any
damages resulting from such application.
Short-form specification — The data in a short-form specification is Right to make changes — Philips Semiconductors reserves the right to
extracted from a full data sheet with the same type number and title. For make changes, without notice, in the products, including circuits, standard
detailed information see the relevant data sheet or data handbook. cells, and/or software, described or contained herein in order to improve
design and/or performance. Philips Semiconductors assumes no
Limiting values definition — Limiting values given are in accordance with
responsibility or liability for the use of any of these products, conveys no
the Absolute Maximum Rating System (IEC 60134). Stress above one or
licence or title under any patent, copyright, or mask work right to these
more of the limiting values may cause permanent damage to the device.
products, and makes no representations or warranties that these products
These are stress ratings only and operation of the device at these or at any
are free from patent, copyright, or mask work right infringement, unless
other conditions above those given in the Characteristics sections of the
otherwise specified.
specification is not implied. Exposure to limiting values for extended periods
may affect device reliability.
Application information — Applications that are described herein for any 19. Licenses
of these products are for illustrative purposes only. Philips Semiconductors
make no representation or warranty that such applications will be suitable for
the specified use without further testing or modification. Purchase of Philips I2C components
Purchase of Philips I2C components conveys a license
18. Disclaimers under the Philips’ I2C patent to use the components in the
I2C system provided the system conforms to the I2C specifi-
cation defined by Philips. This specification can be ordered
Life support — These products are not designed for use in life support using the code 9398 393 40011.
appliances, devices, or systems where malfunction of these products can
reasonably be expected to result in personal injury. Philips Semiconductors
9397 750 04855 © Philips Electronics N.V. 1999 All rights reserved.
9397 750 04855 © Philips Electronics N.V. 1999. All rights reserved.
Contents
1 General description. . . . . . . . . . . . . . . . . . 1 16 Data sheet status . . . . . . . . . . . . . . . . . . . 28
2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 17 Definitions . . . . . . . . . . . . . . . . . . . . . . . . 28
3 Applications. . . . . . . . . . . . . . . . . . . . . . . . 1 18 Disclaimers. . . . . . . . . . . . . . . . . . . . . . . . 28
4 Quick reference data. . . . . . . . . . . . . . . . . 2 19 Licenses . . . . . . . . . . . . . . . . . . . . . . . . . . 28
5 Ordering information . . . . . . . . . . . . . . . . 2
6 Block diagram . . . . . . . . . . . . . . . . . . . . . . 2
7 Pinning information . . . . . . . . . . . . . . . . . 3
7.1 Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
7.2 Pin description . . . . . . . . . . . . . . . . . . . . . 3
8 Functional description . . . . . . . . . . . . . . . 4
8.1 Alarm function modes. . . . . . . . . . . . . . . . 4
8.2 Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
8.3 CLKOUT output . . . . . . . . . . . . . . . . . . . . 4
8.4 Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
8.5 Voltage-low detector and clock monitor . . 5
8.6 Register organization . . . . . . . . . . . . . . . . 5
8.6.1 Control/Status 1 register . . . . . . . . . . . . . . 6
8.6.2 Control/Status 2 register . . . . . . . . . . . . . . 7
8.6.3 Seconds, Minutes and Hours registers . . . . 8
8.6.4 Days, Weekdays, Months/Century and Years
registers . . . . . . . . . . . . . . . . . . . . . . . . . 8
8.6.5 Alarm registers . . . . . . . . . . . . . . . . . . . . 10
8.6.6 CLKOUT frequency register. . . . . . . . . . . 11
8.6.7 Countdown timer registers . . . . . . . . . . . . 11
8.7 EXT_CLK test mode. . . . . . . . . . . . . . . . 12
8.7.1 Operation example . . . . . . . . . . . . . . . . . 12
8.8 Power-On Reset (POR) override mode . 12
8.9 Serial interface . . . . . . . . . . . . . . . . . . . . 13
8.9.1 Characteristics of the I2C-bus . . . . . . . . . 13
8.9.2 START and STOP conditions . . . . . . . . . 13
8.9.3 Bit transfer . . . . . . . . . . . . . . . . . . . . . . . 14
8.9.4 Acknowledge . . . . . . . . . . . . . . . . . . . . . 14
8.9.5 I2C-bus protocol . . . . . . . . . . . . . . . . . . . 15
9 Limiting values . . . . . . . . . . . . . . . . . . . . 16
10 Static characteristics . . . . . . . . . . . . . . . 17
11 Dynamic characteristics . . . . . . . . . . . . . 19
12 Application information . . . . . . . . . . . . . 21
12.1 Quartz crystal frequency adjustment . . . 21
13 Package outline . . . . . . . . . . . . . . . . . . . . 22
14 Soldering . . . . . . . . . . . . . . . . . . . . . . . . . 25
14.1 Introduction . . . . . . . . . . . . . . . . . . . . . . 25
14.2 Surface mount packages . . . . . . . . . . . . 25
14.2.1 Reflow soldering . . . . . . . . . . . . . . . . . . . 25
14.2.2 Wave soldering . . . . . . . . . . . . . . . . . . . 25
14.2.3 Manual soldering . . . . . . . . . . . . . . . . . . 26
14.3 Through-hole mount packages. . . . . . . . 26
14.3.1 Soldering by dipping or by solder wave . . . 26
14.3.2 Manual soldering . . . . . . . . . . . . . . . . . . 26
14.4 Package related soldering information . . 27
15 Revision history . . . . . . . . . . . . . . . . . . . 27