PCF8563 Real-time clock/calendar Rev. 9 -- 16 June 2011 Product data sheet 1. General description The PCF8563 is a CMOS1 Real-Time Clock (RTC) and calendar optimized for low power consumption. A programmable clock output, interrupt output, and voltage-low detector are also provided. All addresses and data are transferred serially via a two-line bidirectional I2C-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 A at VDD = 3.0 V and Tamb = 25 C 400 kHz two-wire I2C-bus interface (at VDD = 1.8 V to 5.5 V) Programmable clock output for peripheral devices (32.768 kHz, 1.024 kHz, 32 Hz, and 1 Hz) Alarm and timer functions Integrated oscillator capacitor Internal Power-On Reset (POR) I2C-bus slave address: read A3h and write A2h Open-drain interrupt pin 3. Applications 1. Mobile telephones Portable instruments Electronic metering Battery powered products The definition of the abbreviations and acronyms used in this data sheet can be found in Section 18. PCF8563 NXP Semiconductors Real-time clock/calendar 4. Ordering information Table 1. Ordering information Type number Package Name Description Version PCF8563BS/4 HVSON10 plastic thermal enhanced very thin small outline package; no leads; 10 terminals; body 3 3 0.85 mm SOT650-1 PCF8563P/F4 DIP8 plastic dual in-line package; 8 leads (300 mil) SOT97-1 PCF8563T/5 SO8 plastic small outline package; 8 leads; body width 3.9 mm SOT96-1 PCF8563T/F4[1] SO8 plastic small outline package; 8 leads; body width 3.9 mm SOT96-1 PCF8563TS/4[2] TSSOP8 plastic thin shrink small outline package; 8 leads; body width 3 mm SOT505-1 PCF8563TS/5 TSSOP8 plastic thin shrink small outline package; 8 leads; body width 3 mm SOT505-1 [1] Not to be used for new designs. Replacement part is PCF8563T/5. [2] Not to be used for new designs. Replacement part is PCF8563TS/5. 5. Marking Table 2. PCF8563 Product data sheet Marking codes Type number Marking code PCF8563BS/4 8563S PCF8563P/F4 PCF8563P PCF8563T/5 8563T PCF8563T/F4 8563T PCF8563TS/4 8563 PCF8563TS/5 8563 All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 2 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar 6. Block diagram OSCI OSCILLATOR 32.768 kHz DIVIDER CLOCK OUT CLKOUT OSCO CONTROL MONITOR (1) 00 CONTROL_STATUS_1 01 CONTROL_STATUS_2 0D CLKOUT_CONTROL 02 VL_SECONDS 03 MINUTES 04 HOURS POWER ON RESET TIME VDD VSS WATCH DOG 05 DAYS 06 WEEKDAYS 07 CENTURY_MONTHS 08 YEARS ALARM FUNCTION SDA SCL I2C-BUS INTERFACE 09 MINUTE_ALARM 0A HOUR_ALARM 0B DAY_ALARM 0C WEEKDAY_ALARM INT INTERRUPT TIMER FUNCTION PCF8563 0E TIMER_CONTROL 0F TIMER 001aah658 (1) COSCO; values see Table 30. Fig 1. Block diagram of PCF8563 PCF8563 Product data sheet All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 3 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar 7. Pinning information 7.1 Pinning terminal 1 index area OSCI 1 10 n.c. OSCO 2 9 VDD n.c. 3 8 CLKOUT INT 4 7 SCL VSS 5 6 SDA PCF8563BS OSCI 1 OSCO 2 Pin configuration for HVSON10 (PCF8563BS) 3 6 SCL VSS 4 5 SDA Top view. For mechanical details, see Figure 31. Fig 3. Pin configuration for DIP8 (PCF8563P) OSCI 1 8 VDD OSCO 2 7 CLKOUT INT 3 6 SCL INT 3 VSS 4 5 SDA VSS 4 PCF8563T OSCI 1 8 VDD OSCO 2 7 CLKOUT 6 SCL 5 SDA Top view. For mechanical details, see Figure 32. Pin configuration for SO8 (PCF8563T) Top view. For mechanical details, see Figure 33. Fig 5. All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 PCF8563TS 001aaf976 001aaf975 Product data sheet CLKOUT 001aaf977 For mechanical details, see Figure 30. PCF8563 7 INT Transparent top view Fig 4. VDD PCF8563P 001aaf981 Fig 2. 8 Pin configuration for TSSOP8 (PCF8563TS) (c) NXP B.V. 2011. All rights reserved. 4 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar 7.2 Pin description Table 3. Pin description Symbol Pin Description DIP8, SO8, TSSOP8 HVSON10 OSCI 1 1 oscillator input OSCO 2 2 oscillator output INT 3 4 interrupt output (open-drain; active LOW) VSS 4 5[1] ground SDA 5 6 serial data input and output SCL 6 7 serial clock input CLKOUT 7 8 clock output, open-drain VDD 8 9 supply voltage n.c. - 3, 10 not connected; do not connect and do not use as feed through [1] The die paddle (exposed pad) is wired to VSS but should not be electrically connected. 8. Functional description The PCF8563 contains sixteen 8-bit registers with an auto-incrementing register address, 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 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 years 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 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. 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. PCF8563 Product data sheet All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 5 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar 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. Address Register name Bit 7 6 5 4 3 2 1 0 Control and status registers 00h Control_status_1 TEST1 N STOP N TESTC N N N 01h Control_status_2 N N N TI_TP AF TF AIE TIE x WEEKDAYS (0 to 6) Time and date registers 02h VL_seconds VL SECONDS (0 to 59) 03h Minutes x MINUTES (0 to 59) 04h Hours x x HOURS (0 to 23) 05h Days x x DAYS (1 to 31) 06h Weekdays x x x x 07h Century_months C x x MONTHS (1 to 12) 08h Years YEARS (0 to 99) Alarm registers 09h Minute_alarm AE_M MINUTE_ALARM (0 to 59) 0Ah Hour_alarm AE_H x HOUR_ALARM (0 to 23) 0Bh Day_alarm AE_D x DAY_ALARM (1 to 31) 0Ch Weekday_alarm AE_W x x x x WEEKDAY_ALARM (0 to 6) FE x x x x x FD[1:0] x x x x x TD[1:0] CLKOUT control register 0Dh CLKOUT_control Timer registers 0Eh Timer_control TE 0Fh Timer TIMER[7:0] PCF8563 Product data sheet All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 6 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar 8.3 Control registers 8.3.1 Register Control_status_1 Table 5. Bit 7 Control_status_1 - control and status register 1 (address 00h) bit description Symbol Value Description Reference TEST1 0[1] normal mode Section 8.9 1 EXT_CLK test mode N 0[2] unused STOP 0[1] RTC source clock runs 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) must be set to logic 0 during normal operations 6 5 4 N 0[2] unused 3 TESTC 0 Power-On Reset (POR) override facility is disabled; set to logic 0 for normal operation 1[1] Power-On Reset (POR) override may be enabled 000[2] unused 2 to 0 N [1] Default value. [2] Bits labeled as N should always be written with logic 0. Section 8.10 Section 8.11.1 8.3.2 Register Control_status_2 Table 6. Bit 7 to 5 4 Control_status_2 - control and status register 2 (address 01h) bit description Symbol Value Description N 000[1] Reference unused TI_TP 0[2] INT is active when TF is active (subject to the status of TIE) 1 INT 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 3 AF 0[2] read: alarm flag inactive Section 8.3.2.1 and Section 8.8 Section 8.3.2.1 write: alarm flag is cleared 1 read: alarm flag active write: alarm flag remains unchanged 2 TF 0[2] read: timer flag inactive write: timer flag is cleared 1 read: timer flag active write: timer flag remains unchanged 1 AIE 0 TIE 0[2] alarm interrupt disabled 1 alarm interrupt enabled 0[2] timer interrupt disabled 1 timer interrupt enabled [1] Bits labeled as N should always be written with logic 0. [2] Default value. PCF8563 Product data sheet All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 7 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar 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 bits. To prevent one flag being overwritten while clearing another, a logic AND is performed during a write access. TI_TP TE to interface: read TF TF: TIMER COUNTDOWN COUNTER SET TIE e.g. AIE 0 1 0 PULSE GENERATOR 2 TRIGGER CLEAR 1 CLEAR INT from interface: clear TF to interface: read AF AF: ALARM FLAG SET set alarm flag AF AIE CLEAR from interface: clear AF 013aaa087 When bits TIE and AIE are disabled, pin INT will remain high-impedance. Fig 6. Interrupt scheme 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. 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)[1] Source clock (Hz) PCF8563 Product data sheet INT period (s) n = 1[2] n > 1[2] 4096 1 8192 1 4096 64 1 128 1 64 1 1 64 1 64 1 60 1 64 1 64 [1] TF and INT become active simultaneously. [2] n = loaded countdown value. Timer stops when n = 0. All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 8 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar 8.4 Time and date registers The majority of the registers are coded in the BCD format to simplify application use. 8.4.1 Register VL_seconds Table 8. Bit Symbol Value Place value Description 7 VL 0 - clock integrity is guaranteed 1[1] - integrity of the clock information is not guaranteed 6 to 4 SECONDS 0 to 5 ten's place actual seconds coded in BCD format, see Table 9 3 to 0 unit place [1] 0 to 9 Start-up value. Table 9. 8.4.1.1 VL_seconds - seconds and clock integrity status register (address 02h) bit description Seconds coded in BCD format Seconds value (decimal) Upper-digit (ten's place) Digit (unit place) Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 00 0 0 0 0 0 0 0 01 0 0 0 0 0 0 1 02 0 0 0 0 0 1 0 : : : : : : : : 09 0 0 0 1 0 0 1 10 0 0 1 0 0 0 0 : : : : : : : : 58 1 0 1 1 0 0 0 59 1 0 1 1 0 0 1 Voltage-low detector and clock monitor The PCF8563 has an on-chip voltage-low detector (see Figure 7). When VDD drops below Vlow, bit VL in the VL_seconds register is set to indicate that the integrity of the clock information is no longer guaranteed. The VL flag can only be cleared by using the interface. mgr887 VDD normal power operation period of battery operation Vlow VL set Fig 7. PCF8563 Product data sheet t Voltage-low detection All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 9 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar The VL flag is intended to detect the situation when VDD is decreasing slowly, for example under battery operation. Should the oscillator stop or VDD reach Vlow before power is 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 Bit Symbol Value Place value Description 7 - - - unused actual minutes coded in BCD format 6 to 4 MINUTES 0 to 5 ten's place 3 to 0 0 to 9 unit place 8.4.3 Register Hours Table 11. Bit Hours - hours register (address 04h) bit description Value Place value Description 7 to 6 - Symbol - - unused 5 to 4 HOURS 0 to 2 ten's place actual hours coded in BCD format 3 to 0 0 to 9 unit place 8.4.4 Register Days Table 12. Bit Days - days register (address 05h) bit description Symbol 7 to 6 5 to 4 DAYS[1] 3 to 0 [1] Value Place value Description - - unused 0 to 3 ten's place actual day coded in BCD format 0 to 9 unit place 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. 8.4.5 Register Weekdays Table 13. Bit PCF8563 Product data sheet Weekdays - weekdays register (address 06h) bit description Symbol Value Description 7 to 3 - - unused 2 to 0 WEEKDAYS 0 to 6 actual weekday values, see Table 14 All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 10 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar Table 14. Weekday assignments Day[1] Bit 2 1 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 [1] Definition may be re-assigned by the user. 8.4.6 Register Century_months Table 15. Century_months - century flag and months register (address 07h) bit description Bit Symbol Value Place value Description 7 C[1] 0[2] - indicates the century is x 1 - indicates the century is x + 1 6 to 5 - - - unused 4 0 to 1 ten's place actual month coded in BCD format, see Table 16 0 to 9 unit place MONTHS 3 to 0 [1] This bit may be re-assigned by the user. [2] This bit is toggled when the register Years overflows from 99 to 00. Table 16. PCF8563 Product data sheet Month assignments in BCD format Month Upper-digit (ten's place) Digit (unit place) Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 January 0 0 0 0 1 February 0 0 0 1 0 March 0 0 0 1 1 April 0 0 1 0 0 May 0 0 1 0 1 June 0 0 1 1 0 July 0 0 1 1 1 August 0 1 0 0 0 September 0 1 0 0 1 October 1 0 0 0 0 November 1 0 0 0 1 December 1 0 0 1 0 All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 11 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar 8.4.7 Register Years Table 17. Bit Years - years register (08h) bit description Symbol Value Place value Description 7 to 4 YEARS 0 to 9 ten's place 3 to 0 0 to 9 unit place [1] actual year coded in BCD format[1] When the register Years overflows from 99 to 00, the century bit C in the register Century_months is toggled. 8.5 Setting and reading the time Figure 8 shows the data flow and data dependencies starting from the 1 Hz clock tick. 1 Hz tick SECONDS MINUTES HOURS LEAP YEAR CALCULATION DAYS WEEKDAY MONTHS YEARS C Fig 8. 013aaa092 Data flow for the time function During read/write operations, the time counting circuits (memory locations 02h through 08h) are blocked. This prevents * Faulty reading of the clock and calendar during a carry condition * Incrementing the time registers, during the read cycle 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 9). PCF8563 Product data sheet All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 12 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar t<1s START SLAVE ADDRESS DATA DATA STOP 013aaa215 Fig 9. 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 one 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 occur between reads thus giving the minutes from one moment and the hours from the next. 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. PCF8563 Product data sheet All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 13 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar 8.6 Alarm registers 8.6.1 Register Minute_alarm Table 18. Minute_alarm - minute alarm register (address 09h) bit description Bit Symbol Value Place value Description 7 AE_M 0 - minute alarm is enabled 1[1] - minute alarm is disabled minute alarm information coded in BCD format 6 to 4 MINUTE_ALARM 0 to 5 ten's place 3 to 0 0 to 9 unit place [1] Default value. 8.6.2 Register Hour_alarm Table 19. Hour_alarm - hour alarm register (address 0Ah) bit description Bit Symbol Value Place value Description 7 AE_H 0 - hour alarm is enabled 1[1] - hour alarm is disabled - - unused hour alarm information coded in BCD format 6 - 5 to 4 HOUR_ALARM 0 to 2 ten's place 3 to 0 0 to 9 unit place [1] Default value. 8.6.3 Register Day_alarm Table 20. Day_alarm - day alarm register (address 0Bh) bit description Bit Symbol Value Place value Description 7 AE_D 0 - day alarm is enabled 1[1] - day alarm is disabled - - unused 5 to 4 DAY_ALARM 0 to 3 ten's place 3 to 0 0 to 9 unit place day alarm information coded in BCD format 6 [1] - Default value. 8.6.4 Register Weekday_alarm Table 21. Weekday_alarm - weekday alarm register (address 0Ch) bit description Bit Symbol Value Description 7 AE_W 0 weekday alarm is enabled 1[1] weekday alarm is disabled - unused 6 to 3 - 2 to 0 WEEKDAY_ALARM 0 to 6 [1] PCF8563 Product data sheet weekday alarm information Default value. All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 14 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar 8.6.5 Alarm 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). The AF is cleared using the 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. The generation of interrupts from the alarm function is controlled via bit AIE. If bit AIE is enabled, the INT pin follows the condition of bit AF. AF will remain set until cleared by the interface. 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_x bit at logic 1 are ignored. check now signal example AE_M AE_M = 1 MINUTE ALARM = 1 0 MINUTE TIME AE_H HOUR ALARM = HOUR TIME set alarm flag AF (1) AE_D DAY ALARM = DAY TIME AE_W WEEKDAY ALARM = 013aaa088 WEEKDAY 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 10. Alarm function block diagram 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. PCF8563 Product data sheet All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 15 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar Table 22. CLKOUT_control - CLKOUT control register (address 0Dh) bit description Bit Symbol Value Description 7 FE 0 the CLKOUT output is inhibited and CLKOUT output is set to logic 0 1[1] the CLKOUT output is activated - unused 6 to 2 1 to 0 FD[1:0] [1] frequency output at pin CLKOUT 00[1] 32.768 kHz 01 1.024 kHz 10 32 Hz 11 1 Hz Default value. 8.8 Timer function 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 160 Hz), and enables or 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. The TF may only be cleared by using the interface. The asserted TF can be used to generate an interrupt on pin INT. The interrupt may be 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 Bit Symbol Value Description 7 TE 0[1] timer is disabled 1 timer is enabled - unused 6 to 2 - timer source clock frequency select[2] 1 to 0 TD[1:0] PCF8563 Product data sheet 00 4.096 kHz 01 64 Hz 10 1 Hz 11[2] 1 60 Hz [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 Hz for power saving. 60 All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 16 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar 8.8.2 Register Timer Table 24. Timer - timer value register (address 0Fh) bit description Bit Symbol Value Description 7 to 0 TIMER[7:0] 00h to FFh countdown period in seconds: n CountdownPeriod = --------------------------------------------------------------SourceClockFrequency where n is the countdown value Table 25. Timer register bits value range Bit 7 6 5 4 3 2 1 0 128 64 32 16 8 4 2 1 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. 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. 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 26 divide chain called a prescaler. The prescaler can be set into 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. 8.9.1 Operation example: 1. Set EXT_CLK test mode (Control_status_1, bit TEST1 = 1). 2. Set STOP (Control_status_1, bit STOP = 1). 3. Clear STOP (Control_status_1, bit STOP = 0). 4. Set time registers to desired value. PCF8563 Product data sheet All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 17 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar 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.10 STOP bit function The function of the STOP bit is to allow for accurate starting of the time circuits. The STOP bit function will cause the upper part of the prescaler (F2 to F14) to be held in reset and thus no 1 Hz ticks will be generated (see Figure 11). The time circuits can then be set and will not increment until the STOP bit is released (see Figure 12 and Table 26). F13 RESET RESET 2 Hz F2 reset 4096 Hz F1 8192 Hz F0 16384 Hz OSCILLATOR 32768 Hz OSCILLATOR STOP DETECTOR F14 1 Hz tick RESET STOP 1 Hz 32 Hz CLKOUT source 1024 Hz 32768 Hz 013aaa089 Fig 11. 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 (F0 and F1) are not reset; and because the I2C-bus is asynchronous to the crystal oscillator, the accuracy of re-starting the time circuits will be between zero and one 8.192 kHz cycle (see Figure 12). 8192 Hz stop released 0 s to 122 s 001aaf912 Fig 12. STOP bit release timing PCF8563 Product data sheet All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 18 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar Table 26. First increment of time circuits after STOP bit release Bit Prescaler bits STOP F0F1-F2 to F14 [1] 1 Hz tick Time Comment hh:mm:ss Clock is running normally 0 12:45:12 01-0 0001 1101 0100 prescaler counting normally STOP bit is activated by user. F0F1 are not reset and values cannot be predicted externally 1 XX-0 0000 0000 0000 12:45:12 prescaler is reset; time circuits are frozen 08:00:00 prescaler is reset; time circuits are frozen 08:00:00 prescaler is now running 08:00:00 - 08:00:00 - 08:00:00 - : : New time is set by user 1 XX-0 0000 0000 0000 STOP bit is released by user 0 XX-1 0000 0000 0000 XX-0 1000 0000 0000 XX-1 1000 0000 0000 : 0.507813 to 0.507935 s XX-0 0000 0000 0000 - 08:00:01 0 to 1 transition of F14 increments the time circuits 10-0 0000 0000 0001 08:00:01 - : : : 08:00:01 - 08:00:01 - 10-0 0000 0000 0000 08:00:01 - : : : 11-1 1111 1111 1110 08:00:01 - 00-0 0000 0000 0001 08:00:02 0 to 1 transition of F14 increments the time circuits 11-1 1111 1111 1111 00-0 0000 0000 0000 1.000000 s 08:00:00 00-0 0000 0000 0001 11-1 1111 1111 1110 013aaa076 [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 F0 and F1 not being reset (see Table 26) and the unknown state of the 32 kHz clock. 8.11 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 including the address pointer and all registers are set according to Table 27. I2C-bus communication is not possible during reset. PCF8563 Product data sheet All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 19 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar Table 27. Register reset value[1] Address Register name Bit 7 6 5 4 3 2 1 0 00h Control_status_1 0 0 0 0 1 0 0 0 01h Control_status_2 0 0 0 0 0 0 0 0 02h VL_seconds 1 x x x x x x x 03h Minutes x x x x x x x x 04h Hours x x x x x x x x 05h Days x x x x x x x x 06h Weekdays x x x x x x x x 07h Century_months x x x x x x x x 08h Years x x x x x x x x 09h Minute_alarm 1 x x x x x x x 0Ah Hour_alarm 1 x x x x x x x 0Bh Day_alarm 1 x x x x x x x 0Ch Weekday_alarm 1 x x x x x x x 0Dh CLKOUT_control 1 x x x x x 0 0 0Eh Timer_control 0 x x x x x 1 1 0Fh Timer x x x x x x x x [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 I2C-bus pins, SDA and SCL, are toggled in a specific order as shown in Figure 13. All timings are required minimums. 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 I2C-bus 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. 500 ns 2000 ns SDA SCL 8 ms power-on override active mgm664 Fig 13. POR override sequence PCF8563 Product data sheet All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 20 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar 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 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 14). SDA SCL data line stable; data valid change of data allowed mbc621 Fig 14. 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 15). SDA SDA SCL SCL S P START condition STOP condition mbc622 Fig 15. 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 16). PCF8563 Product data sheet All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 21 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar SDA SCL MASTER TRANSMITTER RECEIVER SLAVE TRANSMITTER RECEIVER SLAVE RECEIVER MASTER TRANSMITTER RECEIVER MASTER TRANSMITTER mba605 Fig 16. System configuration 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 cycle. * 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. Acknowledgement on the I2C-bus is illustrated in Figure 17. data output by transmitter not acknowledge data output by receiver acknowledge SCL from master 1 2 8 9 S START condition clock pulse for acknowledgement mbc602 Fig 17. Acknowledgement on the I2C-bus PCF8563 Product data sheet All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 22 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar 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) The PCF8563 slave address is illustrated in Figure 18. 1 0 1 0 group 1 0 0 1 R/W group 2 mce189 Fig 18. Slave address 9.5.2 Clock and calendar READ or WRITE cycles The I2C-bus configuration for the different PCF8563 READ and WRITE cycles is shown in Figure 19, Figure 20 and Figure 21. The register address is a 4-bit value that defines which register is to be accessed next. The upper four bits of the register address are not used. acknowledgement from slave S SLAVE ADDRESS acknowledgement from slave 0 A REGISTER ADDRESS A R/W acknowledgement from slave DATA A P n bytes auto increment memory register address 013aaa346 Fig 19. Master transmits to slave receiver (WRITE mode) PCF8563 Product data sheet All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 23 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar acknowledgement from slave S SLAVE ADDRESS 0 A acknowledgement from slave REGISTER ADDRESS A S acknowledgement from slave SLAVE ADDRESS 1 A DATA A n bytes R/W R/W acknowledgement from slave auto increment memory register address (1) no acknowledgement from master 1 DATA P last byte auto increment memory register address 013aaa041 (1) At this moment master transmitter becomes master receiver and PCF8563 slave receiver becomes slave transmitter. Fig 20. Master reads after setting register address (write register address; READ data) acknowledgement from slave S SLAVE ADDRESS 1 A R/W acknowledgement from master A DATA n bytes no acknowledgement from master DATA 1 P last byte auto increment register address auto increment register address 013aaa347 Fig 21. Master reads slave immediately after first byte (READ mode) PCF8563 Product data sheet All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 24 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar 9.6 Interface watchdog timer t<1s data START SLAVE ADDRESS WD timer DATA DATA STOP WD timer tracking time counters running time counters frozen running 013aaa420 a. Correct data transfer: read or write 1s 2000 < 1.6 260 260 260 1.6 to 2.5 260 250 245 > 2.5 250 245 245 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 34. PCF8563 Product data sheet All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 39 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar maximum peak temperature = MSL limit, damage level temperature minimum peak temperature = minimum soldering temperature peak temperature time 001aac844 MSL: Moisture Sensitivity Level Fig 34. Temperature profiles for large and small components For further information on temperature profiles, refer to Application Note AN10365 "Surface mount reflow soldering description". 18. Abbreviations Table 33. PCF8563 Product data sheet Abbreviations Acronym Description BCD Binary Coded Decimal CDM Charged-Device Model CMOS Complementary Metal Oxide Semiconductor ESD ElectroStatic Discharge HBM Human Body Model I2C Inter-Integrated Circuit IC Integrated Circuit LSB Least Significant Bit MSB Most Significant Bit MSL Moisture Sensitivity Level PCB Printed-Circuit Board POR Power-On Reset RTC Real-Time Clock SCL Serial CLock line SDA Serial DAta line SMD Surface Mount Device All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 40 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar 19. References [1] AN10365 -- Surface mount reflow soldering description [2] IEC 60134 -- Rating systems for electronic tubes and valves and analogous semiconductor devices [3] IEC 61340-5 -- Protection of electronic devices from electrostatic phenomena [4] IPC/JEDEC J-STD-020 -- Moisture/Reflow Sensitivity Classification for Nonhermetic Solid State Surface Mount Devices [5] JESD22-A114 -- Electrostatic Discharge (ESD) Sensitivity Testing Human Body Model (HBM) [6] JESD22-C101 -- Field-Induced Charged-Device Model Test Method for Electrostatic-Discharge-Withstand Thresholds of Microelectronic Components [7] JESD78 -- IC Latch-Up Test [8] JESD625-A -- Requirements for Handling Electrostatic-Discharge-Sensitive (ESDS) Devices [9] NX3-00092 -- NXP store and transport requirements [10] SNV-FA-01-02 -- Marking Formats Integrated Circuits [11] UM10204 -- I2C-bus specification and user manual PCF8563 Product data sheet All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 41 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar 20. Revision history Table 34. Revision history Document ID Release date Data sheet status Change notice Supersedes PCF8563 v.9 20110616 Product data sheet - PCF8563 v.8 Modifications: * Added design-in and replacement part information PCF8563 v.8 20101118 Product data sheet - PCF8563 v.7 PCF8563 v.7 20100723 Product data sheet - PCF8563_6 PCF8563_6 20080221 Product data sheet - PCF8563_5 PCF8563_5 20070717 Product data sheet - PCF8563-04 PCF8563-04 (9397 750 12999) 20040312 Product data - PCF8563-03 PCF8563-03 (9397 750 11158) 20030414 Product data - PCF8563-02 PCF8563-02 (9397 750 04855) 19990416 Product data - PCF8563_N_1 PCF8563_N_1 (9397 750 03282) 19980325 Objective specification - - PCF8563 Product data sheet All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 42 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar 21. Legal information 21.1 Data sheet status Document status[1][2] Product status[3] Definition Objective [short] data sheet Development This document contains data from the objective specification for product development. Preliminary [short] data sheet Qualification This document contains data from the preliminary specification. Product [short] data sheet Production This 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) described in this document may have changed since this document was published and may differ in case of multiple devices. The latest product status information is available on the Internet at URL http://www.nxp.com. 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 upon to contain detailed 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. 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 Semiconductors' aggregate and cumulative liability towards customer for the products described herein shall be limited in accordance with the Terms and conditions of commercial sale of NXP Semiconductors. malfunction of an NXP Semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. NXP Semiconductors accepts 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 customer'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 party 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, unless otherwise 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. 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. No offer to sell or license -- Nothing in this document may be interpreted or construed as an offer to sell products that is open for acceptance or the grant, conveyance or implication of any license under any copyrights, patents or other industrial or intellectual property rights. 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 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 national authorities. PCF8563 Product data sheet All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 43 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar 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 is neither qualified nor tested 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 equipment 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, damages or failed product claims resulting from customer design and use of the product for automotive applications beyond NXP Semiconductors' standard warranty and NXP Semiconductors' product specifications. 21.4 Trademarks Notice: All referenced brands, product names, service names and trademarks are the property of their respective owners. I2C-bus -- logo is a trademark of NXP B.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 PCF8563 Product data sheet All information provided in this document is subject to legal disclaimers. Rev. 9 -- 16 June 2011 (c) NXP B.V. 2011. All rights reserved. 44 of 45 PCF8563 NXP Semiconductors Real-time clock/calendar 23. Contents 1 2 3 4 5 6 7 7.1 7.2 8 8.1 8.2 8.3 8.3.1 8.3.2 8.3.2.1 8.4 8.4.1 8.4.1.1 8.4.2 8.4.3 8.4.4 8.4.5 8.4.6 8.4.7 8.5 8.6 8.6.1 8.6.2 8.6.3 8.6.4 8.6.5 8.7 8.8 8.8.1 8.8.2 8.9 8.9.1 8.10 8.11 8.11.1 9 9.1 9.2 9.3 9.4 General description . . . . . . . . . . . . . . . . . . . . . . 1 Features and benefits . . . . . . . . . . . . . . . . . . . . 1 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Ordering information . . . . . . . . . . . . . . . . . . . . . 2 Marking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Pinning information . . . . . . . . . . . . . . . . . . . . . . 4 Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Pin description . . . . . . . . . . . . . . . . . . . . . . . . . 5 Functional description . . . . . . . . . . . . . . . . . . . 5 CLKOUT output . . . . . . . . . . . . . . . . . . . . . . . . 5 Register organization . . . . . . . . . . . . . . . . . . . . 6 Control registers . . . . . . . . . . . . . . . . . . . . . . . . 7 Register Control_status_1 . . . . . . . . . . . . . . . . 7 Register Control_status_2 . . . . . . . . . . . . . . . . 7 Interrupt output . . . . . . . . . . . . . . . . . . . . . . . . . 8 Time and date registers . . . . . . . . . . . . . . . . . . 9 Register VL_seconds . . . . . . . . . . . . . . . . . . . . 9 Voltage-low detector and clock monitor . . . . . . 9 Register Minutes. . . . . . . . . . . . . . . . . . . . . . . 10 Register Hours . . . . . . . . . . . . . . . . . . . . . . . . 10 Register Days . . . . . . . . . . . . . . . . . . . . . . . . . 10 Register Weekdays. . . . . . . . . . . . . . . . . . . . . 10 Register Century_months . . . . . . . . . . . . . . . . 11 Register Years . . . . . . . . . . . . . . . . . . . . . . . . 12 Setting and reading the time. . . . . . . . . . . . . . 12 Alarm registers . . . . . . . . . . . . . . . . . . . . . . . . 14 Register Minute_alarm . . . . . . . . . . . . . . . . . . 14 Register Hour_alarm . . . . . . . . . . . . . . . . . . . 14 Register Day_alarm . . . . . . . . . . . . . . . . . . . . 14 Register Weekday_alarm . . . . . . . . . . . . . . . . 14 Alarm flag . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Register CLKOUT_control and clock output. . 15 Timer function . . . . . . . . . . . . . . . . . . . . . . . . . 16 Register Timer_control . . . . . . . . . . . . . . . . . . 16 Register Timer . . . . . . . . . . . . . . . . . . . . . . . . 17 EXT_CLK test mode . . . . . . . . . . . . . . . . . . . . 17 Operation example: . . . . . . . . . . . . . . . . . . . . 17 STOP bit function . . . . . . . . . . . . . . . . . . . . . . 18 Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Power-On Reset (POR) override . . . . . . . . . . 20 Characteristics of the I2C-bus . . . . . . . . . . . . 21 Bit transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 START and STOP conditions . . . . . . . . . . . . . 21 System configuration . . . . . . . . . . . . . . . . . . . 21 Acknowledge . . . . . . . . . . . . . . . . . . . . . . . . . 22 9.5 I2C-bus protocol . . . . . . . . . . . . . . . . . . . . . . . 23 9.5.1 Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 9.5.2 Clock and calendar READ or WRITE cycles . 23 9.6 Interface watchdog timer . . . . . . . . . . . . . . . . 25 10 Internal circuitry . . . . . . . . . . . . . . . . . . . . . . . 26 11 Limiting values . . . . . . . . . . . . . . . . . . . . . . . . 27 12 Static characteristics . . . . . . . . . . . . . . . . . . . 28 13 Dynamic characteristics. . . . . . . . . . . . . . . . . 31 14 Application information . . . . . . . . . . . . . . . . . 32 14.1 Quartz frequency adjustment. . . . . . . . . . . . . 33 14.1.1 Method 1: fixed OSCI capacitor . . . . . . . . . . . 33 14.1.2 Method 2: OSCI trimmer . . . . . . . . . . . . . . . . 33 14.1.3 Method 3: OSCO output . . . . . . . . . . . . . . . . 33 15 Package outline. . . . . . . . . . . . . . . . . . . . . . . . 34 16 Handling information . . . . . . . . . . . . . . . . . . . 38 17 Soldering of SMD packages . . . . . . . . . . . . . . 38 17.1 Introduction to soldering. . . . . . . . . . . . . . . . . 38 17.2 Wave and reflow soldering. . . . . . . . . . . . . . . 38 17.3 Wave soldering . . . . . . . . . . . . . . . . . . . . . . . 39 17.4 Reflow soldering . . . . . . . . . . . . . . . . . . . . . . 39 18 Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 40 19 References. . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 20 Revision history . . . . . . . . . . . . . . . . . . . . . . . 42 21 Legal information . . . . . . . . . . . . . . . . . . . . . . 43 21.1 Data sheet status . . . . . . . . . . . . . . . . . . . . . . 43 21.2 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 21.3 Disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . 43 21.4 Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . 44 22 Contact information . . . . . . . . . . . . . . . . . . . . 44 23 Contents. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 Please be aware that important notices concerning this document and the product(s) described herein, have been included in section `Legal information'. (c) NXP B.V. 2011. All rights reserved. For more information, please visit: http://www.nxp.com For sales office addresses, please send an email to: salesaddresses@nxp.com Date of release: 16 June 2011 Document identifier: PCF8563