DS1371 I 2 C, 32-Bit Binary Counter Watchdog Clock

Similar documents
DS1307ZN. 64 x 8 Serial Real-Time Clock

DS1621 Digital Thermometer and Thermostat

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

DS1621 Digital Thermometer and Thermostat

DS Wire Digital Thermometer and Thermostat

DS1386/DS1386P RAMified Watchdog Timekeeper

Spread-Spectrum Crystal Multiplier DS1080L. Features

DS1220Y 16k Nonvolatile SRAM

DS1678 Real-Time Event Recorder

PACKAGE OUTLINE DALLAS DS2434 DS2434 GND. PR 35 PACKAGE See Mech. Drawings Section

DS Real Time Clock FEATURES PIN ASSIGNMENT PIN DESCRIPTION

DS1225Y 64k Nonvolatile SRAM

Cold-Junction-Compensated K-Thermocoupleto-Digital Converter (0 C to C)

±5ppm, I 2 C Real-Time Clock

V CC TOP VIEW. f SSO = 20MHz to 134MHz (DITHERED)

ICS514 LOCO PLL CLOCK GENERATOR. Description. Features. Block Diagram DATASHEET

DS1220Y 16k Nonvolatile SRAM

Real Time Clock Module with I2C Bus

Push-Pull FET Driver with Integrated Oscillator and Clock Output

FM75 Low-Voltage Two-Wire Digital Temperature Sensor with Thermal Alarm

DS12885, DS12885Q, DS12885T. Real Time Clock FEATURES PIN ASSIGNMENT

Microprocessor Supervisory Circuits

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

LC898300XA. Functions Automatic adjustment to the individual resonance frequency Automatic brake function Initial drive frequency adjustment function

Application Note 58 Crystal Considerations for Dallas Real-Time Clocks

STWD100. Watchdog timer circuit. Description. Features. Applications

DS1821 Programmable Digital Thermostat and Thermometer

DP8570A DP8570A Timer Clock Peripheral (TCP)

DM Segment Decoder/Driver/Latch with Constant Current Source Outputs

ICS SPREAD SPECTRUM CLOCK SYNTHESIZER. Description. Features. Block Diagram DATASHEET

Allows the user to protect against inadvertent write operations. Device select and address bytes are Acknowledged Data Bytes are not Acknowledged

CAT28C64B F R E E. 64K-Bit CMOS PARALLEL EEPROM L E A D FEATURES DESCRIPTION BLOCK DIAGRAM

TRIPLE PLL FIELD PROG. SPREAD SPECTRUM CLOCK SYNTHESIZER. Features

DALLAS DS1233 Econo Reset. BOTTOM VIEW TO-92 PACKAGE See Mech. Drawings Section on Website

DS1302 Trickle-Charge Timekeeping Chip

ICS379. Quad PLL with VCXO Quick Turn Clock. Description. Features. Block Diagram

DS1232LP/LPS Low Power MicroMonitor Chip

2-wire Serial EEPROM AT24C512

8254 PROGRAMMABLE INTERVAL TIMER

DS2401 Silicon Serial Number

INTEGRATED CIRCUITS DATA SHEET. SAA digit LED-driver with I 2 C-Bus interface. Product specification File under Integrated Circuits, IC01

DS18B20 Programmable Resolution 1-Wire Digital Thermometer

DS2187 Receive Line Interface

On/Off Controller with Debounce and

ABRIDGED DATA SHEET EVALUATION KIT AVAILABLE

LM75 Digital Temperature Sensor and Thermal Watchdog with Two-Wire Interface

Adding Heart to Your Technology

Clock and calendar with 240 x 8-bit RAM

8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

71M6521 Energy Meter IC. Real Time Clock Compensation. The Challenge. The RTC in the 71M6521D/F. Theory of Operation APPLICATION NOTE

1-to-8 I 2 C Bus Switches/Multiplexers with Bus Lock-Up Detection, Isolation, and Notification

Features. Modulation Frequency (khz) VDD. PLL Clock Synthesizer with Spread Spectrum Circuitry GND

AAT3520/2/4 MicroPower Microprocessor Reset Circuit

NCP Channel Programmable LED Driver

Application Note 58 Crystal Considerations with Dallas Real Time Clocks

256K (32K x 8) Static RAM

MMC314xMR. Ultra Small 3-axis Magnetic Sensor, With I 2 C Interface. Signal Path X. Signal Path Y. Signal Path Z FEATURES

1 TO 4 CLOCK BUFFER ICS551. Description. Features. Block Diagram DATASHEET

HCF4056B BCD TO 7 SEGMENT DECODER /DRIVER WITH STROBED LATCH FUNCTION

1-Mbit (128K x 8) Static RAM


The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

HDMM01 V1.0. Dual-axis Magnetic Sensor Module With I 2 C Interface FEATURES. Signal Path X

INTEGRATED CIRCUITS. NE558 Quad timer. Product data Supersedes data of 2001 Aug Feb 14

X9C102/103/104/503. Terminal Voltages ±5V, 100 Taps. Digitally-Controlled (XDCP) Potentiometer

ICS SYSTEM PERIPHERAL CLOCK SOURCE. Description. Features. Block Diagram DATASHEET

PCF General description. 2. Features and benefits. 3. Applications. Real-time clock/calendar

Features. Instruction. Decoder Control Logic, And Clock Generators. Address Compare amd Write Enable. Protect Register V PP.

HT1632C 32 8 &24 16 LED Driver

HCC4541B HCF4541B PROGRAMMABLE TIMER

SPREAD SPECTRUM CLOCK GENERATOR. Features

GTS-4E Hardware User Manual. Version: V1.1.0 Date:

Programmable Single-/Dual-/Triple- Tone Gong SAE 800

8031AH 8051AH 8032AH 8052AH NMOS SINGLE-CHIP 8-BIT MICROCONTROLLERS

YAS532B MS-3R Magnetic Field Sensor Type 3R

EVALUATION KIT AVAILABLE Broadband, Two-Output, Low-Noise Amplifier for TV Tuner Applications MAX2130. Maxim Integrated Products 1

TS555. Low-power single CMOS timer. Description. Features. The TS555 is a single CMOS timer with very low consumption:

8-bit binary counter with output register; 3-state

14-stage ripple-carry binary counter/divider and oscillator

TDA CHANNEL VOLUME CONTROLLER 1 FEATURES 2 DESCRIPTION. Figure 1. Package

74AC191 Up/Down Counter with Preset and Ripple Clock

3-to-8 line decoder, demultiplexer with address latches

R EXT THERMISTOR. Maxim Integrated Products 1

INTEGRATED CIRCUITS DATA SHEET. PCF bit A/D and D/A converter. Product specification Supersedes data of 2001 Dec 13.

Features INSTRUCTION DECODER CONTROL LOGIC AND CLOCK GENERATORS COMPARATOR AND WRITE ENABLE EEPROM ARRAY READ/WRITE AMPS 16

Quad, Rail-to-Rail, Fault-Protected, SPST Analog Switches

Bi-directional level shifter for I²C-bus and other systems.

PCF85063A. 1. General description. 2. Features and benefits. 3. Applications. Tiny Real-Time Clock/calendar with alarm function and I 2 C-bus

MicroMag3 3-Axis Magnetic Sensor Module

BATRON. Specification for BTHQ 21605V-FSTF-I2C-COG

MM74HC4538 Dual Retriggerable Monostable Multivibrator

LC7218, 7218M, 7218JM

LM75A. 1. General description. 2. Features. Digital temperature sensor and thermal watchdog

PCT General description. I 2 C-bus Fm+, 1 degree C accuracy, digital temperature sensor and thermal watchdog

Semiconductor MSM82C43

TDA4605 CONTROL CIRCUIT FOR SWITCH MODE POWER SUPPLIES USING MOS TRANSISTORS

PCF General description. 2. Features. 3. Applications. Real time clock/calendar

High-Speed, 5 V, 0.1 F CMOS RS-232 Driver/Receivers ADM202/ADM203

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

Transcription:

www.maxim-ic.com General Description The DS1371 is a 32-bit binary counter that is designed to continuously count time in seconds. An additional counter that can generate a periodic alarm or serve as a watchdog timer is also provided. If enabled as a watchdog timer, the watchdog strobe input pin provides a hardware reset of the counter. If disabled, this counter can be used as 3 Bytes of generalpurpose RAM. A configurable output can be used as an interrupt or provide a square wave at one of four selectable frequencies. The device is programmed serially through a I 2 C bidirectional bus. Applications Servers Point-of-Sale Equipment Portable Instruments Elapsed Time Measurements Typical Operating Circuit DS1371 I 2 C, 32-Bit Binary Counter Watchdog Clock Features 32-Bit Binary Counter 24-Bit Binary Counter Provides Periodic Alarm, Watchdog Timer, or RAM Strobe Input to Reset Watchdog Timer Single Output Configurable as Interrupt or Square Wave I 2 C Serial Interface Low-Voltage Operation Operating Temperature Range: -40 C to +85 C Available in 8-Pin μsop Ordering Information PART TEMP RANGE PIN- PACKAGE TOP MARK DS1371U -40 C to +85 C 8 μsop 1371 DS1371U+ -40 C to +85 C 8 μsop 1371 +Denotes a lead-free/rohs-compliant package. A + appears on the top mark for lead-free packages. Pin Configuration TOP VIEW X1 1 8 V CC X2 WDS 2 7 DS1371 3 6 SQW/INT SCL GND 4 5 SDA μsop 1 of 15 REV: 022207

ABSOLUTE MAXIMUM RATINGS Voltage Range on V CC Pin Relative to Ground..-0.3V to +6.0V Voltage Range on SDA, SCL, and WDS Relative to Ground..-0.3V to (V CC +0.5V) Operating Temperature Range...-40 C to +85 C Storage Temperature Range.-55 C to +125 C Soldering Temperature...See IPC/JEDEC J-STD-020 Stresses beyond those listed under Absolute Maximum Ratings may cause permanent damage to the device. These are stress ratings only, and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of the specifications is not implied. Exposure to absolute maximum rating conditions for extended periods can affect device reliability. RECOMMENDED DC OPERATING CONDITIONS (T A = -40 C to +85 C) PARAMETER SYMBOL MIN TYP MAX UNITS Supply Voltage (Note 1) V CC 1.7 3.3 5.5 V Input Logic 1 (Notes 2, 3) V IH 0.7 V CC V CC + 0.3 V Input Logic 0 (Notes 2, 3) V IL -0.3 0.3V CC V DC ELECTRICAL CHARACTERISTICS (V CC = 1.7V to 5.5V, T A = -40 C to +85 C, unless otherwise noted.) (Note 4) PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS Supply Voltage (Note 1) V CC 1.7 5.5 V Oscillator Operating Voltage Range (Note 1) V OSC 1.3 5.5 V Input Leakage I LI (Note 2) 1 μa I/O Leakage I LO (Note 3) 1 μa SDA Logic 0 Output (Note 1) I OLSDA V CC > 2V; V OL = 0.4V V CC < 2V; V OL = 0.2V CC 3 ma V CC > 2V; V OL = 0.4V 3.0 1.7V < V CC < 2V; ma SQW/INT Logic 0 Output 3.0 I V OL = 0.2V (Note 1) OLSQW CC 1.3V < V CC < 1.7V; 250 μa V OL = 0.2V CC Active Supply Current I CCA (Note 5) 100 150 μa Timekeeping Current (Oscillator Enabled, INTCN = 1) I OSC0 (Notes 6, 7) 800 na Timekeeping Current (Oscillator Enabled, INTCN = 0) I OSC1 (Notes 6, 7) 1300 na Data Retention Current (Oscillator Disabled) I DDR (Note 6) 100 na 2 of 15

AC ELECTRICAL CHARACTERISTICS (V CC = 1.7V to 5.5V, T A = -40 C to +85 C, unless otherwise noted.) (Note 8) DS1371 PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS SCL Clock Frequency (Note 9) f SCL Fast mode 100 400 Standard mode 0 100 khz Bus Free Time Between STOP and Fast mode 1.3 t START Conditions BUF Standard mode 4.7 μs Hold Time (repeated) START Condition Fast mode 0.6 t (Note 10) HD:STA Standard mode 4.0 μs Low Period of SCL Clock t LOW Fast mode 1.3 Standard mode 4.7 μs High Period of SCL Clock t HIGH Fast mode 0.6 Standard mode 4.0 μs Data Hold Time (Notes 11, 12) t HD:DAT Fast mode 0 0.9 Standard mode 0 0.9 μs Data Setup Time (Note 13) t SU:DAT Fast mode 100 Standard mode 250 ns Start Setup Time t SU:STA Fast mode 0.6 Standard mode 4.7 μs 20 + Fast mode 300 Rise Time of Both SDA and SCL 0.1C t BB Signals (Note 9) R 20 + Standard mode 1000 0.1C BB ns 20 + Fast mode 300 Fall Time of Both SDA and SCL Signals 0.1C t BB (Note 9) F 20 + Standard mode 300 0.1C BB ns Setup Time for STOP Condition t SU:STO Fast mode 0.6 Standard mode 4.7 μs Capacitive Load for Each Bus Line (Note 7) C BB 400 pf Pulse Width of Spikes that Must be Suppressed by the Input Filter (Note 14) T SP Fast mode 30 ns Watchdog Strobe (WDS) Pulse Width t WDS 100 ns Oscillator Stop Flag (OSF) Delay (Note 8) t OSF 100 ms Note 1: All voltages are referenced to ground. Note 2: SCL and WDS only. Note 3: SDA and SQW/INT. Note 4: Limits at -40 C are guaranteed by design and not production tested. Note 5: I CCA SCL clocking at max frequency = 400kHz. WDS inactive. Note 6: Specified with WDS input and I 2 C bus inactive, SCL = SDA = V CC. Note 7: Measured with a 32.768kHz crystal attached to the X1 and X2 pins. Note 8: The parameter t OSF is the period of time the oscillator must be stopped in order for the OSF flag to be set over the voltage range of 1.3V V CC V CCMAX. Note 9: A fast mode device can be used in a standard mode system, but the requirement t SU:DAT to 250ns must then be met. This is automatically the case if the device does not stretch the LOW period of the SCL signal. If such a device does stretch the LOW period of the SCL signal, it must output the next data bit to the SDA line t R MAX + t SU:DAT = 1000 + 250 = 1250ns before the SCL line is released. Note 10: After this period, the first clock pulse is generated. Note 11: A device must internally provide a hold time of at least 300ns for the SDA signal (referred to the V IHMIN of the SCL signal) in order to bridge the undefined region of the falling edge of SCL. Note 12: The maximum t HD:DAT has only to be met if the device does not stretch the LOW period (t LOW ) of the SCL signal. Note 13: C B total B capacitance of one bus line in pf. Note 14: This parameter is not production tested. 3 of 15

Typical Operating Characteristics (VCC = 3.3V, TA = +25 C, unless otherwise noted.) SUPPLY CURRENT (na) 600 550 500 450 400 350 I OSCO vs. V CC SQUARE-WAVE OFF 300 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 V CC (V) DS1371 toc01 SUPPLY CURRENT (na) 950 900 850 800 750 700 650 600 550 500 450 I OSC1 vs. V CC SQUARE-WAVE ON 400 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 V CC (V) DS1371 toc02 SUPPLY CURRENT (na) 750 700 650 600 550 500-40 -20 I OSC0 vs. TEMPERATURE V CC = 3.3V 0 20 40 60 80 DS1371 toc03 SUPPLY CURRENT (µa) 75 70 65 60 55 50 45 40 35 30 25 20 15 10 5 0-40 -20 I CCA vs. V CC SQUARE-WAVE ON 0 20 40 60 80 DS1371 toc04 TEMPERATURE ( C) TEMPERATURE ( C) 35 30 I OSC0 vs. WDS FREQUENCY DS1371 toc05 32767.76 OSCILLATOR FREQUENCY vs. V CC DS1371 toc06 SUPPLY CURRENT (µa) 25 20 15 10 5 FREQUENCY (Hz) 32767.71 32767.66 32767.61 0 0 200 400 600 800 1000 WDS FREQUENCY (khz) 3.767.56 1.3 1.8 2.3 2.8 3.3 3.8 V CC (V) 4.3 4.8 5.3 4 of 15

Figure 1. Timing Diagram X1 X2 V CC GND WDS Oscillator Power 4 2 4096 DS1371 Alarm/ Watchdog WACE 4096Hz 4096 1Hz 32,768Hz 8192Hz 4096Hz 1Hz 1Hz M U X M U X CLR SQW 32-Bit Counter 24-Bit Counter AIE INT M U X N SQW/INT Stat/Ctrl WD/ALM CLR INTCN SDA SCL I 2 C Interface Figure 2. Functional Diagram 5 of 15

PIN DESCRIPTION PIN NAME FUNCTION 1, 2 X1, X2 These signals are connections for a standard 32.768kHz quartz crystal. The internal oscillator circuitry is designed for operation with a crystal having a specified load capacitance (C L ) of 6pF. No external resistors or capacitors are required. For more information about crystal selection and crystal layout considerations, refer to Application Note 58: Crystal Considerations with Dallas Real-Time Clocks. The DS1371 can also be driven by an external 32.768kHz oscillator. In this configuration, the X1 pin is connected to the external oscillator signal and the X2 pin is floated. 3 WDS Watchdog Input. A positive edge-triggered hardware interrupt input that restarts the watchdog counter when this signal transitions from a low to a high. While WDS remains at a static low or high, the watchdog counter continues to decrement. 4 GND Ground 5 SDA I 2 C Serial Data. Input/output for I 2 C data. 6 SCL I 2 C Serial Clock. Input for I 2 C clock. 7 SQW/INT Square-Wave/Interrupt Output. This pin is used to output the programmable squarewave or alarm interrupt signal. It is open drain and requires an external pullup resistor. 8 V CC Supply Voltage Terminal Detailed Description The DS1371 is a real-time clock (RTC) with a I 2 C serial interface that provides elapsed seconds from a user-defined starting point in a 32-bit counter (Figure 2). A 24-bit counter can be configured as either a watchdog counter or as an alarm counter. An on-chip oscillator circuit uses a customer-supplied 32.768kHz crystal to keep time. Oscillator Circuit The DS1371 uses an external 32.768kHz crystal. The oscillator circuit does not require any external resistors or capacitors to operate (Figure 2). Table 1 specifies several crystal parameters for the external crystal. Using a crystal with the specified characteristics, the startup time is usually less than one second. Clock Accuracy The accuracy of the clock is dependent upon the accuracy of the crystal and the accuracy of the match between the capacitive load of the oscillator circuit and the capacitive load for which the crystal was trimmed. Additional error is added by crystal frequency drift caused by temperature shifts. External circuit noise coupled into the oscillator circuit can result in the clock running fast. Figure 3 shows a typical PC board layout for isolation of the crystal and oscillator from noise. Refer to Application Note 58: Crystal Considerations with Dallas Real-Time Clocks for detailed information. 6 of 15

Table 1. Crystal Specifications * PARAMETER SYMBOL MIN TYP MAX UNITS Nominal Frequency f O 32.768 khz Series Resistance ESR 50 kω Load Capacitance C L 6 pf *The crystal, traces, and crystal input pins should be isolated from RF generating signals. Refer to Application Note 58: Crystal Considerations for Dallas Real-Time Clocks for additional specifications. LOCAL GROUND PLANE (LAYER 2) CRYSTAL X1 X2 GND Figure 3. Layout Example 7 of 15

Address Map Table 2 shows the address map for the registers of the DS1371. During a multibyte access, when the address pointer reaches the end of the register space (08h), it wraps around to location 00h. On an I 2 C START, STOP, or address pointer incrementing to location 00h, the current time is transferred to a second set of registers. The time information is read from these secondary registers, while the clock may continue to run. This eliminates the need to reread the registers in case of an update of the main registers during a read. Table 2. Address Map ADDRESS BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0 FUNCTION 00H TOD COUNTER BYTE 0 01H TOD COUNTER BYTE 1 02H TOD COUNTER BYTE 2 03H TOD COUNTER BYTE 3 04H WD/ALM COUNTER BYTE 0 05H WD/ALM COUNTER BYTE 1 06H WD/ALM COUNTER BYTE 2 Time-of-Day Counter Time-of-Day Counter Time-of-Day Counter Time-of-Day Counter Watchdog/ Alarm Counter Watchdog/ Alarm Counter Watchdog/ Alarm Counter 07H EOSC WACE WD/ALM 0 INTCN RS2 RS1 AIE Control 08H OSF 0 0 0 0 0 0 AF Status Note: Unless otherwise specified, the state of the registers are not defined when power is first applied. 8 of 15

Time-of-Day Counter The time-of-day counter is a 32-bit up counter. The contents can be read or written by accessing the address range 00h 03h. When the counter is read, the current time of day is latched into a register, which is output on the serial data line while the counter continues to increment. Writing to the counter resets the countdown chain for the time-of-day counter (Figure 2). The watchdog countdown chain is unaffected. If the square-wave output is enabled and is set to 1Hz, the output resets when the countdown chain is reset. Because the other square-wave frequencies are derived before the section of the countdown chain that is reset, the other frequencies are unaffected by a write to the time-of-day counter. Watchdog/Alarm Counter If the counter is not needed, it can be disabled and used as a 24-bit cache of NV RAM by setting the WACE bit in the control register to logic 0. If all 24 bits of the watchdog/alarm counter are written to zero, the counter is disabled, independent of the WACE bit setting. When the watchdog counter is written to a nonzero value, and WACE is written to logic 1, the function of the counter is determined by the WD/ALM bit. Note: The WDS input must be low when writing to the watchdog counter registers. When the WD/ALM bit in the control register is set to a logic 0, the WD/ALM counter decrements every second until it reaches zero. At this point, the AF bit in the status register is set to a 1 and the counter is reloaded and restarted. AF remains set until cleared by writing it to a 0. If INTCN = AIE = 1, the SQW/INT pin will go active whenever AF = 1. Note: WACE must be set to a logic 1 after the alarm value is written. When the WD/ALM bit is set to logic 1, the WD/ALM counter decrements every 1/4096 of a second (approximately every 244μs) until it reaches zero. When any of the watchdog counters bytes are read, the seed value is reloaded and the counter restarts. Writing to the watchdog counter updates the seed value and reloads the counter with the new seed value. A low to high transition on the WDS input reloads and restarts the counter with the seed value. When the counter reaches zero, the AF bit is set and the counter stops. The AF bit remains set until cleared by writing it to 0. If INTCN and AIE are both at logic 1 when the AF bit becomes set, the SQW/INT pin pulses low for 250ms. At the end of the 250ms pulse, the AF bit is cleared and SQW/INT becomes high impedance. Note: WACE must be toggled from a logic 0 to a logic 1 after the watchdog counter is written from a zero to a nonzero value. The 250ms pulse on SQW/INT cannot be truncated by writing either AF or AIE to zero during the low time. If the WD/ALM counter is written during the 250ms pulse, the counter starts decrementing upon the pulse completion. 9 of 15

10 of 15 DS1371 Special Purpose Registers The DS1371 has two additional registers (07h 08h) that control the WD/ALM counter, square-wave output, and interrupts. Control Register (07h) Bit # 7 6 5 4 3 2 1 0 Name EOSC WACE WD/ALM 0 INTCN RS2 RS1 AIE Default 0 0 0 0 0 1 1 0 Bit 7: Enable Oscillator (EOSC). When set to logic 0, the oscillator is started. When set to logic 1, the oscillator is stopped. When this bit is set to a logic 1, the oscillator is stopped and the DS1371 is placed into a low-power standby mode (I DDR ). This bit is clear (logic 0) when power is first applied. Bit 6: WD/ALM Counter Enable (WACE). When set to logic 1, the WD/ALM counter is enabled. When set to logic 0, the WD/ALM counter is disabled, and the 24-bits can be used as general-purpose RAM. This bit is clear (logic 0) when power is first applied. Bit 5: WD/ALM Counter Select (WD/ALM). When set to logic 0, the counter decrements every second until it reaches 0 and is then reloaded and restarted. When set to logic 1, the WD/ALM counter decrements every 1/4096 of a second (approximately every 244μs) until it reaches 0, sets the AF bit in the status register, and stops. If any of the WD/ALM counter registers are read or written, or a rising edge on the WDS pin occurs before the counter reaches 0, the counter is reloaded and restarted. This bit is clear (logic 0) when power is first applied. Bit 3: Interrupt Control (INTCN). This bit controls the SQW/INT signal. When the INTCN bit is set to logic 0, a square wave is output on the SQW/INT pin whose frequency is defined by bits RS2 and RS1. The oscillator must also be enabled for the square wave to be output. When the INTCN bit is set to logic 1, then this permits the alarm flag bit in the status register to assert SQW/INT (provided that the alarm is also enabled). The alarm flag is always set, regardless of the state of the INTCN bit. The INTCN bit is set to logic 0 when power is first applied. Bits 2 and 1: Rate Select 1 and 2 (RS2 and RS1). These bits control the frequency of the square-wave output when the square wave has been enabled. Table 3 shows the square-wave frequencies that can be selected with the RS bits. These bits are both set (logic 1) when power is first applied. Bit 0: Alarm Interrupt Enable (AIE). When set to logic 1, this bit permits the AF bit in the status register to assert SQW/INT (when INTCN = 1). When set to logic 0 or INTCN is set to logic 0, the AF bit does not initiate the SQW/INT signal. If the WD/ALM bit is set to a logic 1 and the AF flag is set, writing AIE to a 0 does not truncate the 250ms pulse on the SQW/INT pin. The AIE bit is at logic 0 when power is first applied. Table 3. SQW/INT Operating Modes WACE WD/ALM INTCN AIE RS2 RS1 SQW/INT OUTPUT X X 0 X 0 0 1Hz X X 0 X 0 1 4.096kHz X X 0 X 1 0 8.192kHz X X 0 X 1 1 32.768kHz 1 0 1 1 X X Alarm 1 1 1 1 X X WD

Status Register (08h) Bit # 7 6 5 4 3 2 1 0 Name OSF 0 0 0 0 0 0 AF Default 1 0 0 0 0 0 0 DS1371 Bit 7: Oscillator Stop Flag (OSF). A logic 1 in this bit indicates that the oscillator either is stopped or was stopped for some period and can be used to judge the validity of the timekeeping data. This bit is set to logic 1 any time that the oscillator stops. The following are examples of conditions that can cause the OSF bit to be set: The first time power is applied. The voltage present on V CC is insufficient to support oscillation. The EOSC bit is turned off. External influences on the crystal (e.g., noise, leakage, etc.) This bit remains at logic 1 until written to logic 0. Bit 0: Alarm Flag (AF). A logic 1 in the AF bit indicates that the WD/ALM counter reached 0. If INTCN is set to a 1, and WD/ALM is set to 0 and AIE is set to 1, the SQW/INT pin goes low and stays low until AF is cleared. AF is cleared when written to logic 0. This bit can only be written to logic 0. Attempting to write logic 1 leaves the value unchanged. If INTCN and WD/ALM are set to 1 and the AIE is set to 1, the SQW/INT pin pulses low for 250ms when the WD/ALM counter reaches 0 and sets AF = 1. At the completion of the 250ms pulse, the DS1371 clears the AF bit to a 0. If the 250ms pulse is active, writing AF to a 0 does not truncate the pulse. I 2 C Serial Interface The DS1371 supports a bidirectional I 2 C bus and data transmission protocol. A device that sends data onto the bus is defined as a transmitter and a device receiving data as a receiver. The device that controls the message is called a master. The devices that are controlled by the master are slaves. The bus must be controlled by a master device that generates the serial clock (SCL), controls the bus access, and generates the START and STOP conditions. The DS1371 operates as a slave on the I 2 C bus. Within the I 2 C bus specifications a standard mode (100kHz clock rate) and a fast mode (400kHz clock rate) are defined. The DS1371 works in both modes. Connections to the bus are made through the open-drain I/O lines SDA and SCL. The following bus protocol has been defined (Figure 4): Data transfer can be initiated only when the bus is not busy. During data transfer, the data line must remain stable whenever the clock line is HIGH. Changes in the data line while the clock line is high are interpreted as control signals. Accordingly, the following bus conditions have been defined: Bus not busy: Both data and clock lines remain HIGH. Start data transfer: A change in the state of the data line from high to low, while the clock line is high, defines a START condition. Stop data transfer: A change in the state of the data line from low to high, while the clock line is high, defines a STOP condition. 11 of 15

Data valid: The state of the data line represents valid data when, after a START condition, the data line is stable for the duration of the high period of the clock signal. The data on the line must be changed during the low period of the clock signal. There is one clock pulse per bit of data. Each data transfer is initiated with a START condition and terminated with a STOP condition. The number of data bytes transferred between the START and the STOP conditions is not limited, and is determined by the master device. The information is transferred byte-wise and each receiver acknowledges with a ninth bit. Within the I 2 C bus specifications a standard mode (100kHz clock rate) and a fast mode (400kHz clock rate) are defined. Acknowledge: Each receiving device, when addressed, is obliged to generate an acknowledge after the reception of each byte. The master device must generate an extra clock pulse, which is associated with this acknowledge bit. A device that acknowledges must pull down the SDA line during the acknowledge clock pulse in such a way that the SDA line is stable LOW during the HIGH period of the acknowledge-related clock pulse. Setup and hold times must be taken into account. A master must signal an end of data to the slave by not generating an acknowledge bit on the last byte that has been clocked out of the slave. In this case, the slave must leave the data line HIGH to enable the master to generate the STOP condition. Figure 4. I 2 C Data Transfer Overview 12 of 15

Figures 5 and 6 detail how data transfer is accomplished on the I 2 C bus. Depending upon the state of the R/W bit, two types of data transfer are possible: Data transfer from a master transmitter to a slave receiver. The first byte transmitted by the master is the slave address. Next follows a number of data bytes. The slave returns an acknowledge bit after each received byte. Data transfer from a slave transmitter to a master receiver. The first byte (the slave address) is transmitted by the master. The slave then returns an acknowledge bit. Next follows a number of data bytes transmitted by the slave to the master. The master returns an acknowledge bit after all received bytes other than the last byte. At the end of the last received byte, a not acknowledge is returned. The master device generates all of the serial clock pulses and the START and STOP conditions. A transfer is ended with a STOP condition or with a repeated START condition. Since a repeated START condition is also the beginning of the next serial transfer, the bus is not released. The DS1371 can operate in the following two modes: Slave receiver mode (DS1371 write mode). Serial data and clock are received through SDA and SCL. After each byte is received, an acknowledge bit is transmitted. START and STOP conditions are recognized as the beginning and end of a serial transfer. Address recognition is performed by hardware after reception of the slave address and direction bit. The slave address byte is the first byte received after the START condition is generated by the master. The slave address byte contains the 7-bit DS1371 address, which is 1101000, followed by the direction bit (R/W), which for a write is a 0. After receiving and decoding the slave address byte the DS1371 outputs an acknowledge on SDA. After the DS1371 acknowledges the slave address + write bit, the master transmits a word address to the DS1371. This sets the register pointer on the DS1371, with the DS1371 acknowledging the transfer. The master may then transmit zero or more bytes of data, with the DS1371 acknowledging each byte received. The register pointer increments after each byte is transferred. The master generates a STOP condition to terminate the data write. Slave transmitter mode (DS1371 read mode). The first byte is received and handled as in the slave receiver mode. However, in this mode, the direction bit indicates that the transfer direction is reversed. Serial data is transmitted on SDA by the DS1371 while the serial clock is input on SCL. START and STOP conditions are recognized as the beginning and end of a serial transfer. Address recognition is performed by hardware after reception of the slave address and direction bit. The slave address byte is the first byte received after the START condition is generated by the master. The slave address byte contains the 7-bit DS1371 address, which is 1101000, followed by the direction bit (R/W), which for a read is a 1. After receiving and decoding the slave address byte, the DS1371 outputs an acknowledge on SDA. The DS1371 then begins to transmit data starting with the register address pointed to by the register pointer. If the register pointer is not written to before the initiation of a read mode the first address that is read is the last one stored in the register pointer. The DS1371 must receive a not acknowledge to end a read. 13 of 15

Figure 5. I 2 C Write Protocol Figure 6. I 2 C Read Protocol Chip Information TRANSISTOR COUNT: 11,036 PROCESS: CMOS SUBSTRATE CONNECTED TO GROUND Thermal Information Theta-JA: 221 C/W Theta-JC: 39 C/W Package Information For the latest package outline information, go to www.maxim-ic.com/dallaspackinfo. PACKAGE 8-pin μsop DOCUMENT NUMBER 56-G2018-001 14 of 15

Revision History REV DATE DESCRIPTION DS1371 110502 Initial data sheet release. (Page 14) In Figures 6 and 7, corrected the slave address and removed the second 051203 START. Changed all 2-wire references to I 2 C. (Page 1) Added lead-free packages to the Ordering Information table. (Page 2) Removed A from J-STD-020 (Soldering Temperature) reference. Removed Figure 3 (oscillator circuit) and incorporated into new Figure 2 (page 5). (Page 6) In Pin Description table, added sentence saying no external resistors or capacitors are required for pins 1 and 2 (X1 and X2). 061406 (Page 7) Removed guard ring from Figure 3 (formerly Figure 4). (Page 9) Updated the Watchdog/Alarm Counter section. (Page 10) In Table 3, added the control bits affecting SQW/INT output operation. (Page 11) In the I 2 C Serial Interface section (formerly 2-Wire Serial Interface), added text about the part working in fast and standard I 2 C modes. (Page 14) Added package drawing information table. (Page 1) Corrected top mark information in the Ordering Information table. (Page 2) Changed I 022207 DDR max from 50nA to 100nA. (Page 7) In Table 1, changed ESR max from 45kΩ to 50kΩ. (Page 8) In Table 2, changed WD/ALM to WD/ALM for address 07h (Control Register). 15 of 15 Maxim/Dallas Semiconductor cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim/Dallas Semiconductor product. No circuit patent licenses are implied. Maxim/Dallas Semiconductor reserves the right to change the circuitry and specifications without notice at any time. Maxim Integrated Products, 120 San Gabriel Drive, Sunnyvale, CA 94086 408-737-7600 2007 Maxim Integrated Products The Maxim logo is a registered trademark of Maxim Integrated Products, Inc. The Dallas logo is a registered trademark of Dallas Semiconductor Corporation.