Philips PCF8563P, PCF8563T, PCF8563TS Datasheet

0 (0)
PCF8563
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 programmableclockoutput,interruptoutputandvoltage-low detector
are also provided. All address and data are transferred serially via a two-line
bidirectional I
C-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 V
DD
= 3.0 V and T
amb
=25°C
400 kHz two-wire I
C-bus interface (at V
DD
= 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
I
C-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
Product specification 16 April 1999 2 of 30
9397 750 04855
© Philips Electronics N.V. 1999. All rights reserved.

4. Quick reference data

5. Ordering information

6. Block diagram

Table 1: Quick reference data
Symbol Parameter Conditions Min Max Unit
V
DD
supply voltage operating mode I
2
C-bus inactive; T
amb
=25°C 1.0 5.5 V
I
2
C-bus active; f
SCL
= 400 kHz;
T
amb
= 40 to +85 °C
1.8 5.5 V
I
DD
supply current; timer and CLKOUT
disabled
f
SCL
= 400 kHz - 800 µA
f
SCL
= 100 kHz - 200 µA
f
SCL
= 0 Hz; T
amb
=25°C
V
DD
= 5 V - 550 nA
V
DD
= 2 V - 450 nA
T
amb
operating ambient temperature 40 +85 °C
T
stg
storage temperature 65 +150 °C
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
Fig 1. Block diagram.
handbook, full pagewidth
MGM662
0
CONTROL/STATUS 1
OSCILLATOR
32.768 kHz
1
CONTROL/STATUS 2
2
SECONDS/VL
3
MINUTES
4
HOURS
5
DAYS
6
WEEKDAYS
7
MONTHS/CENTURY
8
YEARS
9
MINUTE ALARM
A
HOUR ALARM
B
DAY ALARM
C
WEEKDAY ALARM
D
E
CLKOUT CONTROL
F
TIMER CONTROL
TIMER
OSCILLATOR
MONITOR
VOLTAGE
DETECTOR
I
2
C-BUS
INTERFACE
DIVIDER
CONTROL
LOGIC
ADDRESS
REGISTER
POR
V
DD
CLKOUT
1 Hz
OSCO
SCL
SDA
V
SS
INT
OSCI
1
2
3
4
8
6
5
7
Philips Semiconductors
PCF8563
Real-time clock/calendar
Product specification 16 April 1999 3 of 30
9397 750 04855
© Philips Electronics N.V. 1999. All rights reserved.

7. Pinning information

7.1 Pinning

7.2 Pin description

Fig 2. Pin configuration.
Fig 3. Device diode protection diagram.
handbook, halfpage
1
2
3
4
8
7
6
5
MGR885
PCF8563P
PCF8563T
PCF8563TS
V
DD
CLKOUTOSCO
SCL
SDA
V
SS
INT
OSCI
handbook, halfpage
MGR886
SDA
4
5
V
SS
SCL
3
6
INT
CLKOUT
2
7
OSCO
V
DD
1
8
OSCI
PCF8563
Table 3: Pin description
Symbol Pin Description
OSCI 1 oscillator input
OSCO 2 oscillator output
INT 3 interrupt output (open-drain; active LOW)
V
SS
4 ground
SDA 5 serial data I/O
SCL 6 serial clock input
CLKOUT 7 clock output (open-drain)
V
DD
8 positive supply
Philips Semiconductors
PCF8563
Real-time clock/calendar
Product specification 16 April 1999 4 of 30
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
I
C-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.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, or
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.

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.
Philips Semiconductors
PCF8563
Real-time clock/calendar
Product specification 16 April 1999 5 of 30
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 I
C-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

The PCF8563 has an on-chip voltage-low detector. When V
DD
drops below V
low
the
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 V
DD
is decreasing slowly for
example under battery operation. Should V
DD
reach V
low
before power is re-asserted
then the VL bit will be set. This will indicate that the time may be corrupted.

8.6 Register organization

Fig 4. Voltage-low detection.
handbook, halfpage
VL set
normal power
operation
period of battery
operation
t
V
DD
V
low
MGR887
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 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
00H Control/Status 1 TEST1 0 STOP 0 TESTC 0 0 0
01H Control/Status 2 0 0 0 TI/TP AF TF AIE TIE
0DH CLKOUT frequency FE −−−−−FD1 FD0
0EH Timer control TE −−−−−TD1 TD0
0FH Timer countdown
value
<timer countdown value>
Philips Semiconductors
PCF8563
Real-time clock/calendar
Product specification 16 April 1999 6 of 30
9397 750 04855
© Philips Electronics N.V. 1999. All rights reserved.
[1] Not coded in BCD.
8.6.1 Control/Status 1 register
Table 5: BCD formatted registers overview
Bit positions labelled as ‘
’are not implemented.
Address Register name BCD format tens nibble BCD format units nibble
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
02H Seconds VL <seconds 00 to 59 coded in BCD>
03H Minutes <minutes 00 to 59 coded in BCD>
04H Hours −− <hours 00 to 23 coded in BCD>
05H Days −− <days 01 to 31 coded in BCD>
06H Weekdays −−−−− <weekdays 0 to 6 >
[1]
07H Months/Century C −− <months 01 to 12 coded in BCD>
08H Years <years 00 to 99 coded in BCD>
09H Minute alarm AE <minute alarm 00 to 59 coded in BCD>
0AH Hour alarm AE <hour alarm 00 to 23 coded in BCD>
0BH Day alarm AE <day alarm 01 to 31 coded in BCD>
0CH Weekday alarm AE −−−− <weekday alarm 0 to 6 >
[1]
Table 6: Control/Status 1 register bits description (address 00H)
Bit Symbol Description
7 TEST1 TEST1 = 0; normal mode.
TEST1 = 1; EXT_CLK test mode; see Section 8.7.
5 STOP STOP = 0; RTC source clock runs.
STOP = 1; all RTC divider chain flip-flops are asynchronously set
to logic 0; the RTC clock is stopped (CLKOUT at 32.768 kHz is still
available).
3 TESTC TESTC = 0; power-on reset override facility is disabled (set to logic 0
for normal operation).
TESTC = 1; power-on reset override is enabled.
6, 4, 2 to 0 0 By default set to logic 0.
Philips Semiconductors
PCF8563
Real-time clock/calendar
Product specification 16 April 1999 7 of 30
9397 750 04855
© Philips Electronics N.V. 1999. All rights reserved.
8.6.2 Control/Status 2 register
[1] TF and INT become active simultaneously.
[2] n = loaded countdown timer value. Timer stopped when n = 0.
Table 7: Description of Control/Status 2 register bits description (address 01H)
Bit Symbol Description
7 to 5 0 By default set to logic 0.
4 TI/TP TI/TP = 0: INT is active when TF is active (subject to the status of TIE).
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.
3 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 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.
2TF
1 AIE Bits AIE and TIE activate or deactivate the generation of an interrupt
when AF or TF is asserted, respectively.The interrupt is the logical OR
of these two conditions when both AIE and TIE are set.
AIE = 0: alarm interrupt disabled; AIE = 1: alarm interrupt enabled.
TIE = 0: timer interrupt disabled; TIE = 1: timer interrupt enabled.
0 TIE
Table 8:
INT operation (bit TI/TP = 1)
Source clock (Hz) INT
[1]
period (s)
n
[2]
=1 n>1
4096
1
8192
1
4096
64
1
128
1
64
1
1
64
1
64
1
60
1
64
1
64
Table 9: Value descriptions for bits AF and TF
R/W Bit: AF Bit: TF
Value Description Value Description
Read 0 alarm flag inactive 0 timer flag inactive
1 alarm flag active 1 timer flag active
Write 0 alarm flag is cleared 0 timer flag is cleared
1 alarm flag remains unchanged 1 timer flag remains unchanged
Philips Semiconductors
PCF8563
Real-time clock/calendar
Product specification 16 April 1999 8 of 30
9397 750 04855
© Philips Electronics N.V. 1999. All rights reserved.

8.6.3 Seconds, Minutes and Hours registers

8.6.4 Days, Weekdays, Months/Century and Years registers

Table 10: Seconds/VL register bits description (address 02H)
Bit Symbol Description
7 VL VL = 0: reliable clock/calendar information is guaranteed;
VL = 1: reliable clock/calendar information is no longer
guaranteed.
6 to 0 <seconds> These bits represent the current seconds value coded in BCD
format; value = 00 to 59.
Example: <seconds> = 101 1001, represents the value 59 s.
Table 11: Minutes register bits description (address 03H)
Bit Symbol Description
7 not implemented
6 to 0 <minutes> These bits represent the current minutes value coded in BCD
format; value = 00 to 59.
Table 12: Hours register bits description (address 04H)
Bit Symbol Description
7 to 6 not implemented
5 to 0 <hours> These bits represent the current hours value coded in BCD format;
value=00to23.
Table 13: Days register bits description (address 05H)
Bit Symbol Description
7 to 6 not implemented
5 to 0 <days> These bits represent the current day value coded in BCD format;
value = 01 to 31.
The PCF8563 compensates for leap years by adding a 29th day to
February if the year counter contains a value which is exactly
divisible by 4, including the year ‘00’.
Table 14: Weekdays register bits description (address 06H)
Bit Symbol Description
7 to 3 not implemented
2 to 0 <weekdays> These bits represent the current weekday value 0 to 6;
see Table 15.
These bits may be re-assigned by the user.
Philips Semiconductors
PCF8563
Real-time clock/calendar
Product specification 16 April 1999 9 of 30
9397 750 04855
© Philips Electronics N.V. 1999. All rights reserved.
Table 15: Weekday assignments
Day Bit 2 Bit 1 Bit 0
Sunday 0 0 0
Monday 0 0 1
Tuesday 0 1 0
Wednesday 0 1 1
Thursday 1 0 0
Friday 1 0 1
Saturday 1 1 0
Table 16: Months/Century register bits description (address 07H)
Bit Symbol Description
7 C Century bit. C = 0; indicates the century is 20xx.
C = 1; indicates the century is 19xx. ‘xx’ indicates the value held in the
Years register; see Table 18.
This bit is toggled when the Years register overflows from 99 to 00.
These bits may be re-assigned by the user.
6to5 not implemented
4 to 0 <months> These bits represents the current month value coded in BCD format;
value = 01 to 12; see Table 17.
Table 17: Month assignments
Month Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
January00001
February00010
March 00011
April 00100
May 00101
June 00110
July 00111
August 01000
September 01001
October 10000
November 10001
December 10010
Table 18: Years register bits description (address 08H)
Bit Symbol Description
7 to 0 <years> This register represents the current year value coded in BCD
format; value = 00 to 99.
Loading...
+ 21 hidden pages