S-35390A 2-WIRE REAL-TIME CLOCK. Rev.2.4_00. Features. Applications. Packages. Seiko Instruments Inc. 1

Similar documents
onlinecomponents.com

S-35390A 2-WIRE REAL-TIME CLOCK. Features. Applications. Packages. SII Semiconductor Corporation, Rev.4.

S-35392A 2-WIRE REAL-TIME CLOCK. Features. Applications. Package. ABLIC Inc., Rev.3.2_03

S-35390A H Series FOR AUTOMOTIVE 105 C OPERATION 2-WIRE REAL-TIME CLOCK. Features. Packages. ABLIC Inc., Rev.2.

S-35399A03 2-WIRE REAL-TIME CLOCK. Features. Applications. Package. ABLIC Inc., Rev.3.1_03

S-35190A 3-WIRE REAL-TIME CLOCK. Rev.2.4_00. Features. Applications. Package. Seiko Instruments Inc. 1

S-35190A 3-WIRE REAL-TIME CLOCK. Features. Applications. Packages. ABLIC Inc., Rev.4.2_03

PT7C43190 Real-time Clock Module

PRODUCT DISCONTINUED S-35399A02 2-WIRE REAL-TIME CLOCK. Features. Applications. Package. Seiko Instruments Inc. 1.

A variety of pagers day of a week, hour, minute and second. TV set and VCR CPU interface via three wires

S Series FOR AUTOMOTIVE 125 C OPERATION 2-WIRE INTERVAL TIMER CONVENIENCE TIMER. Features. Application. Package.

INF8574 GENERAL DESCRIPTION

S-7760A PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E 2 PROM CIRCUIT) Features. Applications. Package.

DS1307ZN. 64 X 8 Serial Real Time Clock PIN ASSIGNMENT FEATURES

DS1307ZN. 64 X 8 Serial Real Time Clock

RayStar Microelectronics Technology Inc. Ver: 1.4

DS1803 Addressable Dual Digital Potentiometer

CAT bit Programmable LED Dimmer with I 2 C Interface DESCRIPTION FEATURES APPLICATIONS TYPICAL APPLICATION CIRCUIT

Application Manual. Real Time Clock Module KR3225Y Series ( I 2 C )

INTEGRATED CIRCUITS. PCA bit I 2 C LED dimmer. Product data Supersedes data of 2003 Feb May 02. Philips Semiconductors

FLD00042 I 2 C Digital Ambient Light Sensor

DS1807 Addressable Dual Audio Taper Potentiometer

DS1621. Digital Thermometer and Thermostat FEATURES PIN ASSIGNMENT

PCA bit I 2 C LED driver with programmable blink rates INTEGRATED CIRCUITS May 05. Product data Supersedes data of 2003 Feb 20

I2C Digital Input RTC with Alarm DS1375. Features

INTEGRATED CIRCUITS. PCA9544A 4-channel I 2 C multiplexer with interrupt logic. Product data sheet Supersedes data of 2004 Jul 28.

IN1307N/D/IZ1307 CMOS IC of Real Time Watch with Serial Interface, 56 Х 8 RAM

INTEGRATED CIRCUITS. PCA bit I 2 C LED dimmer. Product data sheet Supersedes data of 2004 Sep Oct 01. Philips Semiconductors

INTEGRATED CIRCUITS. PCA bit I 2 C LED dimmer. Product data Supersedes data of 2003 May Oct 01. Philips Semiconductors

S-5813A/5814A Series CMOS TEMPERATURE SENSOR IC. Rev.1.2_00. Features. Applications. Package. Seiko Instruments Inc. 1

GC221-SO16IP. 8-bit Turbo Microcontroller

DS1307/DS X 8 Serial Real Time Clock

UNISONIC TECHNOLOGIES CO., LTD CD4541

The operation of the S-5852A Series is explained in the user's manual. Contact our sales office for more information.

CAT bit Programmable LED Dimmer with I 2 C Interface FEATURES DESCRIPTION APPLICATIONS TYPICAL APPLICATION CIRCUIT

DS1202, DS1202S. Serial Timekeeping Chip FEATURES PIN ASSIGNMENT. ORDERING INFORMATION DS pin DIP DS1202S 16 pin SOIC DS1202S8 8 pin SOIC

±2.5 C ( 55 to +130 C) mv/ C Typ. Ta = 30 C: V Typ. Ta = +30 C: V Typ. Ta = +130 C: V Typ. ±0.4% Typ.

NJU6063. RGB LED Controller Driver with PWM Control FEATURES BLOCK DIAGRAM NJU6063V - 1 -

INTEGRATED CIRCUITS. PCA channel I 2 C multiplexer and interrupt logic. Product data Supersedes data of 2001 May 07.

DS4000 Digitally Controlled TCXO

I2C Demonstration Board I 2 C-bus Protocol

SM8578BV Real-time Clock IC

S-8423 Series. Rev.2.0 BATTERY BACKUP IC

S-8242B Series BATTERY PROTECTION IC FOR 2-SERIAL-CELL PACK. Rev.1.4_00. Features. Applications. Packages. Seiko Instruments Inc.

HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 HT1627 HT16270 COM

DS x 8, Serial, I 2 C Real-Time Clock

M41T0 SERIAL REAL-TIME CLOCK

PACKAGE HIGH-PRECISION VOLTAGE DETECTOR

Temperature Sensor and System Monitor in a 10-Pin µmax

M41T60. Serial access real-time clock. Features summary. 32KHz Crystal + QFN16 vs. VSOJ20

ILI2117 Capacitive Touch Controller

SM8580AM Real-time Clock IC with 4-bit Interface and Built-in Temperature Sensor

FAH4830 Haptic Driver for DC Motors (ERMs) and Linear Resonant Actuators (LRAs)

SERIAL I/O REAL TIME CLOCK

S-8130AA Series TEMPERATURE SWITCH IC WITH LATCH. Rev.2.2_00

DISCONTINUED PRODUCT

ABLIC Inc., 2012 Rev.1.0_02

S-93C46B/56B/66B 3-WIRE SERIAL E 2 PROM. Features. Packages. ABLIC Inc., Rev.8.1_02

Oscillator fail detect - 12-hour Time display 24-hour 2 Time Century bit - Time count chain enable/disable -

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 COM

DS1642 Nonvolatile Timekeeping RAM

VS1307 北京弗赛尔电子设计有限公司. 64x8, Serial,I 2 C Real-Time Clock PIN ASSIGNMENT FEATURES PIN CONFIGUATIONS GENERAL DESCRIPTION

Data Sheet PT7C4337 Real-time Clock Module (I 2 C Bus) Product Description. Product Features. Ordering Information

ETM45E-03. Application Manual. Real Time Clock Module RX8900SA / CE. Preliminary

Pin Pin. 1 A0 Input address input 0 2 A1 Input address input 1. 4 INT0 Input active LOW interrupt input 0

Description. Features. Pin Configuration. Pin Description PI4MSD5V9546A. 4 Channel I2C bus Switch with Reset

V OUT0 OUT DC-DC CONVERTER FB

I O 7-BIT POT REGISTER ADDRESS COUNT 7-BIT POT. CODE 64 (40h) DS3503

HIGH RIPPLE-REJECTION LOW DROPOUT LOW INPUT-AND-OUTPUT CAPACITANCE CMOS VOLTAGE REGULATOR

3-Channel Fun LED Driver

Pin Configuration Pin Description PI4MSD5V9540B. 2 Channel I2C bus Multiplexer. Pin No Pin Name Type Description. 1 SCL I/O serial clock line

Real-Time Clock (RTC) Module. Calendar in day of the week, day of the month, months, and years with automatic leap-year adjustment

DS1337 I 2 C Serial Real-Time Clock

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 COM

PATENTED. PAT No. : HT1622/HT1622G RAM Mapping 32 8 LCD Controller for I/O MCU. Features. General Description.

ACE5372. Low Power Real-Time Clock (RTC)

PRODUCT OVERVIEW OVERVIEW OTP

R/W address auto increment External Crystal kHz oscillator

Built-in LCD display RAM Built-in RC oscillator

S-19100xxxA Series FOR AUTOMOTIVE 125 C OPERATION VOLTAGE DETECTOR BUILT-IN DELAY CIRCUIT (EXTERNAL DELAY TIME SETTING) Features.

IS31FL3236A 36-CHANNEL LED DRIVER; SELECTABLE PWM FREQUENCY IS31FL3236A. February 2018

HD (80-Channel Column/Common Driver for Middle- or Large-sized Liquid Crystal Panel)

Block Diagram , E I F = O 4 ) + J H 6 E E C + E H? K E J +,, H E L A H * E = I + E H? K E J + + % 8,, % 8 +, * * 6 A. H A G K A? O

ETM45E-05. Application Manual. Real Time Clock Module RX8900SA CE. Preliminary

IS31FL CHANNELS LED DRIVER. February 2018

Features. Description PT7C4563B. Real-time Clock Module (I2C Bus)

I2C, 32-Bit Binary Counter Watchdog RTC with Trickle Charger and Reset Input/Output

10-Bit, Low-Power, 2-Wire Interface, Serial, Voltage-Output DAC

ABLIC Inc., Rev.8.1_02

16-Port I/O Expander with LED Intensity Control, Interrupt, and Hot-Insertion Protection

Low current consumption : 0.4 ma typ. Driver output current : 70 ma max. 5 MHz (cascade connection) Selectable H/L for latch and driver enable

ABLIC Inc., Rev.2.2_02

LI-M021C-MIPI Data Sheet

IDT1337 REAL-TIME CLOCK WITH I 2 C SERIAL INTERFACE. Features. General Description. Applications. Block Diagram DATASHEET

IS31FL3209 IS31FL CHANNELS LED DRIVER; 1/24 DC SCALING WHITE BALANCE. December 2017

S3C9442/C9444/F9444/C9452/C9454/F9454

7 OUT1 8 OUT2 9 OUT3 10 OUT4 11 OUT5 12 OUT6 13 OUT7 14 OUT8 15 OUT9 16 OUT10 17 OUT11 18 OUT12 19 OUT13 20 OUT14 21 OUT15 22 OUT16 OUT17 23 OUT18

S-8426A Series BATTERY BACKUP SWITCHING IC. Features. Applications. Packages. ABLIC Inc., Rev.2.0_03

IZ602 LCD DRIVER Main features: Table 1 Pad description Pad No Pad Name Function

IS31FL3208A 18-CHANNEL LED DRIVER; SELECTABLE PWM FREQUENCY. August 2018

Transcription:

Rev.2.4_ 2-WIRE REAL-TIME CLOCK The is a CMOS 2-wire real-time clock IC which operates with the very low current consumption and in the wide range of operation voltage. The operation voltage is 1.3 V to 5.5 V so that this IC can be used for various power supplies from main supply to backup battery. Due to the.25 µa current consumption and wide range of power supply voltage at time keeping, this IC makes the battery life longer. In the system which operates with a backup battery, the included free registers can be used as the function for user s backup memory. Users always can take back the information in the registers which is stored before power-off the main power supply, after the voltage is restored. This IC has the function to correct advance/delay of the clock data speed, in the wide range, which is caused by the oscillation circuit s frequency deviation. Correcting according to the temperature change by combining this function and a temperature sensor, it is possible to make a high precise clock function which is not affected by the ambient temperature. Features Low current consumption :.25 µa typ. (V DD = 3. V, Ta = 25 C) Wide range of operating voltage : 1.3 to 5.5 V Built-in clock-correction function Built-in free user register 2-wire (I 2 C-bus) CPU interface Built-in alarm interrupter Built-in flag generator during detection of low power voltage or at power-on Auto calendar up to the year 299, automatic leap year calculation function Built-in constant voltage circuit Built-in 32.768 khz crystal oscillator (C d built in, C g external) Packages : 8-Pin SOP (JEDEC), 8-Pin TSSOP, SNT-8A. Lead-free product Applications Mobile game devices Mobile AV devices Digital still cameras Digital video cameras Electronic power meters DVD recorders TVs, VCRs Mobile phones, PHS Car navigation Packages Package Name Drawing Code Package Tape Reel Land 8-Pin SOP (JEDEC) FJ8-A FJ8-D FJ8-D 8-Pin TSSOP FT8-A FT8-E FT-8E SNT-8A PH8-A PH8-A PH8-A PH8-A Seiko Instruments Inc. 1

2-WIRE REAL-TIME CLOCK Rev.2.4_ Pin Configuration 8-Pin SOP (JEDEC) Top view INT1 1 8 VDD XOUT 2 7 XIN 3 6 SCL VSS 4 5 INT2 Figure 1 Pin Configuration (-J8T1G) INT1 XOUT XIN VSS 1 2 3 4 8-Pin TSSOP Top view 8 7 6 5 VDD SCL INT2 Figure 2 Pin Configuration (-T8T1G) SNT-8A Top view INT1 XOUT XIN VSS 1 2 3 4 8 7 6 5 VDD SCL INT2 Figure 3 Pin Configuration (-I8T1G) List of Pin Table 1 Pin No. Symbol Description I/O Configuration 1 INT 1 2 XOUT 3 XIN Output pin for interrupt signal 1 Connection pin for crystal oscillator Output Nch open-drain output (no protective diode at VDD) 4 VSS GND pin 5 INT 2 6 SCL Output pin for interrupt signal 2 Input pin for serial clock Output Input 7 I/O pin for serial data Bi-directional 8 VDD Pin for positive power supply Nch open-drain output (no protective diode at VDD) CMOS input (no protective diode at VDD) Nch open-drain output (no protective diode at VDD) CMOS input 2 Seiko Instruments Inc.

Rev.2.4_ 2-WIRE REAL-TIME CLOCK Pin Function (I/O for serial data) pin This pin is to data input/output for I 2 C-bus interface. This pin inputs/outputs data by synchronizing with a clock pulse from the SCL pin. This pin has CMOS input and Nch open drain output. Generally in use, pull up this pin to the VDD potential via a resistor, and connect it to any other device having open drain or open collector output with wired-or connection. SCL (input for serial clock) pin This pin is to input a clock pulse for I 2 C-bus interface. The pin inputs/outputs data by synchronizing with the clock pulse. XIN, XOUT (crystal oscillator connect) pin Connect a crystal oscillator between XIN and XOUT. INT 1 (output for interrupt signal 1) pin This pin outputs a signal of interrupt, or a clock pulse. By using the status register 2, users can select either of; alarm 1 interrupt, output of user-set frequency, per-minute edge interrupt, minute-periodical interrupt 1, minute-periodical interrupt 2, or 32.768 khz output. This pin has Nch open drain output. INT 2 (output for interrupt signal 2) pin This pin outputs a signal of interrupt, or a clock pulse. By using the status register 2, users can select either of; alarm 2 interrupt, output of user-set frequency, per-minute edge interrupt or minute-periodical interrupt 1. This pin has Nch open drain output. VDD (positive power supply) pin Connect this VDD pin with a positive power supply. Regarding the values of voltage to be applied, refer to Recommended Operation Conditions. VSS pin Connect this VSS pin to GND. Equivalent Circuits of I/O Pin SCL Figure 4 Pin Figure 5 SCL Pin INT1, INT2 Figure 6 INT1 Pin, INT2 Pin Seiko Instruments Inc. 3

2-WIRE REAL-TIME CLOCK Rev.2.4_ Block Diagram XIN XOUT Oscillator Diviver, timing generator INT1 register INT1 controller INT1 Clock correction register Status register 1 Status register 2 Free register Comparator 1 Second Minute Hour Comparator 2 Real-time data register Day of Day Month Year the week VDD Low power supply voltage detector INT2 register INT2 controller INT2 VSS Power-on detector Constant-voltage circuit Shift register Serial interface SCL Figure 7 4 Seiko Instruments Inc.

Rev.2.4_ 2-WIRE REAL-TIME CLOCK Absolute Maximum Ratings Table 2 Parameter Symbol Applicable Pin Rating Unit Power supply voltage V DD V SS.3 to V SS + 6.5 V Input voltage V IN SCL, V SS.3 to V SS + 6.5 V Output voltage V OUT, INT1, INT2 V SS.3 to V SS + 6.5 V Operating ambient temperature *1 T opr 4 to +85 C Storage temperature T stg 55 to +125 C *1. Conditions with no condensation or frost. Condensation and frost cause short circuiting between pins, resulting in a malfunction. Caution The absolute maximum ratings are rated values exceeding which the product could suffer physical damage. These values must therefore not be exceeded under any conditions. Recommended Operation Conditions Table 3 (V SS = V) Parameter Symbol Conditions Min. Typ. Max. Unit Power supply voltage *1 V DD Ta = 4 to +85 C 1.3 3. 5.5 V Time keeping power supply voltage *2 V DDT Ta = 4 to +85 C V DET.15 5.5 V Crystal oscillator C L value C L 6 7 pf *1. The power supply voltage that allows communication under the conditions shown in Table 8 of AC Electrical Characteristics. *2. The power supply voltage that allows time keeping. For the relationship with V DET (low power supply voltage detection voltage), refer to Characteristics (Typical Data). Oscillation Characteristics Table 4 (Ta = 25 C, V DD = 3. V, V SS = V, VT-2 crystal oscillator (C L = 6 pf, 32.768 khz) manufactured by Seiko Instruments Inc.) Parameter Symbol Conditions Min. Typ. Max. Unit Oscillation start voltage V STA Within 1 seconds 1.1 5.5 V Oscillation start time t STA 1 s IC-to-IC frequency deviation *1 δic 1 +1 ppm Frequency voltage deviation δv V DD = 1.3 to 5.5 V 3 +3 ppm/v External capacitance C g Applied to XIN pin 9.1 pf Internal oscillation capacitance C d Applied to XOUT pin 8 pf *1. Reference value Seiko Instruments Inc. 5

2-WIRE REAL-TIME CLOCK Rev.2.4_ DC Electrical Characteristics Table 5 DC Characteristics (V DD = 3. V) (Ta = 4 to +85 C, V SS = V,VT-2 crystal oscillator (C L = 6 pf, 32.768 khz, C g = 9.1 pf) manufactured by Seiko Instruments Inc.) Parameter Symbol Applicable Pin Conditions Min. Typ. Max. Unit Current consumption 1 I DD1 Out of communication.25.93 µa Current consumption 2 I DD2 During communication (SCL = 1 khz) 6 14 µa Input current leakage 1 I IZH SCL, V IN = V DD.5.5 µa Input current leakage 2 I IZL SCL, V IN = V SS.5.5 µa Output current leakage 1 I OZH, INT 1, INT 2 V OUT = V DD.5.5 µa Output current leakage 2 I OZL, INT 1, INT 2 V OUT = V SS.5.5 µa Input voltage 1 V IH SCL,.8 V DD V SS + 5.5 V Input voltage 2 V IL SCL, V SS.3.2 V DD V Output current 1 I OL1 INT 1, INT 2 V OUT =.4 V 3 5 ma Output current 2 I OL2 V OUT =.4 V 5 1 ma Power supply voltage detection voltage V DET.65 1 1.35 V Table 6 DC Characteristics (V DD = 5. V) (Ta = 4 to +85 C, V SS = V, VT-2 crystal oscillator (C L = 6 pf, 32.768 khz, C g = 9.1 pf) manufactured by Seiko Instruments Inc.) Parameter Symbol Applicable Pin Conditions Min. Typ. Max. Unit Current consumption 1 I DD1 Out of communication.3 1.1 µa Current consumption 2 I DD2 During communication (SCL = 1 khz) 14 3 µa Input current leakage 1 I IZH SCL, V IN = V DD.5.5 µa Input current leakage 2 I IZL SCL, V IN = V SS.5.5 µa Output current leakage 1 I OZH, INT 1, INT 2 V OUT = V DD.5.5 µa Output current leakage 2 I OZL, INT 1, INT 2 V OUT = V SS.5.5 µa Input voltage 1 V IH SCL,.8 V DD V SS + 5.5 V Input voltage 2 V IL SCL, V SS.3.2 V DD V Output current 1 I OL1 INT 1, INT 2 V OUT =.4 V 5 8 ma Output current 2 I OL2 V OUT =.4 V 6 13 ma Power supply voltage detection voltage V DET.65 1 1.35 V 6 Seiko Instruments Inc.

Rev.2.4_ 2-WIRE REAL-TIME CLOCK AC Electrical Characteristics Table 7 Measurement Conditions V DD Input pulse voltage Input pulse rise/fall time Output determination voltage Output load V IH =.9 V DD, V IL =.1 V DD 2 ns V OH =.5 V DD, V OL =.5 V DD 1 pf + pull-up resistor 1 kω R = 1 kω C = 1 pf Remark The power supplies of the IC and load have the same electrical potential. Figure 8 Output Load Circuit Table 8 AC Electrical Characteristics (Ta = 4 to +85 C) Parameter Symbol V *2 DD 1.3 V V *2 DD 3. V Min. Typ. Max. Min. Typ. Max. Unit SCL clock frequency f SCL 1 4 khz SCL clock low time t LOW 4.7 1.3 µs SCL clock high time t HIGH 4.6 µs output delay time *1 t PD 3.5.9 µs Start condition setup time t SU.STA 4.7.6 µs Start condition hold time t HD.STA 4.6 µs Data input setup time t SU.DAT 25 1 ns Data input hold time t HD.DAT µs Stop condition setup time t SU.STO 4.7.6 µs SCL, rise time t R 1.3 µs SCL, fall time t F.3.3 µs Bus release time t BUF 4.7 1.3 µs Noise suppression time t I 1 5 ns *1. Since the output format of the pin is Nch open-drain output, output delay time is determined by the values of the load resistance (R L ) and load capacity (C L ) outside the IC. Therefore, use this value only as a reference value. *2. Regarding the power supply voltage, refer to Recommended Operation Conditions. t F t HIGH t LOW t R SCL tsu.sta t HD.STA t HD.DAT tsu.dat t SU.STO (Input from ) t PD t BUF (Output from ) Figure 9 Bus Timing Seiko Instruments Inc. 7

2-WIRE REAL-TIME CLOCK Rev.2.4_ Configuration of Data Communication 1. Configuration of data communication For data communication, the master device in the system generates a start condition for the. Next, the master device transmits 4-bit device code 11, 3-bit command and 1-bit Read/Write command to the bus. After that, output or input is performed from B7 of data. If data I/O has been completed, finish communication by inputting a stop condition to the. The master device generates an acknowledgment signal for every 1-byte. Regarding details, refer to Serial Interface. Start condition Device code Command Read/Write bit Acknowledgment bit STA 1 1 C2 C1 C R / W ACK 1-byte data Stop condition B7 B6 B5 B4 B3 B2 B1 B ACK STP Figure 1 Data Communication 8 Seiko Instruments Inc.

Rev.2.4_ 2-WIRE REAL-TIME CLOCK 2. Configuration of command 8 types of command are available for the, The does Read/Write the various registers by inputting these codes and commands. The does not perform any operation with any codes and commands other than those below. Table 9 List of Command Device Command Data Code C2 C1 C Description B7 B6 B5 B4 B3 B2 B1 B Status register 1 access RESET *1 12/ 24 SC *2 SC1 *2 INT1 *3 INT2 *3 BLD *4 POC *4 1 Status register 2 access INT1FE INT1ME INT1AE 32kE INT2FE INT2ME INT2AE TEST *5 11 1 1 1 1 1 1 Real-time data 1 access (year data to) Real-time data 2 access (hour data to) INT1 register access (alarm time 1: week/hour/minute) (INT1AE = 1, INT1ME =, INT1FE = ) INT1 register access (output of user-set frequency) (INT1ME =, INT1FE = 1) INT2 register access (alarm time 2: week/hour/minute) (INT2AE = 1, INT2ME =, INT2FE = ) INT2 register access (output of user-set frequency) (INT2ME =, INT2FE = 1) Y1 M1 D1 W1 H1 m1 s1 H1 m1 s1 W1 H1 m1 Y2 M2 D2 W2 H2 m2 s2 H2 m2 s2 W2 H2 m2 Y4 M4 D4 W4 H4 m4 s4 H4 m4 s4 W4 H4 m4 Y8 M8 D8 *6 H8 m8 s8 H8 m8 s8 *6 H8 m8 Y1 M1 D1 *6 H1 m1 s1 H1 m1 s1 *6 H1 m1 Y2 *6 D2 *6 H2 m2 s2 H2 m2 s2 *6 H2 m2 Y4 *6 *6 *6 AM/ PM m4 s4 AM/PM m4 s4 *6 PM AM/ m4 Y8 *6 *6 *6 *6 *6 *6 *6 *6 *6 A1WE A1HE A1mE 1 Hz 2 Hz 4 Hz 8 Hz 16 Hz SC2 *2 SC3 *2 SC4 *2 W1 H1 m1 W2 H2 m2 W4 H4 m4 *6 H8 m8 *6 H1 m1 *6 H2 m2 *6 PM AM/ m4 A2WE A2HE A2mE 1 Hz 2 Hz 4 Hz 8 Hz 16 Hz SC5 *2 SC6 *2 SC7 *2 1 1 Clock correction register access V V1 V2 V3 V4 V5 V6 V7 1 1 1 Free register access F F1 F2 F3 F4 F5 F6 F7 *1. Write-only flag. The initializes by writing 1 in this register. *2. Scratch bit. A R/W-enabled, user-free register. *3. Read-only flag. Valid only when using the alarm function. When the alarm time matches, this flag is set to 1, and it is cleared to when Read. *4. Read-only flag. POC is set to 1 when power is applied. It is cleared to when Read. Regarding BLD, refer to Low Power Supply Voltage Detection Circuit. *5. Test bit for SII. Be sure to set in use. *6. No effect by Write. It is when Read. Seiko Instruments Inc. 9

2-WIRE REAL-TIME CLOCK Rev.2.4_ Configuration of Register 1. Real-time data register The real-time data register is a 7-byte register that stores the data of year, month, day, day of the week, hour, minute, and second in the BCD code. To Write/Read real-time data 1 access, transmit/receive the data of year in B7, month, day, day of the week, hour, minute, second in B, in 7-byte. When you skip the procedure to access the data of year, month, day, day of the week, Read/Write real-time data 2 access. In this case, transmit/receive the data of hour in B7, minute, second in B, in 3-byte. Year data ( to 99) Start bit of real-time data 1 data access Y1 Y2 Y4 Y8 Y1 Y2 Y4 Y8 B7 B Month data (1 to 12) M1 M2 M4 M8 M1 B7 B Day data (1 to 31) D1 D2 D4 D8 D1 D2 B7 B Day of the week data ( to 6) W1 W2 W4 B7 B Hour data ( to 23 or to 11) Start bit of real-time data 2 data access H1 H2 H4 H8 H1 H2 AM / PM B7 B Minute data ( to 59) m1 m2 m4 m8 m1 m2 m4 B7 B Second data ( to 59) s1 B7 s2 s4 s8 s1 s2 s4 B Figure 11 Real-Time Data Register 1 Seiko Instruments Inc.

Rev.2.4_ 2-WIRE REAL-TIME CLOCK Year data ( to 99): Y1, Y2, Y4, Y8, Y1, Y2, Y4, Y8 Sets the lower two digits of the Western calendar year ( to 99) and links together with the auto calendar function until 299. Example: 253 (Y1, Y2, Y4, Y8, Y1, Y2, Y4, Y8) = (1, 1,,, 1,, 1, ) Month data (1 to 12): M1, M2, M4, M8, M1 Example: December (M1, M2, M4, M8, M1,,, ) = (, 1,,, 1,,,) Day data (1 to 31): D1, D2, D4, D8, D1, D2 The count value is automatically changed by the auto calendar function. 1 to 31: Jan., Mar., May, July, Aug., Oct., Dec., 1 to 3: April, June, Sep., Nov. 1 to 29: Feb. (leap year), 1 to 28: Feb. (non-leap year) Example: 29 (D1, D2, D4, D8, D1, D2,, ) = (1,,, 1,, 1,, ) Day of the week data ( to 6): W1, W2, W4 A septenary up counter. Day of the week is counted in the order of, 1, 2,, 6, and. Set up day of the week and the count value. Hour data ( to 23 or to 11): H1, H2, H4, H8, H1, H2, AM / PM In a 12-hour expression, write ; AM, 1; PM in the AM / PM bit. In a 24-hour expression, users can Write either or 1. is read when the hour data is from to 11, and 1 is read when from 12 to 23. Example (12-hour expression): 12 p.m. (H1, H2, H4, H8, H1, H2, AM/PM, ) = (, 1,,, 1,, 1, ) Example (24-hour expression): 22 (H1, H2, H4, H8, H1, H2, AM/PM, ) = (, 1,,,, 1, 1, ) Minute data ( to 59): m1, m2, m4, m8, m1, m2, m4 Example: 32 minutes (m1, m2, m4, m8, m1, m2, m4, ) = (, 1,,, 1, 1,, ) Example: 55 minutes (m1, m2, m4, m8, m1, m2, m4, ) = (1,, 1,, 1,, 1, ) Second data ( to 59): s1, s2, s4, s8, s1, s2, s4 Example: 19 seconds (s1, s2, s4, s8, s1, s2, s4, ) = (1,,, 1, 1,,, ) Seiko Instruments Inc. 11

2-WIRE REAL-TIME CLOCK Rev.2.4_ 2. Status register 1 Status register 1 is a 1-byte register that is used to display and set various modes. The bit configuration is shown below. B7 B6 B5 B4 B3 B2 B1 B RESET 12 / 24 SC SC1 INT1 INT2 BLD POC W R/W R/W R/W R R R R Figure 12 Status Register 1 R: Read W: Write R/W: Read/Write B : POC This flag is used to confirm whether the power is on. The power-on detector operates at power-on and B is set to 1. This flag is Read-only. Once it is read, it is automatically set to. When this flag is 1, be sure to initialize. Regarding the operation after power-on, refer to Power-on Detection Circuit and Register Status. B1 : BLD This flag is set to 1 when the power supply voltage decreases to the level of detection voltage (V DET ) or less. Users can detect a drop in the power supply voltage. This flag is set to 1 once, is not set to again even if the power supply increases to the level of detection voltage (V DET ) or more. This flag is Read-only. When this flag is 1, be sure to initialize. Regarding the operation of the power supply voltage detection circuit, refer to Low Power Supply Detection Circuit. B2 : INT2, B3 : INT1 This flag indicates the time set by alarm and when the time has reached it. This flag is set to 1 when the time that users set by using the alarm interrupt function has come. The INT1 flag in 1 at alarm 1 interrupt mode, the INT2 flag in 1 at alarm 2 interrupt mode. This flag is Read-only. This flag is read once, is set to automatically. B4 : SC1, B5 : SC These flags are SRAM type registers, they are 2 bits as a whole, can be freely set by users. B6 : 12 / 24 This flag is used to set 12-hour or 24-hour expression. : 12-hour expression 1 : 24-hour expression B7 : RESET The internal IC is initialized by setting this bit to 1. This bit is Write-only. It is always when Read. When applying the power supply voltage to the IC, be sure to write 1 to this bit to initialize the circuit. Regarding each status of data after initialization, refer to Register Status After Initialization. 12 Seiko Instruments Inc.

Rev.2.4_ 2-WIRE REAL-TIME CLOCK 3. Status register 2 Status register 2 is a 1-byte register that is used to display and set various modes. The bit configuration is shown below. B7 B6 B5 B4 B3 B2 B1 B INT1FE INT1ME INT1AE 32kE INT2FE INT2ME INT2AE TEST R/W R/W R/W R/W R/W R/W R/W R/W R/W: Read/Write Figure 13 Status Register 2 B : TEST This is a test flag for SII. Be sure to set this flag to in use. If this flag is set to 1, be sure to initialize to set. B1 : INT2AE, B2 : INT2ME, B3 : INT2FE These bits are used to select the output mode for the INT 2 pin. Table 1 shows how to select the mode. To use an alarm 2 interrupt, set alarm interrupt mode, then access the INT2 register. Table 1 Output Modes for INT 2 Pin INT2AE INT2ME INT2FE INT 2 Pin Output Mode No interrupt *1 1 Output of user-set frequency *1 1 Per-minute edge interrupt *1 1 1 Minute-periodical interrupt 1 (5% duty) 1 Alarm 2 interrupt *1. Don t care (Both of and 1 are acceptable). B4 : 32kE, B5 : INT1AE, B6 : INT1ME, B7 : INT1FE These bits are used to select the output mode for the INT 1 pin. Table 11 shows how to select the mode. To use alarm 1 interrupt, access the INT1 register after setting the alarm interrupt mode. Table 11 Output Modes for INT 1 Pin 32kE INT1AE INT1ME INT1FE INT 1 Pin Output Mode No interrupt *1 1 Output of user-set frequency *1 1 Per-minute edge interrupt 1 1 Minute-periodical interrupt 1 (5% duty) 1 Alarm 1 interrupt 1 1 1 Minute-periodical interrupt 2 1 *1 *1 *1 32.768 khz output *1. Don t care (Both of and 1 are acceptable). Seiko Instruments Inc. 13

2-WIRE REAL-TIME CLOCK Rev.2.4_ 4. INT1 register and INT2 register The INT1 and INT2 registers are to set up the output of user-set frequency, or to set up alarm interrupt. Users are able to switch the output mode by using the status register 2. If selecting to use the output mode for alarm interrupt by status register 2; these registers work as alarm-time data registers. If selecting the output of user-set frequency by status register 2; these registers work as data registers to set the frequency for clock output. From each INT1 and INT2 pin, a clock pulse and alarm interrupt are output. (1) Alarm interrupt Users can set the alarm time (the data of day of the week, hour, minute) by using the INT1 and INT2 registers which are 3-byte data registers. The configuration of register is as well as the data register of day of the week, hour, minute, in the real-time data register; is expressed by the BCD code. Do not set a nonexistent day. Users are necessary to set up the alarm-time data according to the 12/24 hour expression that they set by using the status register 1. INT1 register INT2 register W1 W2 W4 A1WE W1 W2 W4 A2WE B7 B B7 B H1 H2 H4 H8 H1 H2 AM / PM A1HE H1 H2 H4 H8 H1 H2 AM / PM A2HE B7 B B7 B m1 m2 m4 m8 m1 m2 m4 A1mE m1 m2 m4 m8 m1 m2 m4 A2mE B7 B B7 Figure 14 INT1 Register and INT2 Register (Alarm-Time Data) B The INT1 register has A1WE, A1HE, A1mE at B in each byte. It is possible to make data valid; the data of day of the week, hour, minute which are in the corresponded byte; by setting these bits to 1. This is as well in A2WE, A2HE, A2mE in the INT2 register. Setting example: alarm time 7: pm in the INT1 register (a) 12-hour expression (status register 1 B6 = ) set up 7: PM Data written to INT1 register Day of the week *1 *1 *1 *1 *1 *1 *1 Hour 1 1 1 1 1 Minute 1 B7 B *1. Don t care (Both of and 1 are acceptable). (b) 24-hour expression (status register 1 B6 = 1) set up 19: PM Data written to INT1 register Day of the week *1 *1 *1 *1 *1 *1 *1 Hour 1 1 1 1 *2 1 Minute 1 B7 B *1. Don t care (Both of and 1 are acceptable). *2. Set up the AM / PM flag along with the time setting. 14 Seiko Instruments Inc.

Rev.2.4_ 2-WIRE REAL-TIME CLOCK (2) Output of user-set frequency The INT1 and INT2 registers are 1-byte data registers to set up the output frequency. Setting each bit B7 to B3 in the register to 1, the frequency which corresponds to the bit is output in the AND-form. SC2 to SC4 in the INT1 register, and SC5 to SC7 in the INT2 register are 3-bit SRAM type registers that can be freely set by users. B7 B6 B5 B4 B3 B2 B1 B 1 Hz 2 Hz 4 Hz 8 Hz 16 Hz SC2 SC3 SC4 R/W R/W R/W R/W R/W R/W R/W R/W R/W: Read/Write Figure 15 INT1 Register (Data Register for Output Frequency) B7 B6 B5 B4 B3 B2 B1 B 1 Hz 2 Hz 4 Hz 8 Hz 16 Hz SC5 SC6 SC7 R/W R/W R/W R/W R/W R/W R/W R/W Example: B7 to B3 = 5h R/W: Read/Write Figure 16 INT2 Register (Data Register for Output Frequency) 16 Hz 8 Hz 4 Hz 2 Hz 1 Hz INT1 pin or INT2 pin output Status register 2 Set to INT1FE or INT2FE = 1 Figure 17 Example of Output from INT1 and INT2 Registers (Data Register for Output Frequency) Seiko Instruments Inc. 15

2-WIRE REAL-TIME CLOCK Rev.2.4_ 5. Clock-correction register The clock-correction register is a 1-byte register that is used to correct advance/delay of the clock. When not using this function, set this register to h. Regarding the register values, refer to Function to Clock-Correction. B7 B6 B5 B4 B3 B2 B1 B V V1 V2 V3 V4 V5 V6 V7 R/W R/W R/W R/W R/W R/W R/W R/W Figure 18 Clock-Correction Register R/W: Read/Write 6. Free register This free register is a 1-byte SRAM type register that can be set freely by users. B7 B6 B5 B4 B3 B2 B1 B F F1 F2 F3 F4 F5 F6 F7 R/W R/W R/W R/W R/W R/W R/W R/W R/W: Read/Write Figure 19 Free Register 16 Seiko Instruments Inc.

Rev.2.4_ 2-WIRE REAL-TIME CLOCK Power-on Detector and Register Status The power-on detection circuit operates by power-on the, as a result each register is cleared; each register is set as follows. Real-time data register : Status register 1 : Status register 2 : INT1 register : INT2 register : Clock correction register : Free register : (Y), 1 (M), 1 (D), (day of the week), (H), (M), (S) 1h 1h 8h h h h 1 is set in the POC flag (B in the status register 1) to indicate that power has been applied. To correct the oscillation frequency, the status register 2 goes in the mode the output of user-set frequency, so that 1 Hz clock pulse is output from the INT 1 pin. When 1 is set in the POC flag, be sure to initialize. The POC flag is set to due to initialization so that the output of user-set frequency mode is cleared. (Refer to Register Status After Initialization.) For the regular operation of power-on detection circuit, as seen in Figure 2, the period to power-up the is that the voltage reaches 1.3 V within 1 ms after setting the IC s power supply voltage at V. When the power-on detection circuit is not working normally is; the POC flag (B in the status register) is not in 1, or 1 Hz is not output from the INT 1 pin. In this case, power-on the once again because the internal data may be in the indefinite status. Do not transmit data immediately after power-on at least.5 sec because the power-on detection circuit is operating. Within 1 ms 1.3 V V *1 *1. V indicates that there are no potential differences between the VDD pin and VSS pin of the. Figure 2 How to Raise the Power Supply Voltage Seiko Instruments Inc. 17

2-WIRE REAL-TIME CLOCK Rev.2.4_ Register Status After Initialization The status of each register after initialization is as follows. Real-time data register : (Y), 1 (M), 1 (D), (day of the week), (H), (M), (S) Status register 1 : B6 B5 B4 b (In B6, B5, B4, the data of B6, B5, B6 in the status register 1 at initialization is set. Refer to Figure 21.) Status register 2 : h INT1 register : h INT2 register : h Clock correction register : h Free register : h Write to status register 1 Read from status register 1 1 9 18 1 9 18 SCL R/W R/W START 1 1 ACK 1 1 ACK STOP START ACK NO_ACK 1 1 1 L L H L L L L L STOP Device code + command B7 B5 Write 1 to reset flag and SC. Device code + command B7 B5 : Not reset : Output from : Input from master device Figure 21 Data of Status Register 1 at Initialization 18 Seiko Instruments Inc.

Rev.2.4_ 2-WIRE REAL-TIME CLOCK Low Power Supply Voltage Detection Circuit The has a low power supply voltage detection circuit, so that users can monitor drops in the power supply voltage by reading the BLD flag (B1 in the status register 1). There is a hysteresis width of approx..15 V (Typ.) between detection voltage and release voltage (refer to Characteristics (Typical Data) ). The low power supply voltage detection circuit does the sampling operation only once in one sec for 15.6 ms. If the power supply voltage decreases to the level of detection voltage (V DET ) or less, 1 is set to the BLD flag so that sampling operation stops. Once 1 is detected in the BLD flag, no sampling operation is performed even if the power supply voltage increases to the level of release voltage or more, and 1 is held in the BLD flag. After initialization, or once the BLD flag is read, the BLD flag is automatically set to to restart the sampling operation. If the BLD flag is 1 even after the power supply voltage is recovered, the internal circuit may be in the indefinite status. In this case, be sure to initialize the circuit. Without initializing, Read in the next BLD flag is done after sampling, the BLD flag gets reset to. In this case, be sure to initialize although the BLD flag is in because the internal circuit may be in the indefinite status. V DD Detection voltage Hysteresis width.15 V approximately Release voltage BLD flag reading Sampling pulse 15.6 ms 1 s 1 s Stop Stop Stop BLD flag Figure 22 Timing of Low Power Supply Voltage Detection Circuit Circuits Power-on and Low Power Supply Voltage Detection Figure 23 shows the changes of the POC flag and BLD flag due to V DD fluctuation. V DD Low power supply voltage detection voltage Low power supply voltage detection voltage V SS POC flag BLD flag Status register 1 reading Figure 23 POC Flag and BLD Flag Seiko Instruments Inc. 19

2-WIRE REAL-TIME CLOCK Rev.2.4_ Correction of Nonexistent Data and End-of-Month When users write the real-time data, the checks it. In case that the data is invalid, the does the following procedures. 1. Processing of nonexistent data Table 12 Processing of Nonexistent Data Register Normal Data Nonexistent Data Result Year data to 99 XA to XF, AX to FX Month data 1 to 12, 13 to 19, XA to XF 1 Day data 1 to 31, 32 to 39, XA to XF 1 Day of the week data to 6 7 Hour data *1 24-hour to 23 24 to 29, 3X, XA to XF 12-hour to 11 12 to 19, 2X, 3X, XA to XF Minute data to 59 6 to 79, XA to XF Second data *2 to 59 6 to 79, XA to XF *1. In a 12-hour expression, Write the AM / PM flag (B1 in hour data in the real-time data register). In 24-hour expression, the AM / PM flag in the real-time data register is omitted. However in the flag in Read, users are able to read ; to 11, 1; 12 to 23. *2. Processing of nonexistent data, regarding second data, is done by a carry pulse which is generated one sec after, after Write. At this point the carry pulse is sent to the minute-counter. 2. Correction of end-of-month A nonexistent day, such as February 3 and April 31, is set to the first day of the next month. 2 Seiko Instruments Inc.

Rev.2.4_ 2-WIRE REAL-TIME CLOCK INT 1 Pin and INT 2 Pin Output Mode These are selectable for the output mode for INT 1 and INT 2 pins; Alarm interrupt, the output of user-set frequency, per-minute edge interrupt output, minute-periodical interrupt output 1. In the INT 1 pin output mode, in addition to the above modes, minute-periodical interrupt output 2 and 32.768 khz output are also selectable. To switch the output mode, use the status register 2. Refer to 3. Status register 2 in Configuration of Register. When switching the output mode, be careful of the output status of the pin. Especially, when using alarm interrupt/output of frequency, switch the output mode after setting h in the INT1/INT2 register. In 32.768 khz output/per-minute edge interrupt output/minute-periodical interrupt output, it is unnecessary to set data in the INT1/INT2 register for users. Refer to the followings regarding each operation of output modes. 1. Alarm interrupt output Alarm interrupt output is the function to output L from the INT 1/ INT 2 pin, at the alarm time which is set by user has come. If setting the pin output to H, turn off the alarm function by setting in INT1AE/INT2AE in the status register 2. To set the alarm time, set the data of day of the week, hour and minute in the INT1/INT2 register. Refer to 4. INT1 register and INT2 register in Configuration of Register. Alarm setting of W (day of the week), H (hour), m (minute) Status register 2 setting INT1 pin output mode 32kE =, INT1ME = INT1FE = INT2 pin output mode INT2ME = INT2FE = INT1 register INT2 register INTx register alarm enable flag AxHE = AxmE = AxWE = "1" mx Hx Wx Comparator Alarm interrupt Second Minute Hour Day of the week Day Month Year Real-time data W (day of the week) Real-time data H h (m 1) m 59 s H h m s 1 s 59 s H h (m + 1) m s Change by program Change by program Change by program INT1AE/INT2AE *1 Alarm time matches INT1 pin/int2 pin OFF Period when alarm time matches *1. If users clear INT1AE/INT2AE once; L is not output from the INT 1/ INT 2 pin by setting INT1AE/INT2AE enable again, within a period when the alarm time matches real-time data. Figure 24 Alarm Interrupt Output Timing (1/2) Seiko Instruments Inc. 21

2-WIRE REAL-TIME CLOCK Rev.2.4_ Alarm setting of H (hour) Status register 2 setting INT1 pin output mode 32kE =, INT1ME = INT1FE = INT2 pin output mode INT2ME = INT2FE = INTx register alarm enable flag AxHE = AxmE = AxWE = "1" INT1 register INT2 register mx Hx Wx Dx Mx Yx Comparator Alarm interrupt Second Minute Hour Day of the week Day Month Year Real-time data Real-time data (H 1) h 59 m 59 s H h m s 1 s 59 s H h 1 m s H h 59 m 59 s (H + 1) h m s Change by program Change by program Change by program Change by program INT1AE/INT2AE INT1 pin/int2 pin Alarm time matches OFF *1 *1 Alarm time matches *2 OFF Period when alarm time matches *1. If users clear INT1AE/INT2AE once; L is not output from the INT 1/ INT 2 pin by setting INT1AE/INT2AE enable again, within a period when the alarm time matches real-time data. *2. If turning the alarm output on by changing the program, within the period when the alarm time matches real-time data, L is output again from the INT 1/ INT 2 pin when the minute is counted up. 2. Output of user-set frequency Figure 25 Alarm Interrupt Output Timing (2/2) The output of user-set frequency is the function to output the frequency which is selected by using data, from the INT 1/ INT 2 pin, in the AND-form. Set up the data of frequency in the INT1/INT2 register. Refer to 4. INT1 register and INT2 register in Configuration of Register. Status register 2 setting INT1 pin output mode 32kE =, INT1AE = Don t care ( or 1), INT1ME = INT2 pin output mode INT2AE = Don t care ( or 1), INT2ME = Change by program INT1FE/INT2FE Free-run output starts OFF INT1 pin/int2 pin 22 Figure 26 Output Timing of User-set Frequency Seiko Instruments Inc.

Rev.2.4_ 2-WIRE REAL-TIME CLOCK 3. Per-minute edge interrupt output Per-minute edge interrupt output is the function to output L from the INT 1/ INT 2 pin, when the first minute-carry processing is done, after selecting the output mode. To set the pin output to H, turn off the output mode of per-minute edge interrupt. In the INT 1 pin output mode, input in INT1ME in the status register 2. In the INT 2 pin output mode, input in INT2ME. Status register 2 setting INT1 pin output mode 32kE =, INT1AE = Don t care ( or 1), INT1FE = INT2 pin output mode INT2AE = Don t care ( or 1), INT2FE = Change by program INT1ME/INT2ME Minute-carry processing OFF Minute-carry processing INT1 pin/int2 pin "L" is output again if this period is within 7.9 ms *1. *1. Pin output is set to H by disabling the output mode within 7.9 ms, because the signal of this procedure is maintained for 7.9 ms. Note that pin output is set to L by setting enable the output mode again. Figure 27 Timing of Per-Minute Edge Interrupt Output 4. Minute-periodical interrupt output 1 The minute-periodical interrupt 1 is the function to output the one-minute clock pulse (Duty 5%) from the INT 1/ INT 2 pin, when the first minute-carry processing is done, after selecting the output mode. Status register 2 setting INT1 pin output mode 32kE =, INT1AE = INT2 pin output mode INT2AE = Change by program (OFF) INT1ME, INT1FE INT2ME, INT2FE Minute-carry processing Minute-carry processing Minute-carry processing Minute-carry processing Minute-carry processing INT1 pin/int2 pin 3 s 3 s 3 s 3 s 3 s 3 s 3 s 3 s 3 s "L" is output again if this period is within 7.9 ms *1. "H" is output again if this period is within 7.9 ms "L" is output at the next minute-carry processing *1. Setting the output mode disable makes the pin output H, while the output from the INT 1/ INT 2 pin is in L. Note that pin output is set to L by setting enable the output mode again. Figure 28 Timing of Per-Minute Steady Interrupt Output 1 Seiko Instruments Inc. 23

2-WIRE REAL-TIME CLOCK Rev.2.4_ 5. Minute-periodical interrupt output 2 (only in the INT 1 pin output mode) The output of minute-periodical interrupt 2 is the function to output L, for 7.9 ms, from the INT 1 pin, synchronizing with the first minute-carry processing after selecting the output mode. However, in Read in the real-time data register, the procedure delays at max..5 sec thus output L from the INT 1 pin also delays at max..5 sec. In Write in the real-time data register, some delay is made in the output period due to Write timing and the second-data during Write. (a) During normal operation Minute-carry processing Minute-carry processing Minute-carry processing INT1 pin 7.9 ms 7.9 ms 7.9 ms 6 s 6 s (b) During Read in the real-time data register (Normal minutecarry Minute-carry processing processing) Minute-carry processing Minute-carry processing INT1 pin Serial communication.5 s Max. 7.9 ms 7.9 ms 7.9 ms 6 s 6 s Real-time data read command Real-time data reading Real-time data read command Real-time data reading (c) During Write in the real-time data register Minute-carry processing Minute-carry processing Minute-carry processing INT1 pin Real-time data write timing 7.9 ms 7.9 ms 7.9 ms 55 s 8 s 1 s 45 s 3 s 5 s Second data of writing: "5" s Second data of writing: "1" s The output period is shorter. The output period is longer. Figure 29 Timing of Minute-periodical Interrupt Output 2 24 Seiko Instruments Inc.

Rev.2.4_ 2-WIRE REAL-TIME CLOCK 6. Operation of power-on detection circuit (only in the INT 1 pin output mode) When power is applied to the, the power-on detection operates to set 1 in the POC flag (B in the status register 1). A 1 Hz clock pulse is output from the INT 1 pin. Status register 2 setting 32kE =, INT1AE = INT1ME = Change by reset command INT1FE OFF INT1 pin.5 s.5 s Figure 3 Output Timing of INT 1 Pin during Operation of Power-on Detection Circuit Function to Clock-Correction The function to clock-correction is to correct advance/delay of the clock due to the deviation of oscillation frequency, in order to make a high precise clock. For correction, the adjusts the clock pulse by using a certain part of the dividing circuit, not adjusting the frequency of the crystal oscillator. Correction is performed once every 2 seconds (or 6 seconds). The minimum resolution is approx. 3 ppm (or approx. 1 ppm) and the corrects in the range of 195.3 to +192.2 ppm (or of 65.1 to +64.1 ppm). (Refer to Table 13.) Users can set up this function by using the clock-correction register. Regarding how to calculate the setting data, refer to 1. How to calculate. When not using this function, be sure to set h. Table 13 Function to Clock-Correction B = B = 1 Correction Every 2 seconds Every 6 seconds Minimum resolution 3.52 ppm 1.17 ppm Correction range 195.3 to +192.2 ppm 65.1 to +64.1 ppm Seiko Instruments Inc. 25

2-WIRE REAL-TIME CLOCK Rev.2.4_ 1. How to calculate (1) If current oscillation frequency > target frequency (in case the clock is fast) Correction value *1 = 128 Integral value (Current oscillation frequency actual measurement value *2 ) (Target oscillation frequency *3 ) (Current oscillation frequency actual measurement value *2 ) (Minimum resolution *4 ) Caution The figure range which can be corrected is that the calculated value is from to 64. *1. Convert this value to be set in the clock correction register. For how to convert, refer to (a) Calculation example 1. *2. Measurement value when 1 Hz clock pulse is output from the INT 1 pin (or INT 2 pin). *3. Target value of average frequency when the clock correction function is used. *4. Refer to Table 13. (a) Calculation example 1 In case of current oscillation frequency actual measurement value = 1.7 [Hz], target oscillation frequency = 1. [Hz], B7 = (Minimum resolution = 3.52 ppm) Correction value = 128 Integral value ( 1.7 ) ( 1. ) ( 1.7 ) ( 3.52 1 6 ) = 128 Integral value (22.93)= 128 22 = 16 Convert the correction value 16 to 7-bit binary and obtain 1111b. Reverse the correction value 1111b and set it to B6 to B of the clock correction register. Thus, set the clock correction register: (B7, B6, B5, B4, B3, B2, B1, B) = (, 1,, 1,, 1, 1, ) (2) If current oscillation frequency < target frequency (in case the clock is slow) Correction value = Integral value (Target oscillation frequency) (Current oscillation frequency actual measurement value) (Current oscillation frequency actual measurement value) (Minimum resolution) + 1 Caution The figure range which can be corrected is that the calculated value is from to 62. (a) Calculation example 2 In case of current oscillation frequency actual measurement value =.99992 [Hz], target oscillation frequency = 1. [Hz]. B7 = (Minimum resolution = 3.52 ppm) Correction value = Integral value ( 1. ) (.99992 ) (.99992 ) ( 3.52 1-6 + 1 ) = Integral value (26.21) + 1 = 26 + 1 = 27 Thus, set the clock correction register: (B7, B6, B5, B4, B3, B2, B1, B) = (1, 1,, 1, 1,,, ) (b) Calculation example 3 In case of current oscillation frequency actual measurement value =.99992 [Hz], target oscillation frequency = 1. [Hz], B7 = 1 (Minimum resolution = 1.17 ppm) Correction value = Integral value ( 1. ) (.99992 ) (.99992 ) ( 1.17 1-6 + 1 ) = Integral value (78.66) + 1 Thus, this calculated value exceeds the correctable range to 62, B7 = 1 (minimum resolution = 1.17 ppm) indicates the correction is impossible. 26 Seiko Instruments Inc.

Rev.2.4_ 2-WIRE REAL-TIME CLOCK 2. Setting value for register and correction value Table 14 Setting Value for Register and Correction Value (Minimum Resolution: 3.52 ppm (B = )) B7 B6 B5 B4 B3 B2 B1 B Correction Value [ppm] Rate [s/day] 1 1 1 1 1 1 192.3 16.61 1 1 1 1 1 189.2 16.35 1 1 1 1 1 186.2 16.9 1 6.1.53 1 3.1.26 1 1 1 1 1 1 1 3.1.26 1 1 1 1 1 1 6.1.53 1 1 1 1 1 1 9.2.79 1 1 189.2 16.35 1 1 192.3 16.61 1 195.3 16.88 Table 15 Setting Value for Register and Correction Value (Minimum Resolution: 1.17 ppm (B = 1)) B7 B6 B5 B4 B3 B2 B1 B Correction Value [ppm] Rate [s/day] 1 1 1 1 1 1 1 64.1 5.54 1 1 1 1 1 1 63.1 5.45 1 1 1 1 1 1 62. 5.36 1 1 2..18 1 1 1..9 1 1 1 1 1 1 1 1 1 1..9 1 1 1 1 1 1 1 2..18 1 1 1 1 1 1 1 3..26 1 1 1 63.1 5.45 1 1 1 64.1 5.54 1 1 65.1 5.62 Seiko Instruments Inc. 27

2-WIRE REAL-TIME CLOCK Rev.2.4_ 3. How to confirm setting value for register and result of correction The does not adjust the frequency of the crystal oscillation by using the clock-correction function. Therefore users cannot confirm if it is corrected or not by measuring output 32.768 khz. When the function to clock-correction is being used, the cycle of 1 Hz clock pulse output from the INT 1 pin changes once in 2 times or 6 times, as shown in Figure 31. INT1 pin (1 Hz output) a a a b a 19 times or 59 times Once B =, a : 19 times, b : Once B = 1, a : 59 times, b : Once Figure 31 Confirmation of Correction Result Measure a and b by using the frequency counter *1. Calculate the average frequency (Tave) based on the measurement results. B =, Tave = (a 19 + b) 2 B = 1, Tave = (a 59 + b) 6 Calculate the error of the clock based on the average frequency (Tave). The following shows an example for confirmation. Confirmation example: When B =, 66h is set Measurement results: a = 1.8 Hz, b =.998493 Hz Clock Correction Register Setting Value Average Frequency [Hz] Per Day [s] Before correction h (Tave = a) 1.8 86393 After correction 66 h (Tave = (a 19 + b) 2) 1.65 86399.9 Calculating the average frequency allows to confirm the result of correction. *1. Use a frequency counter with 7-digit or greater precision. Caution Measure the oscillation frequency under the usage conditions. 28 Seiko Instruments Inc.

Rev.2.4_ 2-WIRE REAL-TIME CLOCK Serial Interface The receives various commands via I 2 C-bus serial interface to Read/Write data. Regarding transmission is as follows. 1. Start condition A start condition is when the line changes H to L when the SCL line is in H, so that the access starts. 2. Stop condition A stop condition is when the line changes L to H when the SCL line is in H, and the access stops, so that the gets standby. t SU.STA t HD.STA t SU.STO SCL Start condition Stop condition Figure 32 Start/Stop Conditions 3. Data transfer and acknowledgment signal Data transmission is performed for every 1-byte, after detecting a start condition. Transmit data while the SCL line is in L, and be careful of spec of t SU.DAT and t HD. DAT when changing the line. If the line changes while the SCL line is in H, the data will be recognized as start/stop condition in spite of data transmission. Note that by this case, the access will be interrupted. During data transmission, every moment receiving 1-byte data, the devices which work for receiving data send an acknowledgment signal back. For example, as seen in Figure 33, in case that the is the device working for receiving data and the master device is the one working for sending data; when the 8th clock pulse falls, the master device releases the line. After that, the sends an acknowledgment signal back, and set the line to L at the 9th clock pulse. The does not output an acknowledgment signal is that the access is not being done regularly. SCL (Input from ) 1 8 9 t SU.DAT t HD.DAT (Output from master device) (Input from ) Start condition High-Z is released High-Z Output acknowledgment ( L active) t PD Figure 33 Output Timing of Acknowledgment Signal Seiko Instruments Inc. 29

2-WIRE REAL-TIME CLOCK Rev.2.4_ The followings are Read/Write in the. (1) Data Read in After detecting a start condition, the receives device code and command. The enters the Read-data mode by the Read/Write bit 1. The data is output from B7 in 1-byte. Input an acknowledgment signal from the master device every moment that the outputs 1-byte data. However, do not input an acknowledgment signal (input NO_ACK) for the last data-byte output from the master device. This procedure notifies the completion of Read. Next, input a stop condition to the to finish access. 1-byte data 1 9 18 SCL R/W START 1 1 1 ACK B7 Device code + command B NO_ACK STOP : Output from : Input from master device Input NO_ACK after the 1st byte of data has been output. Figure 34 Example of Data Read 1 (1-Byte Data Register) 3-byte data 1 9 18 27 36 SCL R/W START 1 1 1 1 1 ACK ACK ACK B7 B B7 B B7 B Device code + command NO_ACK STOP : Output from : Input from master device Input NO_ACK after the 3rd byte of data has been output. Figure 35 Example of Data Read 2 (3-Byte Data Register) 3 Seiko Instruments Inc.

Rev.2.4_ 2-WIRE REAL-TIME CLOCK (2) Data Write in After detecting a start condition, receives device code and command. The enters the Write-data mode by the Read/Write bit. Input data from B7 to B in 1-byte. The outputs an acknowledgment signal ( L ) every moment that 1-byte data is input. After receiving the acknowledgment signal which is for the last byte-data, input a stop condition to the to finish access. 1-byte data 1 9 18 SCL R/W START 1 1 ACK ACK STOP B7 Device code + command B : Output from : Input from master device Figure 36 Example of Data Write 1 (1-Byte Data Register) 3-byte data 1 9 18 27 36 SCL R/W START 1 1 1 1 ACK ACK ACK ACK STOP B7 Device code + command : Output from : Input from master device B B7 B B7 B Figure 37 Example of Data Read 2 (3-Byte Data Register) Seiko Instruments Inc. 31

2-WIRE REAL-TIME CLOCK Rev.2.4_ 4. Data access (1) Real-time data 1 access 1 9 18 63 72 SCL R/W START 1 1 1 ACK ACK *2 ACK *2 ACK *1 STOP Device code + command I/O mode switching B7 B B7 B Year data Second data I/O mode switching *1. Set NO_ACK = 1 in Read. *2. Transmit ACK = from the master device to the in Read. (2) Real-time data 2 access Figure 38 Real-Time Data 1 Access 1 9 18 27 36 SCL R/W START 1 1 1 1 ACK ACK *2 ACK *2 ACK *1 STOP Device code + command I/O mode switching B7 B B7 B B7 B Hour data Minute data Second data I/O mode switching *1. Set NO_ACK = 1 in Read. *2. Transmit ACK = from the master device to the in Read. Figure 39 Real-Time Data 2 Access (3) Status register 1 access and status register 2 access 1 9 18 SCL *1 R/W START 1 1 ACK ACK *2 STOP Device code + command I/O mode switching *1. : Status register 1 selected, 1 : Status register 2 selected *2. Set NO_ACK = 1 for reading. B7 B Status data I/O mode switching 32 Figure 4 Status Register 1 Access and Status Register 2 Access Seiko Instruments Inc.

Rev.2.4_ 2-WIRE REAL-TIME CLOCK (4) INT1 register access and INT2 register access In Read/Write the INT1 and INT2 registers, data varies depending on the setting of the status register 2. Be sure to Read/Write after setting the status register 2. When setting the alarm by using the status register 2, these registers work as 3-byte alarm time data registers, in other statuses, they work as 1-byte registers. When outputting the user-set frequency, they are the data registers to set up the frequency. Regarding details of each data, refer to 4. INT1 register and INT2 register in Configuration of Register. Caution Users cannot use both functions of alarm 1 interrupt and output of user-set frequency for the INT 1 pin and INT 2 pin simultaneously. 1 9 18 27 36 SCL *1 R/W START 1 1 1 ACK ACK *3 ACK *3 ACK *2 STOP Device code + command I/O mode switching B7 B B7 B B7 B Day of the week data Hour data Minute data I/O mode switching *1. : INT1 register selected, 1 : INT2 register selected *2. Set NO_ACK = 1 in Read. *3. Transmit ACK = from the master device to the in Read. Figure 41 INT1 Register Access and INT2 Register Access 1 9 18 SCL *1 R/W START 1 1 1 ACK ACK *2 STOP Device code + command I/O mode switching B7 B Frequency setting data I/O mode switching *1. : INT1 register selected, 1 : INT2 register selected *2. Set NO_ACK = 1 in Read. Figure 42 INT1 Register and INT2 Register (Data Register for Output Frequency) Access Seiko Instruments Inc. 33

2-WIRE REAL-TIME CLOCK Rev.2.4_ (5) Clock correction register access 1 9 18 SCL R/W START 1 1 1 1 ACK ACK *1 STOP Device code + command I/O mode switching B7 B Clock correction data I/O mode switching *1. Set NO_ACK = 1 in Read. (6) Free register access Figure 43 Clock Correction Register Access 1 9 18 SCL R/W START 1 1 1 1 1 ACK ACK *1 STOP Device code + command I/O mode switching B7 Free register data B I/O mode switching *1. Set NO_ACK = 1 in Read. Figure 44 Free Register Access 34 Seiko Instruments Inc.

Rev.2.4_ 2-WIRE REAL-TIME CLOCK Reset After Communication Interruption In case of communication interruption in the, for example, during communication the power supply voltage drops so that only the master device is reset; the does not operate the next procedure because the internal circuit keeps the state prior to interruption. The does not have a reset pin so that users usually reset its internal circuit by inputting a stop condition. However, if the line is outputting L (during output of acknowledgment signal or Read), the does not accept a stop condition from the master device. In this case, users are necessary to finish acknowledgment output or Read the line. Figure 45 shows how to reset. First, input a start condition from the master device (The cannot detect a start condition because the line in the is outputting L ). Next, input a clock pulse equivalent to 7-byte data access (63-clock) from the SCL line. During this, release the line for the master device. By this procedure, I/O before interruption is finished, so that the line in the is released. After that, inputting a stop condition resets the internal circuit so that restore the regular communication. This reset procedure is recommended to perform at initialization of the system after rising the master device s power supply voltage. Start condition Clocks equivalent to 7-byte data access Stop condition SCL 1 2 8 9 62 63 (Output from master device) (Output from ) L L or High-Z High-Z L L or High-Z Figure 45 How to Reset Seiko Instruments Inc. 35