19-3322; Rev 0; 8/04 I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller Features The MAX6909/MAX6910 are real-time clocks (RTCs) with a microprocessor supervisor, optional trickle charger (MAX6910 only), backup power source, and NV RAM controller. The MAX6909/ MAX6910 provide alarm outputs to indicate a crystal failure, a switchover to battery power, and time and date indication. The NV RAM is 31 bytes of static RAM that are available for scratchpad storage. The MAX6909/ MAX6910 are controlled through a 2-wire serial bus. The real-time clock/calendar provides seconds, minutes, hours, day, date, month, and year information. The date is automatically adjusted for months with fewer than 31 days, including corrections for leap year up to the year 2100. The clock operates in either the 24-hour or 12-hour format with an AM/PM indicator. A time/date-programmable ALARM output completes the features list for the real-time clock section of the MAX6909/MAX6910. The alarm function can also be used in a polled mode by periodically reading the alarm out status bit in the minutes register. A crystal fail output, CX FAIL, indicates loss of accurate timekeeping due to crystal problems. A built-in µP supervisor with an open-drain reset ensures the µP powers up in a known state. A reset threshold is available for 3V or 3.3V supplies. The piezo transducer output, PZT, is register selectable for one of four frequencies, can be turned on and off through a register bit, or selected to go on when the ALM, alarm output, goes active. ♦ RTC Counts Seconds, Minutes, Hours, Date of the Month, Month, Day of the Week, and Year, with Leap Year Compensation Valid Up to 2100 ♦ 31 Bytes of RAM for Scratchpad Data Storage ♦ Uses Standard 32.768kHz, 6pF Load, Watch Crystal ♦ Programmable Time/Date, Open-Drain ALARM Output (Status Can also Be Polled) ♦ Chip Enable Gating (Control of CE with Reset and Power Valid) ♦ OUT Pin for SRAM Power ♦ µP Reset Output ♦ Watchdog Input The MAX6909/MAX6910 are available in a 20-pin QSOP package and operate over the -40°C to +85°C temperature range. ♦ Uses Less than 1µA Timekeeping Current at 3.0V ♦ Operating Voltages of 3V and 3.3V I2C-compatible ♦ Manual Reset Input with Push-Button Switch Debounce ♦ Independent Power-Fail and Reset Comparators ♦ 400kHz 2-Wire Interface ♦ Single-Byte or Multiple-Byte (Burst Mode) Data Transfer for Read or Write of Clock Registers or RAM ♦ Bus Timeout to Prevent Lockup of Malfunctioning Bus Interface ♦ Dual Power-Supply Pins for Primary and Backup Power ♦ Programmable Trickle Charger (MAX6910) Ordering Information Applications Point-of-Sale Equipment TEMP RANGE PIN-PACKAGE Programmable Logic Controller MAX6909EO30 PART -40°C to +85°C 20 QSOP Handheld Instruments MAX6909EO33 -40°C to +85°C 20 QSOP Medical Instrumentation MAX6910EO30 -40°C to +85°C 20 QSOP MAX6910EO33 -40°C to +85°C 20 QSOP Pin Configuration/Selector Guide/Typical Operating Circuit appear at end of data sheet. ________________________________________________________________ Maxim Integrated Products For pricing, delivery, and ordering information, please contact Maxim/Dallas Direct! at 1-888-629-4642, or visit Maxim’s website at www.maxim-ic.com. 1 MAX6909/MAX6910 General Description MAX6909/MAX6910 I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller ABSOLUTE MAXIMUM RATINGS All Voltages (with respect to GND) BATT or VCC ..........................................................-0.3V to +6.0V OUT, ALM, SCL, SDA, CX FAIL, PFO, RESET.......................................................-0.3V to +6.0V All Other Pins ............................................-0.3V to (VSUP + 0.3V) (where VSUP is greater of VBATT or VCC) Input Current VCC ........................................................................……500mA BATT .............................................................................100mA GND ................................................................................20mA Output Current OUT Continuous............................................................450mA All Other Outputs ............................................................20mA Continuous Power Dissipation (TA = +70°C) 20-Pin QSOP (derate 9.1mW/°C above +70°C)...........727mW Operating Temperature Range ...........................-40°C to +85°C Junction Temperature ......................................................+150°C Storage Temperature Range ............................ -65°C to +150°C Lead Temperature (soldering, 10s) ................................ +300°C 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 may affect device reliability. ELECTRICAL CHARACTERISTICS (VCC = VCC(MIN) to VCC(MAX), TA = -40°C to +85°C, unless otherwise noted. Typical values are at TA = +25°C.) (Notes 1, 2) PARAMETER Operating Voltage Range Operating Voltage Range BATT BATT Current (Note 5) Timekeeping Current (Note 5) SYMBOL VCC VBATT IBATT IBATT CONDITIONS MIN TYP MAX MAX69__EO30 (Note 3) 2.7 3.3 MAX69__EO33 (Note 3) 3.0 3.6 MAX69__EO30 (Note 4) 2.0 3.6 MAX69__EO33 (Note 4) 2.0 3.6 Crystal failcircuit disabled Crystal failcircuit enabled VBATT = 2V, VCC = 0V 0.75 VBATT = 3V, VCC = 0V 0.95 VBATT = 3.6V, VCC = 0V 1.1 VBATT = 2V, VCC = 0V 0.9 VBATT = 3V, VCC = 0V 4 VBATT = 3.6V, VCC = 0V 9 Active Supply Current (Note 6) ICCA PZT disabled, crystal-disabled VCC = 3.3V, VBATT = 0V 0.14 VCC = 3.6V, VBATT = 0V 0.15 Standby Current (Note 5) ICCS PZT disabled, crystal-disabled VCC = 3.3V, VBATT = 0V 7 VCC = 3.6V, VBATT = 0V 7 Standby Current (Note 5) ICCS Crystal failcircuit enabled VCC = 3.3V, VBATT = 0V 18 VCC = 3.6V, VBATT = 0V 25 Trickle-Charge Diode Voltage Drop (Two Diodes) 1.2 R1 Trickle Charge Resistors UNITS V V µA µA mA µA µA V 1.7 R2 2.8 R3 5.0 kΩ OUT OUT in Battery-Backup Mode (Note 4) 2 VBATT = 3.0V, VCC = 0V, IOUT = 20mA VBATT 0.15 VBATT - 0.1 VBATT = 2.0V, VCC = 0V, IOUT 10mA VBATT 0.1 VBATT - 0.05 VOUT V _______________________________________________________________________________________ I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller (VCC = VCC(MIN) to VCC(MAX), TA = -40°C to +85°C, unless otherwise noted. Typical values are at TA = +25°C.) (Notes 1, 2) PARAMETER OUT in VCC Mode (Note 4) SYMBOL CONDITIONS MIN TYP VCC = 3.0V, VBATT = 0V, IOUT = 100mA VCC 0.15 VCC 0.1 VCC = 2.7V, VBATT = 0V, IOUT = 50mA VCC – 0.1 VCC 0.05 VOUT MAX UNITS V VBATT to VCC Switchover Threshold VTRU Power-up (VCC < VRST) switch from VBATT to VCC (Note 7) VBATT + 0.05 V VCC to VBATT Switchover Threshold VTRD Power-down (VCC < VRST) switch from VCC to VBATT (Note 7) VBATT - 0.05 V CE IN AND CE OUT CE IN Leakage Current Disabled, VCC < VRST, V C E IN = VCC or GND CE IN to CE OUT Resistance VCC = VCC(min), VIH = 0.9VCC, VIL = 0.1VCC CE IN to CE OUT Propagation Delay 50Ω source impedance driver, CLOAD = 10pF, VCC = VCC(MIN), VIH = 0.9VCC, VIL = 0.1 VCC (Note 8), measured from 50% point on CE IN to the 50% point on CE OUT RESET (or RESET) Active to CE OUT disabled and pulled to VOUT Delay tRCE CE OUT Enabled and Connected to CE IN After VCC > VRST tRP CE OUT High (RESET or RESET Active) VOH MR low to high, VCC(MIN) < VCC < VCC(MAX) VCC = 0V, IOUT = -100µA, VBATT = 2V -1 +1 µA 70 140 Ω 5 15 ns 2 10 50 µs 140 200 280 ms 0.95 x VOUT V MANUAL RESET INPUT 0.3 × VCC VIL MR Input Threshold V 0.7 × VCC VIH MR Internal Pullup Resistance 50 MR Minimum Pulse Width kΩ 1 MR Glitch Immunity (Note 8) MR to Reset Delay (Note 8) µs 50 ns 200 350 ns 1.27 1.31 V POWER-FAIL INPUT AND POWER-FAIL OUTPUT PFI Input Threshold VPFT VCC = VCC(MIN) 1.19 _______________________________________________________________________________________ 3 MAX6909/MAX6910 ELECTRICAL CHARACTERISTICS (continued) MAX6909/MAX6910 I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller ELECTRICAL CHARACTERISTICS (continued) (VCC = VCC(MIN) to VCC(MAX), TA = -40°C to +85°C, unless otherwise noted. Typical values are at TA = +25°C.) (Notes 1, 2) PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS -100 +2 +100 nA PFI rising 0.06 0.2 2.2 PFI falling 2.4 5 12 PFI Input Current PFI to PFO Delay (Note 8) PFI Hysteresis VPFH PFI rising 30 PFO Output Voltage High VOH ISOURCE = 200µA, PFI = VCC = VCC(MIN) PFO Output Voltage Low VOL ISINK = 1.2mA, VBATT = 2V, PFI = VCC = 0V tWD Before first WDI edge, after reset timeout 1.00 tWD Register select—long 1.00 tWDS Register select—short 140 µs mV 0.9 × VCC V 0.2 V 1.6 2.25 s 1.6 2.25 s 200 280 ms WATCHDOG INPUT Watchdog Timeout Period Initial Watchdog Timeout Period Minimum WDI Input Pulse Width tWDI 100 ns 0.3 × VCC VIL WDI Input Threshold WDI Input Current IIL V 0.7 × VCC VIH VWDI = VCC or GND -100 +100 nA PZT OUTPUT PZT Output Short-Circuit Current (VCC Must Be > VRST for PZT to Be Active) MAX69_ _EO30 IPZT MAX69_ _EO33 Sink current 5 18 Source current 5 20 Sink current 6 20 Source current 6.5 mA 25 PZT Frequency 1 PZTf1 1024 Hz PZT Frequency 2 PZTf2 2048 Hz PZT Frequency 3 PZTf3 4096 Hz PZT Frequency 4 PZTf4 8192 PZT Off-Leakage Current IOLKG -1 Hz +1 µA CRYSTAL-FAIL OUTPUT CX FAIL Output Low Voltage VOL CX FAIL Off-Leakage Current IOLKG VBATT = 2.0V, VCC = 0V, IOL = 3mA 0.1 VCC = 2.7V, IOL = 5mA, VBATT = 0V 0.2 0.25 -1 +1 V µA ALARM OUTPUT ALM Output Low Voltage VOL ALM Off-Leakage Current IOLKG 4 IOL = 3mA, VBATT = 2.0V, VCC = 0V 0.2 IOL = 5mA, VCC = 2.7V, VBATT = 0V 0.25 -1 _______________________________________________________________________________________ +1 V µA I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller (VCC = VCC(MIN) to VCC(MAX), TA = -40°C to +85°C, unless otherwise noted. Typical values are at TA = +25°C.) (Notes 1, 2) PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS BATTERY ON OUTPUT BATT ON Output Low Voltage VOL BATT ON Off-Leakage Current IOLKG VBATT = 2.0V, IOL = 3mA, VCC = 0V 0.2 VBATT = 2.7V, IOL = 5mA, VCC = 0V 0.25 -1 +1 V µA RESET FUNCTION Reset Threshold VRST VRST Hysteresis VHYST Reset Active Timeout Period tRP RESET Output Low Voltage VOL RESET Off-Leakage Current ILKG RESET Output Low Voltage 2.80 2.93 3.00 MAX69_ _EO30 2.50 2.63 2.70 10 VCC falling from VRST(MAX) to VRST(MIN) at 10V/ms, measured from the beginning of VCC falling to RESET asserting high VCC Falling Reset Delay RESET Output High Voltage MAX69_ _EO33 VOH VOL 140 Reset asserted 50 µs 200 280 ms 0.2 V +1 µA -1 Reset asserted 0.8 × VCC IOH = 1mA, VCC = 2V, VBATT = 0V 0.9 × VCC VCC = VCC(MIN), IOL = 1.6mA mV 10 IOL = 1.6mA, VBATT = 2.0V, VCC = 0V IOH = 50µA, VCC = 1.0V, VBATT = 0V V V 0.032 0.1 V 2-WIRE DIGITAL INPUTS (SCL, SDA) (VCC(MIN) < VCC < VCC(MAX)) Input High Voltage VIH Input Low Voltage VIL Input Hysteresis 0.7 × VCC V 0.3 × VCC 0.05 × VCC VHYS V Input Leakage Current VIN = GND or VCC +1 µA Input Capacitance (Note 8) 10 pF IOL = 4mA, VCC = VCC(MIN) 0.4 V Output Low Voltage VOL -1 V _______________________________________________________________________________________ 5 MAX6909/MAX6910 ELECTRICAL CHARACTERISTICS (continued) MAX6909/MAX6910 I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller AC ELECTRICAL CHARACTERISTICS (VCC(MIN) < VCC < VCC(MAX), TA = -40°C to +85°C, unless otherwise noted.) (Note 2) PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS 0.32 400.00 kHz tTIMEOUT 1 2 s tBUF 1.3 µs Hold Time After (Repeated) START Condition; After This Period, the First Clock Is Generated tHD:STA 0.6 µs Repeated START Condition Setup Time tSU:STA 0.6 µs 2-WIRE BUS TIMING SCL Clock Frequency Bus Timeout Bus Free Time Between STOP and START Condition fSCL STOP Condition Setup Time tSU:STO Data Hold Time tHD:DAT Data Setup Time tSU:DAT SCL Low to Data Out Valid tVD:DAT (Note 9) 0.6 (Notes 10, 11) 0 µs 0.9 100 (Note 8) µs ns 50 ns SCL Low Period tLOW 1.3 µs SCL High Period tHIGH 0.6 µs SCL/SDA Rise Time tR (Note 12) 20 + 0.1 x CB 300 ns SCL/SDA Fall Time (Receiving) tF (Notes 12, 13) 20 + 0.1 x CB 300 ns SCL/SDA Fall Time (Transmitting) tF (Notes 12, 13) 20 + 0.1 x CB 250 ns Pulse Width of Spike Suppressed tSP (Note 8) 50 ns Capacitive Load of Each Bus Line CB 400 pF Note 1: Note 2: Note 3: Note 4: Note 5: Note 6: Note 7: Note 8: Note 9: Note 10: Note 11: Note 12: Note 13: 6 VRST is the reset threshold for VCC. See the Ordering Information. All parameters are 100% tested at TA = +85°C. Limits over temperature are guaranteed by design and not production tested. 2-wire serial interface is operational for VCC > VRST. See the Detailed Description section (BATT function). IBATT and ICCS are specified with SDA and SCLK pulled high, OUT floating, and CE OUT floating. 2-wire serial interface operating at 400kHz, SDA pulled high. For OUT switch over to BATT, VCC must fall below VRST and VBATT. For OUT switchover to VCC, VCC must be above VRST or above VBATT. Guaranteed by design. Not production tested. Due to the 2-wire bus timeout feature, there is a minimum specification on the SCL clock frequency based on a 31-byte burst-mode transaction to RAM. See the Timeout Feature section. A device must internally provide a hold time of at least 300ns for the SDA signal (referred to the VIH min of the SCL signal) in order to bridge the undefined region of the falling edge of SCL. The maximum tHD:DAT only has to be met if the device does not stretch the LOW period (tLOW) of the SCL signal. CB = total capacitance of one bus line in pF. The maximum tF for the SDA and SCL bus lines is specified at 300ns. The maximum fall time for the SDA output stage tF is specified at 250ns. This allows series protection resistors to be connected between the SDA/SCL pins and the SDA/SCL bus lines without exceeding the maximum specified tF. _______________________________________________________________________________________ I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller VCC = 3V VBATT = 0V IOUT = 100mA 70 VCC = 3.3V VBATT = 0V IOUT = 100mA 60 300 250 200 VBATT = 3.0V VCC = 0V IOUT = 50mA 150 -15 10 35 60 -40 85 -15 10 35 60 650 600 550 500 450 -40 85 -15 10 35 60 TEMPERATURE (°C) TEMPERATURE (°C) TEMPERATURE (°C) RESET TIMEOUT PERIOD vs. TEMPERATURE RESET COMPARATOR DELAY vs. VCC FALLING RESET COMPARATOR DELAY vs. TEMPERATURE 1000 MAX6909/10 toc04 215 100 RESET DELAY (µs) 210 205 200 195 190 25 10 85 VCC FALLING AT 10V/ms 24 23 RESET DELAY (µs) 220 MAX6909/10 toc05 -40 VBATT = 3V VCC = 0V CRYSTAL FAIL-DETECTION DISABLED 400 100 50 TIMEOUT PERIOD (ms) VBATT = 2V VCC = 0V IOUT = 50mA 700 MAX6909/10 toc06 80 MAX6909/10 toc02 90 350 BATT-TO-OUT VOLTAGE (mV) MAX6909/10 toc01 VCC TO OUT VOLTAGE (mV) 100 BATT TIMEKEEPING CURRENT vs. TEMPERATURE MAX6909/10 toc03 BATT-TO-OUT VOLTAGE vs. TEMPERATURE BATT TIMEKEEPING CURRENT (nA) VCC TO OUT VOLTAGE vs. TEMPERATURE 22 21 20 19 18 1 17 185 16 180 0.1 5 20 35 50 65 80 15 0.1 1 TEMPERATURE (°C) 100 1000 RESET THRESHOLD vs. TEMPERATURE 1.243 1.242 3.080 3.075 3.070 3.065 1.241 1.240 1.239 1.238 1.237 3.060 1.236 3.055 1.235 3.050 1.234 5 20 35 50 TEMPERATURE (°C) 65 80 35 50 65 80 100 PFO DELAY (µs) PFI THRESHOLD (V) 3.085 20 PFI-TO-PFO DELAY vs. PFI FALLING PFI THRESHOLD vs. TEMPERATURE MAX6909/10 toc08 3.090 5 TEMPERATURE (°C) 1.244 MAX6909/10 toc07 3.095 -40 -25 -10 -40 -25 -10 VCC FALLING (V/ms) 3.100 RESET THRESHOLD (V) 10 MAX6909/10 toc09 -40 -25 -10 10 1 0.1 -40 -25 -10 5 20 35 50 TEMPERATURE (°C) 65 80 1 10 100 1000 PFI FALLING (V/ms) _______________________________________________________________________________________ 7 MAX6909/MAX6910 Typical Operating Characteristics (VCC = 3.3V, VBATT = 3V, TA = +25°C, unless otherwise noted.) Typical Operating Characteristics (continued) (VCC = 3.3V, VBATT = 3V, TA = +25°C, unless otherwise noted.) WATCHDOG TIMEOUT PERIOD vs. TEMPERATURE 11.5 11.0 10.5 1.690 1.685 1.680 1.675 1.670 1.665 -40 -25 -10 5 20 35 50 65 -40 -25 -10 80 110 100 90 80 5 20 35 50 65 VCE_IN = 0.9 x VCC 110 VCC = VRST + 0.1V = 2.73V 90 80 VCC = VRST + 0.1V = 3.03V 70 PZT OUTPUT RESISTANCE (Ω) MAX6909/10 toc13 CE_IN TO CE_OUT ON-RESISTANCE (Ω) 3.0 3.3 PZT OUTPUT RESISTANCE vs. VCC 120 70 65 PZT OUTPUT RESISTANCE = (VBATT/ISINK + VCC/ISOURCE) / 2 60 55 50 45 40 60 -40 -15 -10 35 60 2.7 85 3.3 3.6 MAXIMUM TRANSIENT DURATION vs. RESET COMPARATOR OVERDRIVE PZT OUTPUT RESISTANCE vs. TEMPERATURE VCC = 3V 50 VCC = 3.3V 40 MAX6909/10 toc16 70 100 MAXIMUM TRANSIENT DURATION (µs) MAX6909/10 toc15 80 60 3.0 VCC VOLTAGE (V) TEMPERATURE (°C) PZT OUTPUT RESISTANCE (Ω) 2.7 VCC VOLTAGE (V) CE_IN TO CE_OUT ON-RESISTANCE vs. TEMPERATURE 100 70 80 TEMPERATURE (°C) TEMPERATURE (°C) 90 80 70 RESET ASSERTS ABOVE THIS LINE 60 50 40 30 20 10 0 30 -40 -15 10 35 TEMPERATURE (°C) 8 VCE_IN = 0.9 x VCC 1.660 10.0 MAX6909/10 toc12 1.695 120 MAX6909/10 toc14 12.0 MAX6909/10 toc11 12.5 WATCHDOG TIMEOUT PERIOD (ms) PFI FALLING AT 10V/ms CE_IN TO CE_OUT ON-RESISTANCE vs. VCC 1.700 MAX6909/10 toc10 13.0 CE_IN TO CE_OUT ON-RESISTANCE (Ω) PFI-TO-PFO DELAY vs. TEMPERATURE PFO DELAY (µs) MAX6909/MAX6910 I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller 60 85 0 50 100 150 200 250 300 350 400 450 500 OVERDRIVE (mV) _______________________________________________________________________________________ 3.6 I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller PIN NAME FUNCTION 1 BATT Backup Battery Input. When VCC falls below the reset threshold and VBATT, OUT connects to BATT. Connect BATT to GND if no backup battery supply is used. 2 OUT Supply Output for CMOS RAM or Other ICs Requiring Use of Backup Battery Power. Bypass to GND with at least a 0.1µF capacitor. 3 BATT ON 4 CE IN 5 PFI Power-Fail Comparator Input. For monitoring external power supplies. 6 MR Manual Reset Input. The active-low input has an internal pullup resistor. Internal debouncing circuitry ensures noise immunity. Leave open if unused. 7 WDI Watchdog Input 8 GND 9 X1 32.768kHz Crystal Pin; Oscillator Input 10 X2 32.768kHz Crystal Pin; Oscillator Output 11 CX FAIL 12 SDA Logic Output Open Drain. BATT ON is low when the MAX6909/MAX6910 are powered from BATT. Chip-Enable Input. Input to the chip-enable switch used for external RAM. Connect to VCC if unused. Ground Crystal Fail Output. Open drain, active low. Serial Data Line. Data input/output connection for the 2-wire serial interface. 13 SCL Serial Clock Line. Clock input connection for the 2-wire serial interface. 14 ALM Alarm Output. Open drain, active low. 15 PZT Piezo Transducer Output. Push-pull Piezo transducer output. 16 PFO Power-Fail Comparator Output. Push-pull active low. 17 CE OUT 18 RESET 19 RESET 20 VCC Chip-Enable Output. For controlling external RAM. Open-Drain, Active-Low Reset Output Push-Pull, Active-High Reset Output. Complement of RESET. Main Supply Input. Bypass to GND with at least a 0.01µF capacitor. Detailed Description The MAX6909/MAX6910 contain eight 8-bit timekeeping registers, two burst address registers, a trickle charge register, a control register, a configuration register, an alarm configuration register, and seven alarm threshold registers, all controlled through a 2-wire serial interface. Figure 1 is the MAX6909/MAX6910 block diagram. The OUT pin supplies voltage for CMOS RAM or other ICs requiring the use of backup battery power. When VCC rises above the reset threshold (VRST) or above VBATT, OUT is connected to VCC. When VCC falls below VRST and VBATT, BATT is connected to OUT. If enabled, an on-board trickle charger charges BATT from VCC. BATT can act as a backup supply from either a battery or SuperCap™. When operating from BATT, the batteryon output (BATT ON) is pulled low and can be used as an indicator of operation in battery backup mode. SuperCap is a trademark of Baknor Industries. There are two reset outputs, RESET and RESET. They become active while VCC is below the reset threshold (VRST) or while manual reset (MR) is held low, and for t RP after MR goes high, V CC rises above the reset threshold, or a WDI pulse is not received when the watchdog function is enabled. Reset thresholds are available for 3V and 3.3V applications. See the Ordering Information for specifics. MR is internally pulled high and contains debounce circuitry to accommodate a manual pushbutton reset switch. The WDI, when enabled, keeps RESET and RESET from becoming active if it is strobed once every tWDS or tWD. The watchdog timeout is selectable in the configuration register. Other features include internal chip-enable gating logic, which accepts a valid CE IN from a microprocessor and only gates it through as valid to CE OUT when the MAX6909/MAX6910 are not in a reset state. This can be used for disabling CMOS RAM to limit current consumption when OUT is switched to BATT. _______________________________________________________________________________________ 9 MAX6909/MAX6910 Pin Description MAX6909/MAX6910 I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller X1 OSCILLATOR 32.768kHz X2 FREQUENCY SELECT DIVIDERS SOURCE SELECT CRYSTALFAIL DETECT CX_FAIL PZT WDI WATCHDOG TIMER MR DEBOUNCE CIRCUIT RESET RESET LOGIC PFI PFO 1.2V CE_IN CE CONTROL 1Hz SECONDS MINUTES HOURS DATE MONTH BATT DAY OUT YEAR POWER CONTROL VCC GND CONTROL CONTROL LOGIC TRICKLE CHARGER BATT_ON CENTURY SCL ADDRESS REGISTER INPUT SHIFT REGISTERS SDA ALARM CONFIG TEST CONFIG 31 x 8 RAM CX STATUS CONFIG ALARM THRESHOLDS CLK BURST ALM RAM BURST ALARM CONTROL LOGIC Figure 1. MAX6909/MAX6910 Block Diagram 10 RESET ______________________________________________________________________________________ CE_OUT I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller Crystal Selection A 32.768kHz crystal is connected to the MAX6909/ MAX6910 through pins 9 and 10 (X1 and X2). The crystal selected for use should have a specified load capac- itance (CL) of 6pF where the capacitive load is included in the MAX6909/MAX6910. When designing the PC board, keep the crystal as close to the X1 and X2 pins as possible. Keep the trace lengths short and small and place a guard ring around the crystal and connect the ring to GND to reduce capacitive loading and prevent unwanted noise pickup. Keep all signals out from beneath the crystal and the X1 and X2 pins to prevent noise coupling. Finally, an additional local ground plane on an adjacent PC board layer can be added under the crystal to shield it from unwanted pickup from traces on other layers of the board. This plane should be isolated from the regular PC board ground plane, should be no larger than the perimeter of the guard ring, and connected to the GND pin of the MAX6909/MAX6910. Ensure that this ground plane does not contribute to significant capacitance between signal line and ground on the connections that run from X1 and X2 to the crystal. Figure 2 shows the recommended crystal layout. Some crystal manufacturers and part numbers for their SMT, 32.768kHz watch crystals that require 6pF loads are listed in Table 1. In addition, these manufacturers offer other package options depending upon the specific application considerations. GROUND PLANE VIA CONNECTION * GUARD RING * * * ** * MAX6909/MAX6910 * * * 10 11 * SM WATCH CRYSTAL * ** * GROUND PLANE VIA CONNECTION ** *LAYER 1 TRACE **LAYER 2 LOCAL GROUND PLANE CONNECT ONLY TO PIN 8 GROUND PLANE VIA CONNECTION Figure 2. Recommended Crystal Layout ______________________________________________________________________________________ 11 MAX6909/MAX6910 A power-fail comparator is available to monitor other system voltages through PFI and report the status through PFO. If the MAX6909/MAX6910 are in reset, PFO is low; otherwise, it is high as long as PFI is greater than 1.27V (typ). The piezo transducer drive output (PZT) has registerselectable frequencies of 1.024kHz, 2.048kHz, 4.096kHz, or 8.192kHz. This output can be selected to become active when the alarm is triggered or can be independently controlled through the configuration register. When activated, the PZT outputs a frequency with an attention-getting 1Hz duty cycle of 50% on and 50% off. An on-chip crystal oscillator maintaining circuit, for use with a 32.768kHz crystal, provides the clock for timekeeping functions. A crystal fail output (CX FAIL) alerts the user when the 32.768kHz crystal oscillator has failed for 30 cycles (typ), resulting in conditions that produce invalid timekeeping data. The crystal fail function can also be polled by reading the status bit in the CX status register. Table 1. Crystal Manufacturers and Part Numbers MANUFACTURER PART TEMP RANGE (°C) CL (pF) +25°C FREQUENCY TOLERANCE (ppm) Caliber Electronics AWS2A-32.768KHz, AWS2B-32.768KHz -20 to +70 6 ±20 ECS INC International ECS-.327-6.0-17 -10 to +60 6 ±20 Fox Electronics FSM327 -40 to +85 6 ±20 M-tron SX2010/ SX2020 -20 to +75 6 ±20 Raltron RSE-32.768-6-C-T -10 to +60 6 ±20 Timekeeping accuracy of the MAX6909/MAX6910 is dependent on the frequency stability of the external crystal. To determine frequency stability, use the parabolic curve of Figure 3 and the following equations: ∆f = f ✕ k ✕ (T0 - T)2 where: ∆f = change in frequency from +25°C (Hz) f = nominal crystal frequency (Hz) k = parabolic curvature constant (-0.035 ±0.005ppm/°C2 for 32.768kHz watch crystals) T0 = turnover temperature (+25°C ±5°C for 32.768kHz watch crystals) T = temperature of interest (°C) For example: What is the worst-case change in oscillator frequency from +25°C ambient to +45°C ambient? ∆fdrift = 32,768Hz ✕ (-0.04ppm/°C)2 ✕ (20°C - 45°C)2 = -0.8192Hz What is the worst-case timekeeping error per second? 1) Error due to temperature drift: ∆tdrift {[1 / [(f + ∆fdrift) / 32,768]] - 1s} / 1s ∆tdrift {[1 / [(32,768Hz - 0.8192Hz) / 32,768]] - 1s} / 1s = 0.000025s / s 2) Error due to +25°C initial crystal tolerance of ±20ppm: ∆finitial = 32,768Hz ✕ (-20ppm) = -0.65536Hz ∆tinitial = {[1 / [(f + ∆finitial) / 32,768]] - 1} / 1s ∆tinitial = {[1 / [32,768 - 0.65536 / 32,768]] - 1} / 1s = 0.000020s / s 3) Total timekeeping error per second: ∆ttotal = ∆tdrift + tinitial ∆ttotal = 0.000025s / s + 0.000020s / s = 0.000045 s / s TYPICAL TEMPERATURE CHARACTERISTICS (k = -0.035ppm/°C2; TO = +25°C) 0 Rf MAX6909 -50 ∆f (ppm) MAX6909/MAX6910 I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller Rd -100 Cg 12pF -150 Cd 12pF -200 -250 X1 -50-40-30-20-10 0 10 20 30 40 50 60 70 80 90 100 TEMPERATURE (°C) Figure 3. Frequency Stability and Temperature 12 X2 EXTERNAL CRYSTAL Figure 4. Oscillator Functional Schematic ______________________________________________________________________________________ I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller PARAMETER Frequency SYMBOL MIN f Equivalent series resistance (ESR) RS Parallel load capacitance CL Q factor Q After 1 month that translates to: TYP MAX 32.768 kHz 60 6 UNITS kΩ pF 40,000 RAM hr min s ∆t = (31day) × 24 × 60 × × 60 hr min day (0.000045s / s) = 120.158s Total worst-case timekeeping error at the end of 1 month at +45°C is approximately 120s or 2min (assumes negligible parasitic layout capacitance). Figure 5 shows the register address definition. Table 3 is the hex register address/description. Control Register (Write Protect Bit) Bit 7 of the control register is the write protect bit. The lower 7 bits (bits 0–6) are forced to zero and always read a zero when read. Before any write operation to the clock or RAM, bit 7 must be zero. When high, the write protect bit prevents a write operation to any other register. Hours Register (AM-PM/12-24 Mode) Bit 7 of the hours register is defined as the 12-hour or 24-hour mode select bit. When high, the 12-hour mode is selected. In the 12-hour mode, bit 5 is the AM/PM bit with logic high being PM. In the 24-hour mode, bit 5 is the second 10-hour bit (20h–23h). Clock Burst Addressing the clock burst register specifies burst mode operation. In this mode, the first seven clock/calendar registers and the control register can be consecutively read or written starting with bit 7 of address BEh for a write and BFh for a read. If the write protect bit is set high when a write clock/calendar burst mode is specified, no data transfer occurs to any of the seven clock/calendar registers or the control register. When writing to the clock registers in the burst mode, all eight registers must be written in order for the data to be transferred. In addition, the WP bit in the control register must be set to zero prior to a clock burst write. The static RAM is 31 bytes addressed consecutively in the RAM address space. Even address/commands (C0h–FCh) are used for writes, and odd address/commands (C1h–FDh) are used for reads. The contents of the RAM are static and remain valid for VOUT down to 1.5V (typ). RAM Burst Addressing the RAM burst register specifies burst mode operation. In this mode, the 31 RAM registers can be consecutively read or written starting with bit 7 of address FEh for a write and FFh for a read. When writing to RAM in burst mode, it is not necessary to write all 31 bytes for the data to transfer. Each byte that is written to is transferred to RAM regardless of whether all 31 bytes are written. Trickle Charge Register (MAX6910) The trickle charge register controls the trickle charger characteristics of the MAX6910. The trickle charger functional schematic (Figure 6) shows the basic components of the trickle charger. Table 4 details the bit settings for trickle charger control. Trickle charge selection (TCS) bits D7–D4 control the selection of the trickle charger. In order to prevent accidental enabling, only a pattern of 1010 enables the trickle charger. All other patterns disable the trickle charger. The MAX6910 powers up with the trickle charger disabled. The diode select (DS) bits (D3–D2) select whether two diodes or no diodes are connected between VCC and BATT. If DS is 10, no diode is selected; if DS is 01, two diodes are selected. If DS is 00 or 11, the trickle charger is disabled independent of the state of the TCS bits. The RS bits (D1–D0) select the resistor that is connected between VCC and BATT. If both RS bits are set to zero, the trickle charger is disabled, regardless of any other bit states in the trickle charger register. RS bits set to 10 select a 1.7K, 01 selects 2.9K, and 11 select 5K. ______________________________________________________________________________________ 13 MAX6909/MAX6910 Table 2. Acceptable Quartz Crystal Parameters MAX6909/MAX6910 I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller REGISTER ADDRESS FUNCTION SEC MIN REGISTER DEFINITION A7 A6 A5 A4 A3 A2 A1 A0 1 0 0 0 0 0 0 RD 00-59 0 /W *POR STATE 0 RD 00-59 1 0 0 0 0 0 1 VALUE /W *POR STATE HR 1 0 0 0 0 1 0 RD /W YEAR CONTROL 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 1 1 0 1 0 1 1 CENTURY 1 ALARM CONFIG 0 0 1 0 0 0 1 0 0 0 1 1 0 0 0 1 1 0 1 0 0 1 0 1 1 0 0 0 0 10 HR A/P 0/1 10 HR 0 0 1/0 0 *POR STATE 0 0 0 01-28/29 01-30 01-31 0 0 10 DATE *POR STATE 0 0 0 0 0 0 0 0 0 0 1 DATE 0 01-12 0 0 0 10 M 0 0 0 0 0 0 0 01-07 0 0 0 0 0 /W *POR STATE 0 0 0 0 0 0 0 1 1 0 0 00-99 /W *POR STATE RD *POR STATE RD *POR STATE RD 00-99 /W *POR STATE 10 YEAR 1 1 1 MONTH RD RD 0 0 1 WEEKDAY 0 1 1 YEAR 0 0 WP 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 TCS TCS TCS TCS DS DS RS RS 0 0 0 0 0 0 0 0 1000 YEAR 100 YEAR 0 0 0 1 1 0 0 1 *POR STATE 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 *POR STATE 0 0 0 0 0 1 1 1 RD RD NOTE: *POR STATE DEFINES POWER-ON RESET STATE OF REGISTER CONTENTS. THE TEST CONFIG REGISTER IS A READ-ONLY REGISTER. Figure 5. Register Address Definition (Sheet 1 of 2) 14 0 1 HR *POR STATE /W TEST CONFIG 0 1 MIN /W /W 0 10 MIN RD /W TRICKLE CHARGER 1 SEC SEC DAY 1 0 MIN MONTH 0 HOUR 1 0 D0 DATE 1 0 D1 MONTH 0 D2 DAY 0 D3 YEAR 0 D4 CX FAIL EN 0 ALM OUT 0 D5 10 SEC 0 00-23 12/24 01-12 1 D6 RD /W DATE D7 ______________________________________________________________________________________ I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller FUNCTION CX STATUS REGISTER DEFINITION A7 A6 A5 A4 A3 A2 A1 A0 1 0 0 1 1 0 0 RD VALUE /W *POR STATE CONFIG 1 0 0 1 1 0 1 MIN HR 1 1 1 0 0 0 0 0 1 1 1 0 1 1 0 1 1 0 0 1 0 D7 D6 D5 D4 D3 D2 D1 D0 CX FAIL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 WD EN 0 0 WD TIME *POR STATE 0 0 0 0 RD 00-59 0 /W *POR STATE 0 RD /W ALARM THRESHOLDS: SEC RD 00-59 0 /W *POR STATE 0 RD 01-12 1 0 1 0 0 0 1 MONTH DAY YEAR CLOCK BURST 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 1 0 0 1 1 1 1 0 1 0 1 0 1 1 1 0 1 1 1 1 1 10 MIN 1 1 0 10 HR A/P 0/1 10 HR 1 1/0 0 0 1 1 1 MIN 1 1 0 1 01-28/29 01-30 01-31 0 0 10 DATE *POR STATE 0 0 1 1 /W 0 1 SEC *POR STATE RD PZT PZT PZT PZT SEL CNTL REFQ FREQ 10 SEC 00-23 12/24 /W DATE MAX6909/MAX6910 REGISTER ADDRESS 1 1 1 1 1 HR 1 1 1 DATE 1 RD 01-12 0 0 0 10 M /W *POR STATE 0 0 0 1 1 1 1 1 1 MONTH 1 RD 01-07 0 0 0 0 0 /W *POR STATE 0 0 0 0 0 0 10 YEAR 1 1 WEEKDAY 0 0 RD 00-99 /W *POR STATE 1 1 1 1 1 1 1 YEAR 1 1 RAM DATA 0 X X X X X X X X RAM DATA 30 X X X X X X X X RD /W RAM RAM 0 1 1 0 0 0 0 0 RD /W RAM 30 1 1 1 1 1 1 1 RD /W RAM BURST 1 1 1 1 1 1 1 RD /W NOTE: *POR STATE DEFINES POWER-ON RESET STATE OF REGISTER CONTENTS. Figure 5. Register Address Definition (Sheet 2 of 2) ______________________________________________________________________________________ 15 MAX6909/MAX6910 I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller Table 3. Hex Register Address/Description WRITE (HEX) READ (HEX) 80 81 Seconds DESCRIPTION POR CONTENTS (HEX) 00 POR CONTENTS (BCD) 00 82 83 Minutes 00 00 84 85 Hours 00 00 86 87 Date 01 01 88 89 Month 01 01 8A 8B Day 01 01 8C 8D Year 70 70 8E 8F Control 00 00 90 91 Trickle charger 00 00 92 93 Century 19 19 94 95 Alarm configuration 00 00 — 97 Test configuration* 07 07 98 99 CX status 00 00 9A 9B Configuration 00 00 9C 9D Seconds alarm threshold 7F 7F 9E 9F Minutes alarm threshold 7F 7F A0 A1 Hours alarm threshold BF BF A2 A3 Date alarm threshold 3F 3F A4 A5 Month alarm threshold 1F 1F A6 A7 Day alarm threshold 00 00 A8 A9 Year alarm threshold FF FF BE BF Clock burst N/A N/A C0 C1 RAM 0 Indeterminate Indeterminate C2 C3 RAM 1 Indeterminate Indeterminate C4 C5 RAM 2 Indeterminate Indeterminate C6 C7 RAM 3 Indeterminate Indeterminate C8 C9 RAM 4 Indeterminate Indeterminate CA CB RAM 5 Indeterminate Indeterminate CC CD RAM 6 Indeterminate Indeterminate CE CF RAM 7 Indeterminate Indeterminate D0 D1 RAM 8 Indeterminate Indeterminate D2 D3 RAM 9 Indeterminate Indeterminate D4 D5 RAM 10 Indeterminate Indeterminate D6 D7 RAM 11 Indeterminate Indeterminate D8 D9 RAM 12 Indeterminate Indeterminate DA DB RAM 13 Indeterminate Indeterminate DC DD RAM 14 Indeterminate Indeterminate DE DF RAM 15 Indeterminate Indeterminate E0 E1 RAM 16 Indeterminate Indeterminate E2 E3 RAM 17 Indeterminate Indeterminate *This is a read-only register. 16 ______________________________________________________________________________________ I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller WRITE (HEX) READ (HEX) E4 E5 E6 E7 E8 DESCRIPTION POR CONTENTS (HEX) POR CONTENTS (BCD) RAM 18 Indeterminate Indeterminate RAM 19 Indeterminate Indeterminate E9 RAM 20 Indeterminate Indeterminate EA EB RAM 21 Indeterminate Indeterminate EC ED RAM 22 Indeterminate Indeterminate EE EF RAM 23 Indeterminate Indeterminate F0 F1 RAM 24 Indeterminate Indeterminate F2 F3 RAM 25 Indeterminate Indeterminate F4 F5 RAM 26 Indeterminate Indeterminate F6 F7 RAM 27 Indeterminate Indeterminate F8 F9 RAM 28 Indeterminate Indeterminate FA FB RAM 29 Indeterminate Indeterminate FC FD RAM 30 Indeterminate Indeterminate FE FF RAM Burst N/A N/A Diode and resistor selection is determined by the user, according to the maximum current desired for the battery or SuperCap charging. The maximum charging current can be calculated as shown in the following example. Assume that a system power supply of 3V is applied to VCC and a SuperCap is connected to BATT. Also assume that the trickle charger has been enabled with no diode and resistor R1 between VCC and BATT. The maximum current IMAX would therefore be calculated as follows: IMAX = 3.0V 3.0V ≈ ≈ 1.76mA R1 1.7kΩ As the SuperCap charges, the voltage difference between VCC and VBATT decreases, and therefore the charge current decreases. The MAX6909 does not feature a trickle charger. Power Control, Trickle Charger, and Battery Switchover BATT provides power as a battery backup. VCC provides the primary power in dual-supply systems where BATT is connected as a backup source to maintain the timekeeping function and RAM + register contents. When VCC rises above the reset threshold, VRST, VCC powers the MAX6909/MAX6910. When VCC falls below the reset threshold, VRST, and is less than VTPD, BATT powers the MAX6909/MAX6910. If VCC falls below the reset threshold, V RST , and is more than V TPD , V CC powers the MAX6909/MAX6910. When RESET and RESET are active, all inputs (MR, WDI, CE IN, and the 2-wire interface) are disabled. In addition, when operating from BATT, the outputs RESET, RESET, and PFO remain in the active state, PZT is high impedance and CE OUT is pulled to OUT. The timekeeping function remains active, together with the alarm function and crystal fail function if enabled. To minimize power consumption when operating from BATT, some functions are disabled; see Table 5. MAX6909/ MAX6910 functional blocks remain active when powered from VCC or BATT. A battery can be connected prior to application of VCC with no current being drawn from the battery and the MAX6909/MAX6910 remaining inactive. This is the freshness seal mode of operation. On the very first application of V CC to the MAX6909/MAX6910, V CC must rise above the reset threshold. The battery should only be changed with VCC applied in order to maintain timekeeping functions. The trickle charger can be enabled and disabled through software control but is automatically disabled whenever VCC falls below VBATT. ______________________________________________________________________________________ 17 MAX6909/MAX6910 Table 3. Hex Register Address/Description (continued) MAX6909/MAX6910 I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller Table 4. Trickle-Charger Register Control D7 D6 D5 D4 D3 D2 D1 D0 TCS TCS TCS TCS DS DS RS RS X X X X 0 0 X X Trickle charger disabled X X X X 1 1 X X Trickle charger disabled X X X X X X 0 0 Trickle charger disabled 1 0 1 0 1 0 1 0 No diode selected; 1.7K selected 1 0 1 0 1 0 0 1 No diode selected; 2.9K selected 1 0 1 0 1 0 1 1 No diode selected; 5K selected 1 0 1 0 0 1 1 0 Two diodes selected; 1.7K selected 1 0 1 0 0 1 0 1 Two diodes selected; 2.9K selected 1 0 1 0 0 1 1 1 Two diodes selected; 5K selected ACTION R1 1.7kΩ R2 2.9kΩ VCC R3 5kΩ BATT PIN 1 PIN 20 1 OF 16 SELECT (NOTE: ONLY 1010 CODE ENABLES CHARGER) 1 OF 2 SELECT 1 OF 3 SELECT TCS = TRICKLE CHARGER SELECT DS = DIODE SELECT RS = RESISTOR SELECT TCS TCS TCS TCS DS DS RS RS REGISTER BIT 7 BIT 6 BIT 6 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0 TRICKLE CHARGE Figure 6. Trickle-Charger Functional Schematic OUT Function Oscillator Start Time OUT is an output supply voltage for external devices. When VCC rises above the reset threshold or is greater than VBATT, OUT connects to VCC. When VCC falls below VRST and VBATT, OUT connects to BATT. There is a typical VTRU - VTRD hysteresis associated with the switching between VCC and BATT if BATT < VRST and typically VHYST of hysteresis if BATT > VRST. Connect at least a 0.1µF capacitor from OUT to ground (GND). Switching from VCC to BATT uses a break-before-make switch; a capacitor from OUT to GND prevents loss of power needed for clock data and RAM during switchover. The MAX6909/MAX6910 oscillator typically takes 100ms to settle to its optimum operating power level after startup. To ensure the oscillator is operating, the system software should validate this by reading the seconds register. Any reading with more than 0s, from the POR value of 0s, is a validation that the oscillator is operating. 18 Power-On Reset (POR) The MAX6909/MAX6910 contain an integral POR circuit that ensures all registers are reset to a known state on power-up. On initial power-up, once VOUT rises above 0.75V (typ), the POR circuit releases the registers for normal operation. Should VOUT dip to less than 1.5V (typ), the contents of the MAX6909/MAX6910 registers can no longer be guaranteed. ______________________________________________________________________________________ I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller PIN PIN NAME POWER = VCC VCC < VRST Crystal Oscillator I/O 9 X1 Enabled Enabled Crystal Oscillator I/O 10 X2 Enabled Enabled Backup Power-Supply Input 1 BATT N/A N/A Power pin OUT (> of VCC or BATT if VCC < VRESET) 2 OUT N/A N/A Power output pin Manual Reset Input 6 MR Enabled Disabled Battery-On Output 3 BATT ON Enabled Enabled Watchdog Input 7 WDI Enabled Disabled Input ignored Chip-Enable Input 4 CE IN Enabled Disabled Input ignored Power-Fail Input 5 PFI Enabled Disabled Input ignored Ground 8 GND N/A N/A Active Low, Open-Drain Reset Output (-OD) 18 RESET Enabled Enabled Pulled low Active High, Push/Pull Reset Output 19 RESET Enabled Enabled Pulled to VCC Chip-Enable Output 17 CE OUT Enabled Disabled Pulled to OUT Power-Fail Output 16 PFO Enabled Enabled Pulled low Alarm Output 14 ALM Enabled Enabled Piezo Output 15 PZT Enabled Disabled Crystal-Fail Output 11 CX FAIL Enabled Enabled 2-Wire Bus Data I/O 12 SDA Enabled Disabled Disabled DESCRIPTION VCC < VRST COMMENTS COMMENTS Input ignored Power pin High impedance 2-Wire Bus Clock 13 SCL Enabled Main Power-Supply Input 20 VCC N/A N/A Enabled Disabled Crystal Oscillator Enabled Enabled Supply = OUT RAM Enabled Enabled Supply = OUT Timekeeping Registers Enabled Enabled Supply = OUT Control Registers Enabled Enabled Supply = OUT Crystal Fail Detect Enabled Enabled Supply = OUT Alarm Registers Enabled Enabled Power-Fail Comparator Enabled Enabled RESET Comparator Enabled Enabled Supply = VCC Watchdog Timer Enabled Disabled Supply = OUT Internal Reference Power Switchover Enabled Enabled Supply = VCC Enabled Enabled Supply = VCC CE Circuitry Enabled Disabled Supply = OUT Piezo Dividers/Select Register Enabled Enabled Supply = OUT Trickle Charge Enabled Disabled Supply = OUT Trickle Charge 1 to 20 Power pin FEATURES Supply = OUT Disabled in BATT Supply = OUT ______________________________________________________________________________________ 19 MAX6909/MAX6910 Table 5. MAX6910 I/O and IC Sections Powered from VCC and BATT MAX6909/MAX6910 I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller Alarm Generation Registers The alarm function generates an ALARM when the contents of the SEC, MIN, HR, DATE, MONTH, DAY, or YEAR registers match the respective alarm threshold registers. Also, the generation of the ALARM is programmable through the alarm configuration register. The alarm configuration register can be written to with an address of 94H or it can be read with an address of 95H. The alarm configuration register definition is shown in Figure 5 (register address definition). Placing a 1 in the appropriate bit enables the ALM and the alarm out status bit when the selected alarm threshold register contents match the respective timekeeping register contents. For example, writing 0000 0001 to the alarm configuration register causes the alarm pin to get triggered every minute (each time the contents of the seconds timekeeping register match the contents of the seconds alarm threshold register). Writing 0000 0010 causes the alarm to go on every hour (each time the contents of the minutes timekeeping register match the contents of the minutes alarm threshold register). Writing a 0100 1111 to the alarm configuration register, therefore, causes the alarm to be triggered on a specific second, of a specific minute, of a specific hour, of a specific date, of a specific year. The alarm output stays low until it is “cleared” by reading or writing to the alarm configuration register or by reading or writing to any of the alarm threshold registers. Minutes Register (Alarm Out Status) An alarm out status bit is available if it is desired to use the alarm function as a polled alarm instead of connecting directly to the ALM output pin. Bit D7 in the minutes timekeeping register contains the status of the ALM output with a 1 indicating the alarm function has triggered and zero indicating no triggered alarm. Manual Reset Input Many microprocessor-based products require manualreset capability, allowing the operator, a test technician, or external logic circuitry to initiate a reset. With the MAX6909/MAX6910, a logic low on MR asserts reset. Reset remains asserted while MR is low, and for tRP (Figure 7) after it returns high. MR has an internal pullup resistor of typically 50kΩ, so it can be left open if it is not used. Internal debounce circuitry requires a minimum low time on the MR input of 1µs with 100ns (typ) minimum glitch immunity. 20 VRST VCC RESET MR tRP tRP Figure 7. Manual Reset Timing Reset Outputs A µP’s reset input starts the µP in a known state. When RESET and RESET are active, all control inputs (MR, WDI, CE IN, and the 2-wire interface) are disabled. The MAX6909/MAX6910 µP supervisory circuit asserts a reset to prevent code-execution errors during power-up, power-down, and brownout conditions. RESET, opendrain active low, and RESET (push-pull active high) are guaranteed to be active for 0V < VCC < VRST, provided VOUT is greater than 1V. Once VCC exceeds the reset threshold, an internal timer keeps RESET and RESET active for the reset timeout period (tRP); after this interval, RESET becomes inactive (high) and RESET becomes inactive (low). If a brownout condition occurs (VCC dips below the reset threshold), RESET and RESET become active. Each time RESET and RESET are asserted, they are held active for the reset timeout period. The MAX69_ _EO30 is optimized to monitor 3.0V ±10% power supplies. Except when MR is asserted, reset does not occur until VCC falls below 2.7V (3.0V - 10%), but is guaranteed to occur before the power supply falls below +2.5V. The MAX69_ _EO33 is optimized to monitor 3.3V ±10% power supplies. Except when MR is asserted, reset does not occur until VCC falls below 3.0V (3.0V is just above 3.3V - 10%), but is guaranteed to occur before the power supply falls below 2.8V. See the Maximum Transient Duration vs. Reset Comparator Overdrive graph in the Typical Operating Characteristics. ______________________________________________________________________________________ I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller Maximum transient duration vs. reset comparator overdrive (see the Typical Operating Characteristics) shows the maximum pulse period that can occur on VCC for which reset pulses are NOT generated. The graph was produced using negative-going VCC pulses, starting at 3.6V and ending below the reset threshold by the magnitude indicated (reset comparator overdrive). The graph shows the typical maximum pulse width a negative-going VCC transient can have without causing a reset. As the amplitude of the transient increases (i.e., goes farther below the reset threshold), the maximum allowable pulse width decreases. Typically, a VCC transient that goes 60mV below the reset threshold and lasts for 60µs or less does not cause a reset pulse to be issued. A capacitor of at least 0.1µF mounted close to the VCC pin provides additional transient immunity. Interfacing to Microprocessors with Bidirectional Reset Pins Microprocessors with bidirectional reset pins, such as the Motorola 68HC11 series, can contend with the MAX6909/MAX6910 RESET or RESET outputs. If, for example, the RESET output is driven high and the µP wants to pull it low, indeterminate logic levels may result. To correct this, connect a 4.7kΩ resistor between the RESET output and the µP reset I/O as shown in Figure 8. Buffer the RESET output to other system components. The positive voltage supply for the RESET pin is VCC. If VCC drops, then so does the VOH of this pin. Battery-On Output The battery-on output, BATT ON, is an open-drain output indicator of when the MAX6909/MAX6910 are powered from the backup battery input, BATT. When VCC falls below the reset threshold, VRST, and below VBATT, OUT switches from V CC to BATT and BATT ON is asserted. When VCC rises above VBATT or the reset threshold, VRST, OUT reconnects to VCC and BATT ON is deasserted. Watchdog Input In the MAX6909/MAX6910, the watchdog circuit monitors the µP’s activity. Data bit D4 in the configuration register controls the selection of the watchdog timeout period. The power-up default is 1.6s (D4 = 0). If D4 is set to 1, then the watchdog timeout period is changed to 200ms. Data bit D7 in the configuration register is the watchdog enable function. A logic 0 disables the watchdog function and a logic 1 enables the watchdog function. The power-on reset state of WD EN is logic 0, meaning the watchdog function is disabled. When D4 is set to 1, the first watchdog timeout period following a reset cycle is always 1.6s and reverts to 200ms after the first WDI transition. This is to allow the µP to recover after a RESET interrupt. If the µP does not toggle the WDI within the register-selectable watchdog timeout period, RESET and RESET are asserted for 200ms. At the same time, bits D4 and D7 in the configuration register are reset. These bits have to be rewritten to enable the watchdog and short timeout function again. While RESET and RESET are asserted, all control inputs to the MAX6909/MAX6910 are disabled (MR, CE IN, WDI, and the 2-wire interface). Figure 9 shows the watchdog timing relationship. BUFFERED RESET TO OTHER SYSTEM VRST VCC tRP VCC VCC MAX6909/ MAX6910 tWD tWDS 4.7kΩ RESET GND RESET RESET WDI tWDI GND RESET Figure 8. Interfacing to Microprocessors with Bidirectional Reset I/O Figure 9. Watchdog Timing Relationship ______________________________________________________________________________________ 21 MAX6909/MAX6910 Negative-Going VCC Transients The MAX6909/MAX6910 are relatively immune to shortduration negative transients (glitches) while issuing resets to the µP during power-up, power-down, and brownout conditions. Therefore, resetting the µP when VCC experiences only small glitches is usually not recommended. MAX6909/MAX6910 I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller START MAX6909/ MAX6910 SET WDI HIGH CHIP-ENABLE OUTPUT CONTROL PROGRAM CODE SUBROUTINE OR PROGRAM LOOP SET WDI LOW OUT P RESET GENERATOR CE IN P CE OUT N RETURN Figure 10. Watchdog Flow Diagram Figure 11. Chip-Enable Transmission Gate Watchdog Software Considerations There is a way to help the watchdog-timer monitor software execution more closely, which involves setting and resetting the watchdog input at different points in the program rather than “pulsing” the watchdog input high-low-high or low-high-low. This technique avoids a “stuck” loop, in which the watchdog timer continues to be reset within the loop, keeping the watchdog from timing out. Figure 10 shows an example of how the I/O driving the watchdog input is set high at the beginning of the program, set low at the beginning of every subroutine or loop, then set high again when the program returns to the beginning. If the program should “hang” in any subroutine, the problem would quickly be corrected since the I/O is continually set low and the watchdog timer is allowed to time out, causing a reset to be issued. Chip-Enable Input The CE transmission gate is disabled and CE IN is high impedance (disabled mode) while reset is asserted. During a power-down sequence when VCC goes below the reset threshold, the CE transmission gate disables, and CE IN immediately becomes high impedance if the voltage at CE IN is a logic high. If CE IN is logic low when reset asserts, the CE transmission gate disables at the moment CE IN goes high or tRCE after reset asserts (tRCE), whichever occurs first (Figure 12). This permits the current write cycle to complete during power-down. The CE transmission gate remains disabled and CE IN remains high impedance (regardless of CE IN activity) for (tRP), the reset timeout period any time a reset is generated. While disabled, CE IN is high impedance. When the CE transmission gate is enabled, the impedance of CE IN appears as a load in series with the load at CE OUT. Chip-Enable Signal Gating Internal gating of chip-enable (CE) signals prevents erroneous data from corrupting CMOS RAM in the event of an undervoltage condition. The MAX6909/MAX6910 use a transmission gate from CE IN to CE OUT. During normal operation (reset not asserted), the transmission gate is enabled and passes all CE transitions. When reset is asserted, this path becomes disabled, preventing erroneous data from corrupting the CMOS RAM. The short CE propagation delay from CE IN to CE OUT enables the MAX6909/MAX6910 to be used with most microprocessors. If CE IN is low when reset asserts, CE OUT remains low for typically tRCE to permit completion of the current write cycle. Figure 11 shows the chip-enable transmission gate. 22 The propagation delay through the CE transmission gate depends on VCC, the source impedance of the driver connected to CE IN, and the loading on CE OUT. The CE propagation delay is measured from the 50% point on CE IN to the 50% point on CE OUT using a 50Ω driver and 10pF of load capacitance (Figure 14), and is typically 5ns. For minimum propagation delay, minimize the capacitive load at CE OUT, and use a lowoutput-impedance driver. Chip-Enable Output When the CE transmission gate is enabled, the impedance of CE OUT is equivalent to a resistor in series with the source driving CE IN. In the disabled mode, the transmission gate is off and an active pullup connects CE OUT to OUT (Figure 12). This pullup turns off when the transmission gate is enabled. ______________________________________________________________________________________ I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller MAX6909/MAX6910 VRST VRST VRST VRST VCC CE OUT VBATT RESET tRP tRCE VBATT VCC tRP CE IN Figure 12. Chip-Enable Timing MR VCC VCC CE OUT tRCE tRP BATT 3.6V MAX6909/ MAX6910 tRP 25Ω EQUIVALENT SOURCE IMPEDANCE RESET 50Ω CE IN 50Ω CABLE CE OUT CE IN Figure 13. Chip-Enable Timing Including MR GND 50Ω 50pF CL* Power-Fail Comparator The MAX6909/MAX6910 PFI is compared to an internal reference. If the PFI voltage is less than the power-fail threshold (VPFT), PFO goes low. The power-fail comparator is intended for use as an undervoltage detector to signal a failing power supply and can monitor either positive or negative supplies using a voltage-divider to PFI (Figure 26). However, the comparator does not need to be dedicated to this function because it is completely separate from the rest of the circuitry. Any time VCC < VRST, PFO is forced low, regardless of the state of PFI. Any time VCC > VRST and RESET is active low (during the reset timeout period), PFO is forced high, regardless of the state of PFI. If the comparator is unused, connect PFI to VCC and leave PFO floating. Figure 15 shows PFI and PFO timing. *CL INCLUDES LOAD CAPACITANCE AND SCOPE PROBE CAPACITANCE. Figure 14. CE Propagation-Delay Test Circuit VCC RESET VRST VBATT tRST PFO PFI VPFT Figure 15. PFI and PFO Timing ______________________________________________________________________________________ 23 MAX6909/MAX6910 I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller Piezo Transducer Output Drive The push-pull, piezo transducer drive output, PZT, is selectable through the configuration register for frequencies of 1.024kHz, 2.048kHz, 4.096kHz, or 8.192kHz (Table 6). Bits D0 and D1 control which frequency outputs to PZT. If in battery backup mode (when VCC falls below the reset threshold and below VBATT), the PZT output is disabled to high impedance to prevent battery drain from the backup battery on the BATT pin. Table 7 lists the piezo transducer control bits. Bit D3, the PZT SEL bit, selects whether the ALM, alarm output, controls when the selected PZT frequency is gated to PZT or whether control is given to the PZT CNTL bit, bit D2. If D3 = 1, then the ALM controls gating of the selected PZT frequency to PZT. When the alarm is triggered, the selected frequency stays on PZT until the alarm is cleared by writing to or reading from the alarm configuration register. If D3 = 0, then the PZT CNTL bit, D2, determines when and for how long the selected frequency appears at PZT. Bit D2, the PZT CNTL bit, controls whether the selected frequency is gated to PZT, provided D3 = 0. D2 = 1 gates the selected frequency to PZT and D2 = 0 inhibits the selected frequency (PZT remains low). Anytime a frequency is selected to be gated through to the PZT output, it is modulated by a 1Hz square wave. The PZT output then turns on for 0.5s and off for 0.5s. Since the human ear is particularly sensitive to changes in condition, switching a sound on and off makes it more noticeable than a continuous sound of the same frequency. The PZT output swings between VCC and GND through the output stage’s on-resistance, ROUT_PZT. To allow flexibility of the PZT output to work with many different types of piezo buzzers, ROUT_PZT is designed to be as low as practical. To minimize peak currents into the piezo buzzer, an external current-limiting resistor Rs may be required. Ipeak is now equal to V CC / (Rs + ROUT_PZT). Rs can be adjusted to reduce the sound amplitude from the external piezo buzzer. The value of Rs varies for each application and should be chosen at the prototype design stage with the piezo buzzer installed in a cavity approximating its final housing. The typical value of ROUT_PZT is calculated from VOUT / IPZT, where IPZT is the average of the sink and source currents. Figure 16 is the piezo transducer functional diagram. Table 6. Piezo Transducer Selectable Frequencies D1 (PZT FREQ) D0 (PZT FREQ) PZT TYPICAL FREQUENCY (kHz) 0 0 1.024 0 1 2.048 1 0 4.096 1 1 8.19 MAX6909/ MAX6910 ROUT_PZT PZT Rs PIEZO BUZZER VPZT Figure 16. Piezo Transducer Functional Diagram Table 7. Piezo Transducer Control Bits D3 (PZT SEL) D2 (PZT CNTL) 0 0 PZT CNTL bit, D2, has control Low 0 1 PZT CNTL bit, D2, has control Selected frequency 1 0 ALM has control, D2 is ignored; assume alarm triggered Selected frequency 1 1 ALM has control, D2 is ignored; assume alarm cleared by reading the alarm configuration register Low 24 CONDITION PZT ______________________________________________________________________________________ I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller BIT 7 MSB (A7) tLOW tSU:STA BIT 0 LSB (R/W) BIT 6 (A6) ACKNOWLEDGE (A) STOP CONDITION (P) 1/fSCL tr tBUF tf tHD:STA tSU:DAT tHD:DAT tVD:DAT tSU:STO Figure 17. 2-Wire Bus Timing Diagram neous communication from the microprocessor. Figure 17 is the 2-wire bus timing diagram. TIME_OUT_CLR 1Hz_CLK CLR CNT_UP TIME_OUT 1 = BUS TIMEOUT ≥ RESET SERIAL INTERFACE 0 = NO BUS TIMEOUT SCL SDA Q1 CNT_DOWN Q0 Figure 18. Timeout Simplified Functional Diagram Crystal-Fail Output The open-drain, crystal-fail output, CX FAIL, alerts the user when the 32.768kHz crystal has failed due to a loss of 30 contiguous cycles, typical, of the 32.768kHz clock. If CX FAIL enable (D7) in the alarm configuration register is set to 1, then the crystal-fail detect circuit is enabled; if D7 = 0, the crystal-fail detect circuit is disabled. When CX FAIL, D7 in the CX status register is 1, a crystal failure has been detected and CX FAIL, open-drain output, goes low. The CX FAIL output and the CX FAIL bit in the CX status register are both cleared by reading to the CX status register. Test Configuration Register This is a read-only register. 2-Wire Interface The MAX6909/MAX6910 use a bidirectional 2-wire serial interface. The two lines are SDA and SCL. Both lines must be connected to a positive supply through individual pullup resistors. Data transfers can only be initiated when the bus is not busy (both SDA and SCL are high). When VCC is less than VRST, communication with the serial bus is terminated and inactive to prevent erro- Timeout Feature The purpose of the bus timeout is to reset the serial bus interface and change the SDA line from an output to an input, which releases the SDA line from being held low. This is necessary when the MAX6909/MAX6910 are transmitting data and become stuck at logic low. If the SDA line is stuck low, any other device on the bus is not able to communicate. The logic above, shown in Figure 18, is intended to illustrate the timeout feature. If an I2C transaction takes more than 1s (minimum timout period), a timeout condition occurs. When a timeout condition is observed, the I2C interface resets to the IDLE state and waits for a new I2C transaction. In order to complete the 31-byte burst read/write from the RAM before an I 2C timeout, the minimum SCL frequency must be 0.32kHz. A valid start condition sets Time_Out_CLR = 1 and the counting begins. A valid stop condition returns Time_Out_CLR = 0 and disables the up/down counter. Figure 19 shows the normal 2-wire bus operation. Figure 20 illustrates what happens when the SDA line is stuck low for two clock cycles of 1Hz_CLK during a valid bus transaction. Depending on when the actual valid bus transaction begins relative to the 1Hz CLK, the timeout period is either t1 = 2s or t2 = 1s. Bit Transfer One data bit is transferred for each clock pulse. The data on SDA must remain stable during the high portion of the clock pulse as changes in data during this time are interpreted as control signals (Figure 21). ______________________________________________________________________________________ 25 MAX6909/MAX6910 START CONDITION (S) MAX6909/MAX6910 I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller 1Hz_CLK TIME_OUT_CLR VALID START CONDITION VALID STOP CONDITION SDA SCL TIME_OUT Figure 19. Normal 2-Wire Bus Operation 1Hz_CLK TIME_OUT_CLR VALID START CONDITION VALID START CONDITION SDA SCL TIME_OUT RESET SERIAL BUS INTERFACE t1 t2 Figure 20. Timeout 2-Wire Bus Operation SDA SDA SCL SCL DATA LINE STABLE; DATA VALID Figure 21. Bit Transfer 26 CHANGE OF DATA ALLOWED SDA S P START CONDITION STOP CONDITION Figure 22. START and STOP Conditions ______________________________________________________________________________________ SCL I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller Address/Command Byte The command byte is shown in Figure 24. The MSB (bit 7) must be a logic 1. If it is zero, writes to the MAX6909/ MAX6910 are disabled. Bit 6 specifies clock/calendar data if logic 0 or RAM data if logic 1. Bits 1 through 5 specify the designated registers to be input or output, and the LSB (bit 0) specifies a write operation (input) if logic 0 or a read operation (output) if logic 1. The command byte is always input starting with the MSB (bit 7). Acknowledge The number of data bytes between the START and STOP conditions for the transmitter and receiver are unlimited. Each 8-bit byte is followed by an acknowledge bit. The acknowledge bit is a high-level signal put on SDA by the transmitter, during which time the master generates an extra acknowledge-related clock pulse. A slave receiver that is addressed must generate an acknowledge after each byte it receives. Also, a master receiver must generate an acknowledge after each byte it receives that has been clocked out of the slave transmitter. The device that acknowledges must pull down the SDA line during the acknowledge clock pulse, so that the SDA line is stable low during the high period of the acknowledge clock pulse (setup and hold times must also be met). A master receiver must signal an end of the data to the transmitter by not generating an acknowledge on the last byte that has been clocked out of the slave. In this case, the transmitter must leave SDA high to enable the master to generate a STOP condition. Slave Address Byte Before any data is transmitted on the bus, the device that should respond is addressed first. The first byte sent after the start (S) procedure is the address byte. The MAX6909/MAX6910 act as a slave transmitter/receiver. Therefore, SCL is only an input clock signal and SDA is a bidirectional data line. The slave address for the MAX6909/MAX6910 is shown in Figure 23. 1 1 0 1 0 0 0 BIT 7 RD/W BIT 0 Figure 23. MAX6909/MAX6910 2-Wire Slave Address Byte 7 1 6 RAM 5 A5 4 A4 3 A3 /CLK 2 A2 1 A1 0 RD /W Figure 24. Address/Command Byte Reading from the Timekeeping Registers The timekeeping registers (seconds, minutes, hours, date, month, day, and year) can be read either with a single read or a burst read. The century register can only be read with a single read. Since the real-time clock runs continuously and a read takes a finite amount of time, there is the possibility that the clock counters could change during a read operation, thereby reporting inaccurate timekeeping data. In the MAX6909/MAX6910, each clock register’s data is buffered by a latch. Clock register data is latched by the 2-wire bus read command (on the falling edge of SCL when the slave acknowledge bit is sent after the address/command byte has been sent by the master to read a timekeeping register). Collision-detection circuitry ensures that this does not happen coincident with a seconds counter update to ensure accurate time data is being read. This avoids time data changes during a read operation. The clock counters continue to count and keep accurate time during the read operation. If single reads are to be used to read each of the timekeeping registers individually, then it is necessary to do some error checking on the receiving end. The potential for error is the case when the seconds counter increments before all the other registers are read out. For example, suppose a carry of 13:59:59 to 14:00:00 occurs during single read operations of the timekeeping registers. Then, the net data could become 14:59:59, which is erroneous real-time data. To prevent this with single-read operations, read the seconds register first (initial seconds) and store this value for future comparison. When the remaining timekeeping registers have been read out, read the seconds register again (final seconds). If the initial seconds value is 59, check that the final seconds value is still 59; if not, repeat the entire single-read process for the timekeeping registers. A comparison of the initial seconds value with the final seconds value can indicate if there was a bus delay problem in reading the timekeeping data (difference should always be 1s or less). Using a 100kHz bus speed, sequential single reads would take under 2.5ms to read all seven of the timekeeping registers, plus a second read of the seconds register. ______________________________________________________________________________________ 27 MAX6909/MAX6910 START and STOP Conditions Both SDA and SCL remain high when the bus is not busy. A high-to-low transition of SDA, while SCL is high, is defined as the START (S) condition. A low-to-high transition of the data line while SCL is high is defined as the STOP (P) condition (Figure 22). MAX6909/MAX6910 I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller The most accurate way to read the timekeeping registers is to do a burst read. In the burst read, the main timekeeping registers (seconds, minutes, hours, date, month, day, year) and the control register are read sequentially, in the order listed with the seconds register first. They must be all read out as a group of eight registers, with 8 bits each, for proper execution of the burst read function. All seven timekeeping registers are latched upon the receipt of the burst read command. Worst-case errors that can occur between the actual time and the read time is 1s, assuming the entire burst read is done in less than 1s. Writing to the Timekeeping Registers The time and date can be set by writing to the timekeeping registers (seconds, minutes, hours, date, month, day, year, and century). To avoid changing the current time by an incomplete write operation, the current time value is buffered from being written directly to the timekeeping registers. The timekeeping registers continue to count, and on the next rising edge of the 1Hz seconds clock, the new data is loaded into the timekeeping registers. The new value will be incremented on the next rising of the 1Hz seconds clock. Collision-detection circuitry ensures that this does not happen coincident with a seconds register update to ensure accurate time data is being written. This avoids time data changes during a write operation. An incomplete write operation aborts the time update procedure and the contents of the input buffer are discarded. If single write operations are to be used to write to each of the timekeeping registers, then error checking is needed. If the seconds register is to be updated, update it first and then read it back and store its value as the initial seconds. Update the remaining timekeeping registers and then read the seconds register again (final seconds). If initial seconds were 59, ensure they are still 59. If initial seconds were not 59, ensure that final seconds are within 1s of initial seconds. If the seconds register is not to be written to, then read the seconds register first and save it as initial seconds. Write to the required timekeeping registers and then read the seconds register again (final seconds). If initial seconds were 59, ensure they are still 59. If initial seconds were not 59, ensure that final seconds are within 1s of initial seconds. Although both single writes and burst writes are possible, the most accurate way to write to the timekeeping registers is to do a burst write. In the burst write, the main timekeeping registers (seconds, minutes, hours, date, month, day, year) and the control register are written to sequentially. They must be all written to as a group of eight registers, with 8 bytes each, for proper execution of the burst write function. All seven timekeeping registers are simultaneously loaded into the input buffer at the end of the 2-wire bus write operation. The worst-case error that can occur between the actual time and the write time update is 1s. Figure 25 shows MAX6909/MAX6910 data transfer. ADDRESS/COMMAND BYTE S BIT 7...............................BIT 0 ACK BIT 7-BIT SLAVE ADDRESS 0 AS BIT 7......................................BIT 0 ACK BIT 1 R ADDR 0 AS BIT 7...................BIT 0 ACK BIT 8_BIT DATA AS P SINGLE WRITE ADDRESS/COMMAND BYTE S BIT 7...............................BIT 0 ACK BIT 7-BIT SLAVE ADDRESS 0 AS BIT 7......................................BIT 0 ACK BIT 1 R ADDR 1 AS S BIT 7.........................BIT 0 ACK BIT 7-BIT SLAVE ID 1 AS BIT 7.........................BIT 0 AM 8_BIT DATA P SINGLE READ ADDRESS/COMMAND BYTE S BIT 7...............................BIT 0 ACK BIT 7-BIT SLAVE ADDRESS 0 AS BIT 7......................................BIT 0 ACK BIT 1 R 11111 0 AS BIT 7.................BIT 0 ACK BIT FIRST 8_BIT DATA AS BIT 7...................BIT 0 ACK BIT LAST 8_BIT DATA AS P BURST WRITE ADDRESS/COMMAND BYTE S BIT 7...............................BIT 0 ACK BIT 7-BIT SLAVE ADDRESS 0 AS BIT 7......................................BIT 0 ACK BIT 1 R 11111 1 AS S BIT 7.........................BIT 0 ACK BIT 7-BIT SLAVE ID 1 AS BIT 7....................BIT 0 ACK BIT FIRST 8_BIT DATA A M BURST READ SLAVE ADDRESS: 1101000 ADDR: 5-BIT RAM OR REGISTER ADDRESS R: RAM/REGISTER SELECTION BIT. R = 0 WHEN REGISTER IS SELECTED; R = 1 WHEN RAM IS SELECTED. S: START CONDITION FROM MASTER P: READ CONDITION FROM MASTER AS : ACKNOWLEDGE FROM SLAVE AM : ACKNOWLEDGE FROM MASTER AM : NOT ACKNOWLEDGE FROM MASTER BIT 7....................BIT 0 ACK BIT LAST 8_BIT DATA A Figure 25. MAX6909/MAX6910 Data Transfer 28 ______________________________________________________________________________________ M P I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller R1 VCC VCC PFI PFI MAX6909/ MAX6910 R2 VIN MAX6909/MAX6910 R1 PFO MAX6909/ MAX6910 R2 VIN GND PFO GND ( ) MR PFO IS ACTIVE HIGH WHEN MONITORING A NEGATIVE SUPPLY VTRIP = R2 x (VPFT + VPFH) x VL = R2 x VPFT x ( R11 + R21 ) - VR1CC VTRIP = VPFT x R1 + R2 R2 ( R11 + R21 ) - VR1CC ( VH = (VPFT + VPFH) x R1 + R2 R2 ) NOTE: VTRIP AND VL ARE NEGATIVE. VCC VCC PFO PFO VIN VL VTRIP VTRIP 0V a) MONITORING A NEGATIVE SUPPLY VIN VIN b) MONITORING SECONDARY SUPPLY Figure 26. Using the Power-Fail Comparator to Monitor Additional Power Supplies Applications Information Monitoring Additional Power Supplies PFO can be connected to MR so that a low voltage on PFI activates RESET and RESET (Figure 26). In this configuration, when the monitored voltage causes PFI to fall below VPFT, PFO pulls MR low, causing a reset to be asserted. A 200ms reset is generated, during which PFO is forced high and MR is released. At the end of the 200ms reset, the power-fail comparator reflects the state of PFI, which if below VPFT, causes another reset. Adding Hysteresis to the Power-Fail Comparator The power-fail comparator has a typical input hysteresis of 30mV. This is sufficient for most applications where a power-supply line is being monitored through an external voltage-divider supply (Figure 27). If additional noise margin is desired, connect a resistor between PFO and PFI (Figure 27(a)). Select the ratio of R1 and R2 such that PFI sees VPFT when VIN falls to its trip point (VTRIP). R3 adds the additional hysteresis and should typically be more than 10 times the value of R1 or R2. The hysteresis window extends both above (VH) and below (VL) the original trip point (VTRIP). ______________________________________________________________________________________ 29 MAX6909/MAX6910 I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller VIN VIN R1 R1 VCC VCC PFI R2 C1 R3 PFI R2 MAX6909/ MAX6910 PFO C1 PFO GND TO µP ( VTRIP = VPFT x R1 + R2 R2 VH = (VPFT + VPFH) (R1) GND TO µP ) ( VTRIP = VPFT x R1 + R2 R2 ( R11 + R21 + R31 ) VL = R1 x VPFT x MAX6909/ MAX6910 R3 ) VH = R1 x (VPFT + VPFH) x ( R11 + R21 + R31 ) - VR3CC ( R11 + R21 + R31 ) - VD R3 VD = DIODE FORWARD-VOLTAGE DROP VL = VTRIP VCC VCC PFO PFO VIN VL VTRIP VH a) SYMMETRICAL HYSTERESIS 0V VTRIP VH VIN b) R3 HYSTERESIS ONLY ON RISING VIN Figure 27. Adding Hysteresis to the Power-Fail Comparator Connecting an ordinary signal diode in series with R3 (Figure 27(b)) causes the lower trip point (VL) to coincide with the trip point without hysteresis (V TRIP), so that the entire hysteresis window occurs above VTRIP. This method provides additional noise margin without compromising the accuracy of the power-fail threshold when the monitored voltage is falling. It is useful for accurately detecting when a voltage falls past a threshold. The current through R1 and R2 should be at least 1µA to ensure that the 100nA (max over temperature) PFI input current does not shift the trip point. R3 should be larger than 82kΩ so it does not load down the PFO pin. Capacitor C1 is optional and adds noise rejection. 30 Early Power-Fail Warning Using the PFI Input Critical systems often require an early warning indicating that power is failing. This warning provides time for the µP to store vital data and take care of any additional “housekeeping” functions before the power supply gets too far out of tolerance for the µP to operate reliably. If access to the unregulated supply is feasible, the power-fail comparator input (PFI) can be connected to the unregulated supply through a voltage-divider, with the power-fail comparator output (PFO) providing the nonmaskable interrupt (NMI) to the µP (Figure 28). ______________________________________________________________________________________ I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller REGULATOR TOP VIEW VCC R1 PFI R2 PFO BATT 1 MAX6909/ MAX6910 20 VCC OUT 2 19 RESET BATT ON 3 18 RESET CE IN 4 GND PFI 5 MR 6 TO µP Figure 28. Using the Power-Fail Comparator to Generate a Power-Fail Warning Selector Guide PART RESET THRESHOLD (TYP) TRICKLE CHARGER MAX6909EO30 2.63 No MAX6909EO33 2.93 No MAX6910EO30 2.63 Yes MAX6910EO33 2.93 Yes 17 CE OUT MAX6909/ MAX6910 16 PFO 15 PZT WDI 7 14 ALM GND 8 13 SCL X1 9 12 SDA X2 10 11 CX FAIL QSOP Chip Information TRANSISTOR COUNT: 35,267 PROCESS: BiCMOS ______________________________________________________________________________________ 31 MAX6909/MAX6910 Pin Configuration UNREGULATED SUPPLY I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller MAX6909/MAX6910 Typical Operating Circuit 12V VBATT BATTERY-ON INDICATOR 6.98kΩ 1kΩ PFO PFI USER RESET 150kΩ PZT BATT ON WDI 3.0V 3.3V 3.3V 0.1µF RPU µCONTROLLER RPU = tr/CBUS RPU MR MAX6909/ MAX6910 3.3V VCC X1 BATT VBATT SCL SDA CRYSTAL X2 ALM OUT CE INTO RESET 3.3V MULTIFUNCTION ASIC PFO CE 47kΩ 3.3V 47kΩ CE IN CMOS RAM 3.3V 3.3V CX FAIL 1µF* NMI 0.01µF RESET CE OUT RESET 47kΩ CX FAIL RST * USE A LOW-LEAKAGE CAPACITOR. 32 ______________________________________________________________________________________ I2C-Compatible Real-Time Clocks with µP Supervisor and NV RAM Controller QSOP.EPS PACKAGE OUTLINE, QSOP .150", .025" LEAD PITCH 21-0055 E 1 1 Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product. No circuit patent licenses are implied. Maxim 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 ____________________ 33 © 2004 Maxim Integrated Products Printed USA is a registered trademark of Maxim Integrated Products. MAX6909/MAX6910 Package Information (The package drawing(s) in this data sheet may not reflect the most current specifications. For the latest package outline information, go to www.maxim-ic.com/packages.)