The PCF8563 is a CMOS real-time clock/calendar optimized for low power
consumption. A programmableclockoutput,interruptoutputandvoltage-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 T
PCF8563PDIP8plastic dual in-line package; 8 leads (300 mil)SOT97-1
PCF8563TSO8plastic small outline package; 8 leads; body width 3.9 mmSOT96-1
PCF8563TSTSSOP8plastic thin shrink small outline package; 8 leads; body width 3.0 mmSOT505-1
6.Block diagram
DIVIDER
LOGIC
CLKOUT
7
CONTROL/STATUS 1
1 Hz
CONTROL/STATUS 2
SECONDS/VL
MINUTES
HOURS
DAYS
WEEKDAYS
MONTHS/CENTURY
YEARS
MINUTE ALARM
HOUR ALARM
DAY ALARM
WEEKDAY ALARM
CLKOUT CONTROL
TIMER CONTROL
TIMER
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.
PCF8563
Real-time clock/calendar
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.1 Alarm function modes
By clearing the MSB (bit AE = Alarm Enable) of one or more of the alarm registers,
the corresponding alarm condition(s) will be active. In this way an alarm can be
generated from once per minute up to once per week. The alarm condition sets the
alarm flag, AF (bit 3 of Control/Status 2 register). The asserted AF can be used to
generate an interrupt (INT). Bit AF can only be cleared by software.
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, or1⁄60Hz), 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.
8.3 CLKOUT output
A programmable square wave is availableat the CLKOUT pin. Operation is controlled
by the CLKOUT frequency register (address 0DH; see Table 23). Frequencies of
32.768 kHz (default), 1024, 32 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.
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.
8.5 Voltage-low detector and clock monitor
PCF8563
Real-time clock/calendar
The PCF8563 has an on-chip voltage-low detector. When VDD drops below V
VL bit (Voltage Low, bit 7 in the Seconds register) is set to indicate that reliable
clock/calendar information is no longer guaranteed. The VL flag can only be cleared
by software.
The VL bit is intended to detect the situation when VDD is decreasing slowly for
example under battery operation. Should VDDreach V
before power is re-asserted
low
then the VL bit will be set. This will indicate that the time may be corrupted.
handbook, halfpage
V
DD
V
low
Fig 4. Voltage-low detection.
period of battery
operation
VL set
MGR887
normal power
operation
t
8.6 Register organization
low
the
Table 4:Registers overview
Bit positions labelled as ‘−’are not implemented; those labelled with ‘0’ should always be written with logic 0.
Address Register name BCD format tens nibbleBCD format units nibble
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
3
2
02HSecondsVL<seconds 00 to 59 coded in BCD>
03HMinutes−<minutes 00 to 59 coded in BCD>
04HHours−−<hours 00 to 23 coded in BCD>
05HDays−−<days 01 to 31 coded in BCD>
06HWeekdays−−−−−<weekdays 0 to 6 >
07HMonths/CenturyC−−<months 01 to 12 coded in BCD>
08HYears<years 00 to 99 coded in BCD>
09HMinute alarmAE<minute alarm 00 to 59 coded in BCD>
0AHHour alarmAE−<hour alarm 00 to 23 coded in BCD>
0BHDay alarmAE−<day alarm 01 to 31 coded in BCD>
0CHWeekday alarmAE−−−− <weekday alarm 0 to 6 >
Table 7:Description of Control/Status 2 register bits description (address 01H)
BitSymbol Description
7 to 50By default set to logic 0.
4TI/TPTI/TP = 0: INT is active when TF is active (subject to the status of TIE).
3AFWhen an alarm occurs, AF is set to logic 1. Similarly, at the end of a
2TF
1AIEBits AIE and TIE activate or deactivate the generation of an interrupt
0TIE
PCF8563
Real-time clock/calendar
TI/TP = 1: INT pulses active according to Table 8 (subjectto the status
of TIE). Note that if AF and AIE are active then INT will be permanently
active.
timer countdown, TF is set to logic 1. These bits maintain their value
until overwritten by software. If both timer and alarm interrupts are
required in the application, the source of the interrupt can be
determined by reading these bits. To prevent one flag being
overwritten while clearing another, a logic AND is performed during a
write access. See Table 9 for the value descriptions of bits AF and TF.
when AF or TF is asserted, respectively.The interrupt is the logical OR
of these two conditions when both AIE and TIE are set.
When one or more of the alarm registers are loaded with a valid minute, hour, day or
weekday and its corresponding AE (Alarm Enable) bit is a logic 0, then that
information will be compared with the current minute, hour, day and weekday. When
all enabled comparisons first match, the bit AF (Alarm Flag) is set.
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.
7AEAE = 0; minute alarm is enabled. AE = 1; minute alarm is disabled.
6 to 0 <minute alarm> These bits represents the minute alarm information coded in BCD
Table 23: CLKOUT frequency register bits description (address 0DH)
BitSymbolDescription
7FEFE = 0; the CLKOUT output is inhibited and the CLKOUT output is
6to2−not implemented
1FD1These bits control the frequency output (f
0FD0
Table 24: CLKOUT frequency selection
Real-time clock/calendar
set to high-impedance. FE = 1; the CLKOUT output is activated.
pin; see Table 24.
FD1FD0f
0032.768 kHz
011 024 Hz
1032 Hz
111Hz
CLKOUT
PCF8563
) on the CLKOUT
CLKOUT
8.6.7 Countdown timer registers
The Timer register 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, e.g. interrupt generation, are controlled
via the Control/status 2 register. For accurate read back of the countdown value, the
I2C-bus clock SCL must be operating at a frequency of at least twice the selected
timer clock.
Table 25: Timer control register bits description (address 0EH)
BitSymbolDescription
7TETE = 0; timer is disabled. TE = 1; timer is enabled.
6to2−not implemented
1TD1Timer source clock frequency selection bits. These bits determine
0TD0
Table 26: Timer source clock frequency selection
TD1TD0Timer source clock frequency (Hz)
004096
0164
101
11
the source clock for the countdown timer, see Table 26. When not
in use, TD1 and TD0 should be set to ‘11’ (
saving.
1
⁄
60
1
⁄60Hz) for power
Table 27: Timer countdown value register bits description (address 0FH)
BitSymbolDescription
7 to 0<timer countdown value> This register holds the loaded countdown value ‘n’.
A test mode is available which allows for on-board testing. In this 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 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 STOPbit. 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.
PCF8563
Real-time clock/calendar
8.7.1 Operation example
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.
Repeat steps 7 and 8 for additional increments.
8.8 Power-On Reset (POR) override mode
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 I2C-bus pins, SDA and SCL, be toggled in a
specific order as shown in Figure 5. All timing values are required minimum.
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.
The serial interface of the PCF8563 is the I2C-bus. A detailed description of the
I2C-bus specification, including applications, is given in the brochure:
and how to use it
8.9.1 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.
The I2C-bus system configuration is shown in Figure 6. A device generating a
message is a ‘transmitter’, a device receiving a message is the ‘receiver’. The device
that controls the message is the ‘master’ and the devices which are controlled by the
master are the ‘slaves’.
500 ns2000 ns
, order no. 9398 393 40011 or
override active
MGM664
The I2C-bus
I2C Peripherals Data Handbook IC12.
SDA
SCL
MASTER
TRANSMITTER /
RECEIVER
SLAVE
RECEIVER
Fig 6. I2C-bus system configuration.
8.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 7.
One data bit is transferred during each clock pulse. The data on the SDA line must
remain 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 8.
PCF8563
Real-time clock/calendar
th
SDA
SCL
Fig 8. Bit transfer on the I2C-bus.
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.
A slave receiver which is addressed must generate an acknowledge after the
reception of each byte. Also a master receiver must generate an acknowledge after
the reception of each byte that has been clocked out of the slave transmitter.
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.
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.
The PCF8563 slave address is shown in Figure 10.
PCF8563
Real-time clock/calendar
handbook, halfpage
101000 A0 R/W
group 1
group 2
MRB016
Fig 10. Slave address.
Clock/calendar read/write cycles: The I2C-bus configuration for the different
PCF8563 read and write cycles are shown in Figure 11, 12 and 13. The word
address is a four bit value that defines which register is to be accessed next. The
upper four bits of the word address are not used.
idth
acknowledgement
from slave
S0ASLAVE ADDRESSWORD ADDRESSAADATAP
R/W
acknowledgement
from slave
Fig 11. Master transmits to slave receiver (write mode).
In accordance with the Absolute Maximum Rating System (IEC 60134).
SymbolParameterConditionsMinMaxUnit
V
DD
I
DD
V
I
V
O
I
I
I
O
P
tot
T
amb
T
stg
supply voltage−0.5+6.5V
supply current−50+50mA
input voltage on inputs SCL and SDA−0.56.5V
input voltage on input OSCI−0.5V
+ 0.5V
DD
output voltage on outputs CLKOUT and INT−0.56.5V
DC input current at any input−10+10mA
DC output current at any output−10+10mA
total power dissipation−300mW
operating ambient temperature−40+85°C
storage temperature−65+150°C
integrated load capacitance152535pF
oscillator stability∆VDD= 200 mV; T
Quartz crystal parameters (f
R
s
C
L
C
T
series resistance−−40kΩ
parallel load capacitance−10−pF
trimmer capacitance5−25pF
CLKOUT output
δ
CLKOUT
2
C-bus timing characteristics
I
f
SCL
t
HD;STA
t
SU;STA
CLKOUT duty factor
SCL clock frequency
START condition hold time0.6−−µs
set-up time for a repeated
START condition
t
LOW
t
HIGH
t
r
t
f
C
b
t
SU;DAT
t
HD;DAT
t
SU;STO
t
SW
SCL LOW time1.3−−µs
SCL HIGH time0.6−−µs
SCL and SDA rise time−−0.3µs
SCL and SDA fall time−−0.3µs
capacitive bus line load−−400pF
data set-up time100−−ns
data hold time0−−ns
set-up time for STOP condition4.0−−µs
tolerable spike width on bus−−50ns
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 the CLKOUT
pin. The frequency tolerance depends on the quartz crystal tolerance, the capacitor
tolerance and the device-to-device tolerance (on average ±5 × 10−6).
Average deviations of ±5 minutes per year can be easily achieved.
Method 2: OSCI trimmer — The oscillator is tuned to the required accuracy by
adjusting a trimmer capacitor on pin OSCI and measuring the 32.768 kHz signal
available after power-on at the CLKOUT pin.
Method 3: OSCO output — Direct output measurement on pin OSCO (accounting
for test probe capacitance).
This text gives a very brief insight to a complex technology. A more in-depth account
of soldering ICs can be found in our
Packages
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.
14.2 Surface mount packages
14.2.1 Reflow soldering
Reflow soldering requires solder paste (a suspension of fine solder particles, flux and
binding agent) to be applied to the printed-circuit board by screen printing, stencilling
or pressure-syringe dispensing before package placement.
PCF8563
Real-time clock/calendar
Data Handbook IC26; Integrated Circuit
(document order number 9398 652 90011).
Several methods exist for reflowing; for example, infrared/convection heating in a
conveyor type oven. Throughput times (preheating, soldering and cooling) vary
between 100 and 200 seconds depending on heating method.
Typical reflow peak temperatures range from 215 to 250 °C. The top-surface
temperature of the packages should preferable be kept below 230 °C.
14.2.2 Wave soldering
Conventional single wave soldering is not recommended for surface mount devices
(SMDs) or printed-circuit boards with a high component density, as solder bridging
and non-wetting can present major problems.
To overcome these problems the double-wave soldering method was specifically
developed.
If wave soldering is used the following conditions must be observed for optimal
results:
Use a double-wave soldering method comprising a turbulent wave with high
•
upward pressure followed by a smooth laminar wave.
For packages with leads on two sides and a pitch (e):
•
– larger than or equal to 1.27 mm, the footprint longitudinal axis is preferred to be
parallel to the transport direction of the printed-circuit board;
– smaller than 1.27 mm, the footprint longitudinal axis must be parallel to the
transport direction of the printed-circuit board.
The footprint must incorporate solder thieves at the downstream end.
For packages with leads on four sides, the footprint must be placed at a 45° angle
•
to the transport direction of the printed-circuit board. The footprint must
incorporate solder thieves downstream and at the side corners.
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.
14.2.3 Manual soldering
Fix the component by first soldering two diagonally-opposite end leads. Use a low
voltage (24 V or less) soldering iron applied to the flat part of the lead. Contact time
must be limited to 10 seconds at up to 300 °C.
When using a dedicated tool, all other leads can be soldered in one operation within
2 to 5 seconds between 270 and 320 °C.
14.3 Through-hole mount packages
14.3.1 Soldering by dipping or by solder wave
The maximum permissible temperature of the solder is 260 °C; solder at this
temperature must not be in contact with the joints for more than 5 seconds. The total
contact time of successive solder waves must not exceed 5 seconds.
PCF8563
Real-time clock/calendar
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 (T
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.
14.3.2 Manual soldering
Apply the soldering iron (24 V or less) to the lead(s) of the package, either below the
seating plane or not more than 2 mm above it. If the temperature of the soldering iron
bit is less than 300 °C it may remain in contact for up to 10 seconds. If the bit
temperature is between 300 and 400 °C, contact may be up to 5 seconds.
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
Circuit Packages; Section: Packing Methods
printed-circuit board.
and heatsink (at bottom version) can not be achieved, and as solder may stick to the heatsink (on top
version).
direction. The package footprint must incorporate solder thieves downstream and at the side corners.
than 0.8 mm; it is definitely not suitable for packages with a pitch (e) equal to or smaller than 0.65 mm.
0.65 mm; it is definitely not suitable for packages with a pitch (e) equal to or smaller than 0.5 mm.
, SO, SOJsuitablesuitable−
[4] [5]
suitable−
[6]
suitable−
Data Handbook IC26; Integrated
.
[1]
Dipping
15. Revision history
Rev DateCPCNDescription
01 990416 -This data sheet supersedes the version of 1998 Mar 25 (9397 750 03282):
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
Objective specificationDevelopmentThis data sheet contains the design target or goal specifications for product development. Specification may
change in any manner without notice.
Preliminary specification QualificationThis data sheet contains preliminary data, and supplementary data will be published at a later date. Philips
Semiconductors reserves the right to make changes at any time without notice in order to improve design and
supply the best possible product.
Product specificationProductionThis data sheet contains final specifications. Philips Semiconductors reserves the right to make changes at any
time without notice in order to improve design and supply the best possible product.
[1] Please consult the most recently issued data sheet before initiating or completing a design.
17. Definitions
Short-form specification — The data in a short-form specification is
extracted from a full data sheet with the same type number and title. For
detailed information see the relevant data sheet or data handbook.
Limiting values definition — Limiting values given are in accordance with
the Absolute Maximum Rating System (IEC 60134). Stress above one or
more of the limiting values may cause permanent damage to the device.
These are stress ratings only and operation of the device at these or at any
other conditions above those given in the Characteristics sections of the
specification is not implied. Exposure to limiting values for extended periods
may affect device reliability.
Application information — Applications that are described herein for any
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.
18. Disclaimers
Life support — These products are not designed for use in life support
appliances, devices, or systems where malfunction of these products can
reasonably be expected to result in personal injury. Philips Semiconductors
[1]
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.
Right to make changes — Philips Semiconductors reserves the right to
make changes, without notice, in the products, including circuits, standard
cells, and/or software, described or contained herein in order to improve
design and/or performance. Philips Semiconductors assumes no
responsibility or liability for the use of any of these products, conveys no
licence or title under any patent, copyright, or mask work right to these
products, and makes no representations or warranties that these products
are free from patent, copyright, or mask work right infringement, unless
otherwise specified.
19. Licenses
Purchase of Philips I2C components
Purchase of Philips I
under the Philips’ I
2
C system provided the system conforms to the I2C specifi-
I
cation defined by Philips. This specification can be ordered
using the code 9398 393 40011.
All rights are reserved. Reproduction in whole or in part is prohibited without the prior
written consent of the copyright owner.
The information presented in this document does not form part of any quotation or
contract, is believed to be accurate and reliable and may be changed without notice. No
liability will be accepted by the publisher for any consequence of its use. Publication
thereof does not convey nor imply any license under patent- or other industrial or
intellectual property rights.
Date of release: 16 April 1999Document order number: 9397 750 04855
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.