DS1486/DS1486P RAMified Watchdog Timekeeper www.maxim-ic.com FEATURES § § § § § § § § PIN ASSIGNMENT 128 kbytes of user NV RAM Integrated NV SRAM, real-time clock, crystal, power-fail control circuit and lithium energy source Totally nonvolatile with over 10 years of operation in the absence of power Watchdog timer restarts an out-of-control processor Alarm function schedules real-time related activities such as system wakeup Programmable interrupts and square wave output All registers are individually addressable via the address and data bus Interrupt signals active in power-down mode INTB (INTB) A16 A14 A12 A7 A6 A5 A4 A3 A2 A1 XXX (32–pin DIP module) –150 150 ns access –120 120 ns access *DS1486P XXX 34-pin PowerCap Module Board –150 150 ns access –120 120 ns access *DS9034PCX PowerCap Required (must be ordered separately) PIN DESCRIPTION – Interrupt Output A (open drain) INTB (INTB) – Interrupt Output B (open drain) A0–A16 – Address Inputs DQ0–DQ7 – Data Input/Output CE – Chip Enable OE – Output Enable WE – Write Enable VCC – +5 Volts GND – Ground SQW – Square Wave Output NC – No Connection X1, X2 – Crystal Connection VBAT – Battery Connection INTB DQ0 13 20 DQ6 DQ1 DQ2 14 19 DQ5 15 DQ4 GND 16 18 17 DQ7 DQ3 DS1486 128k x 8 32-Pin Encapsulated Package ORDERING INFORMATION DS1486 32 31 30 29 28 27 26 25 24 23 22 21 VCC A15 INTA/SQW WE A13 A8 A9 A11 OE A10 CE A0 1 2 3 4 5 6 7 8 9 10 11 12 INTB (INTB) A15 A16 PFO VCC WE OE CE DQ7 DQ6 DQ5 DQ4 DQ3 DQ2 DQ1 DQ0 GND 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 X1 GND VBAT X2 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 INTA SQW A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0 34-Pin PowerCap Module Board (Uses DS9034PCX PowerCap) 1 of 17 072401 DS1486/DS1486P DESCRIPTION The DS1486 is a nonvolatile Static RAM with a full function Real-time clock (RTC), alarm, watchdog timer, and interval timer which are all accessible in a bytewide format. The DS1486 contains a lithium energy source and a quartz crystal which eliminate the need for any external circuitry. Data contained within 128K by 8-bit memory and the timekeeping registers can be read or written in the same manner as bytewide static RAM. The timekeeping registers are located in the first 14 bytes of memory space. Data is maintained in the RAMified Timekeeper by intelligent control circuitry which detects the status of VCC and write-protects memory when VCC is out of tolerance. The lithium energy source can maintain data and real time for over 10 years in the absence of VCC. Timekeeper information includes hundredths of seconds, seconds, minutes, hours, day, date, month, and year. The date at the end of the month is automatically adjusted for months with less than 31 days, including correction for leap year. The RAMified Timekeeper operates in either 24-hour or 12-hour format with an AM/PM indicator. The watchdog timer provides alarm interrupts and interval timing between 0.01 seconds and 99.99 seconds. The real time alarm provides for preset times of up to one week. Interrupts for both watchdog and RTC will operate when system is powered down. Either can provide system “wake-up” signals. PACKAGES The DS1486 is available in two packages: 32-pin DIP module and 34-pin PowerCap module. The 32-pin DIP style module integrates the crystal, lithium energy source, and silicon all in one package. The 32-pin PowerCap Module Board is designed with contacts for connection to a separate PowerCap (DS90934PCX) that contains the crystal and battery. The design allows the PowerCap to be mounted on top of the DS1486P after the completion of the surface mount process. Mounting the PowerCap after the surface mount process prevents damage to the crystal and battery due to high temperatures required for solder reflow. The PowerCap is keyed to prevent reverse insertion. The PowerCap Module Board and PowerCap are ordered separately and shipped in separate containers. The part number for the PowerCap is DS9034PCX. OPERATION - READ REGISTERS The DS1486 executes a read cycle whenever WE (Write Enable) is inactive (High), CE (Chip Enable) and OE (Output Enable) are active (Low). The unique address specified by the address inputs (A0-A16) defines which of the registers is to be accessed. Valid data will be available to the eight data output drivers within tACC (Access Time) after the last address input signal is stable, providing that CE and OE access times are also satisfied. If OE and CE access times are not satisfied, then data access must be measured from the latter occurring signal ( CE or OE ) and the limiting parameter is either tCO for CE or tOE for OE rather than address access. OPERATION - WRITE REGISTERS The DS1486 is in the write mode whenever the WE (Write Enable) and CE (Chip Enable) signals are in the active (Low) state after the address inputs are stable. The latter occurring falling edge of CE or WE will determine the start of the write cycle. The write cycle is terminated by the earlier rising edge of CE or WE . All address inputs must be kept valid throughout the write cycle. WE must return to the high state for a minimum recovery state (tWR) before another cycle can be initiated. Data must be valid on the data bus with sufficient Data Set-Up (tDS) and Data Hold Time (tDH) with respect to the earlier rising edge of CE or WE . The OE control signal should be kept inactive (High) during write cycles to avoid bus contention. However, if the output bus has been enabled ( CE and OE active), then WE will disable the outputs in tODW from its falling edge. 2 of 17 DS1486/DS1486P DATA RETENTION The RAMified Timekeeper provides full functional capability when VCC is greater than 4.5 volts and write-protects the register contents at 4.25 volts typical. Data is maintained in the absence of VCC without any additional support circuitry. The DS1486 constantly monitors VCC. Should the supply voltage decay, the RAMified Timekeeper will automatically write-protect itself and all inputs to the registers become “don’t care.” The two interrupts INTA and INTB (INTB) and the internal clock and timers continue to run regardless of the level of VCC. However, it is important to insure that the pull-up resistors used with the interrupt pins are never pulled up to a value that is greater than VCC + 0.3V. As VCC falls below approximately 3.0 volts, a power switching circuit turns the internal lithium energy source on to maintain the clock and timer data functionality. It is also required to insure that during this time (battery backup mode), the voltage present at INTA and INTB (INTB) never exceeds VBAT. During power-up, when VCC rises above approximately 3.0 volts, the power switching circuit connects external VCC and disconnects the internal lithium energy source. Normal operation can resume after VCC exceeds 4.5 volts for a period of 200 ms. RAMIFIED TIMEKEEPER REGISTERS The RAMified Timekeeper has 14 registers which are 8 bits wide that contain all of the timekeeping, alarm, watchdog and control information. The clock, calendar, alarm, and watchdog registers are memory locations which contain external (user-accessible) and internal copies of the data. The external copies are independent of internal functions except that they are updated periodically by the simultaneous transfer of the incremented internal copy (see Figure 1). The Command Register bits are affected by both internal and external functions. This register will be discussed later. Registers 0, 1, 2, 4, 6, 8, 9, and A contain time of day and date information (see Figure 2). Time of day information is stored in BCD. Registers 3, 5, and 7 contain the Time of Day Alarm information. Time of Day Alarm information is stored in BCD. Register B is the Command Register and information in this register is binary. Registers C and D are the Watchdog Alarm Registers and information which is stored in these two registers is in BCD. Registers E through 1FFFF are user bytes and can be used to maintain data at the user’s discretion. CLOCK ACCURACY (DIP MODULE) The DS1486 is guaranteed to keep time accuracy to within ±1 minute per month at 25°C. CLOCK ACCURACY (POWERCAP MODULE) The DS1486P and DS9034PCX are each individually tested for accuracy. Once mounted together, the module is guaranteed to keep time accuracy to within ±1.53 minutes per month (35 ppm) at 25°C. 3 of 17 DS1486/DS1486P BLOCK DIAGRAM Figure 1 4 of 17 DS1486/DS1486P TIME OF DAY REGISTERS Registers 0, 1, 2, 4, 6, 8, 9, and A contain Time of Day data in BCD. Ten bits within these eight registers are not used and will always read 0 regardless of how they are written. Bits 6 and 7 in the Months Register (9) are binary bits. When set to logic 0, EOSC (Bit 7) enables the real-time clock oscillator. This bit is set to logic 1 as shipped from Dallas Semiconductor to prevent lithium energy consumption during storage and shipment (DIP Module only). This bit will normally be turned on by the user during device initialization. However, the oscillator can be turned on and off as necessary by setting this bit to the appropriate level. The INTA and Square Wave Output signals are tied together at pin 30 on the 32-pin DIP module. With this package, bit 6 of the Months Register (9) controls the function of this pin. When set to logic 0, the pin will output a 1024 Hz square wave signal. When set to logic 1, the pin is available for interrupt A output ( INTA ) only. The INTA and Square Wave Output signals are separated on the 34pin PowerCap module. With this package, bit 6 of the Months Register (9) controls only the Square Wave Output (pin 33). When set to logic 0, pin 33 will output a 1024 Hz square wave signal. When set to logic 1, pin 33 is in a high impedance state. Pin 34 ( INTA ) is not affected by the setting of bit 6. Bit 6 of the Hours register is defined as the 12- or 24-hour select bit. When set to logic 1, the 12-hour format is selected. In the 12-hour format, bit 5 is the AM/PM bit with logic 1 being PM. In the 24-hour mode, bit 5 is the second 10-hour bit (20-23 hours). The Time of Day registers are updated every 0.01 seconds from the real-time clock, except when the TE bit (bit 7 of Register B) is set low or the clock oscillator is not running. The preferred method of synchronizing data access to and from the RAMified Timekeeper is to access the Command register by doing a write cycle to address location 0B and setting the TE bit (Transfer Enable bit) to a logic 0. This will freeze the External Time of Day registers at the present recorded time, allowing access to occur without danger of simultaneous update. When the watch registers have been read or written, a second write cycle to location 0B setting the TE bit to a logic 1 will put the Time of Day Registers back to being updated every 0.01 second. No time is lost in the real-time clock because the internal copy of the Time of Day register buffers is continually incremented while the external memory registers are frozen. An alternate method of reading and writing the Time of Day registers is to ignore synchronization. However, any single reading may give erroneous data as the realtime clock may be in the process of updating the external memory registers as data is being read. The internal copies of seconds through years are incremented and the Time of Day Alarm is checked during the period that hundreds of seconds reads 99. The copies are transferred to the external register when hundredths of seconds roll from 99 to 00. A way of making sure data is valid is to do multiple reads and compare. Writing the registers can also produce erroneous results for the same reasons. A way of making sure that the write cycle has caused proper a update is to do read verifies and re-execute the write cycle if data is not correct. While the possibility of erroneous results from read and write cycles has been stated, it is worth noting that the probability of an incorrect result is kept to a minimum due to the redundant structure of the RAMified Timekeeper. TIME OF DAY ALARM REGISTERS Registers 3, 5, and 7 contain the Time of Day Alarm Registers. Bits 3, 4, 5, and 6 of Register 7 will always read 0 regardless of how they are written. Bit 7 of Registers 3, 5, and 7 are mask bits (Figure 3). When all of the mask bits are logic 0, a Time of Day Alarm will only occur when Registers 2, 4, and 6 match the values stored in Registers 3, 5, and 7. An alarm will be generated every day when bit 7 of Register 7 is set to a logic 1. Similarly, an alarm is generated every hour when bit 7 of Registers 7 and 5 is set to a logic 1. When bit 7 of Registers 7, 5, and 3 is set to a logic 1, an alarm will occur every minute when Register 1 (seconds) rolls from 59 to 00. Time of Day Alarm Registers are written and read in the same format as the Time of Day Registers. The Time of Day Alarm Flag and Interrupt are always cleared when Alarm Registers are read or written. 5 of 17 DS1486/DS1486P WATCHDOG ALARM REGISTERS Registers C and D contain the time for the Watchdog Alarm. The two registers contain a time count from 00.01 to 99.99 seconds in BCD. The value written into the Watchdog Alarm Registers can be written or read in any order. Any access to Register C or D will cause the Watchdog Alarm to reinitialize and clears the Watchdog Flag bit and the Watchdog Interrupt Output. When a new value is entered or the Watchdog Registers are read, the Watchdog Timer will start counting down from the entered value to 0. When 0 is reached, the Watchdog Interrupt Output will go to the active state. The Watchdog Timer Countdown is interrupted and reinitialized back to the entered value every time either of the registers is accessed. In this manner, controlled periodic accesses to the Watchdog Timer can prevent the Watchdog Alarm from going to an active level. If access does not occur, countdown alarm will be repetitive. The Watchdog Alarm Registers always read the entered value. The actual count-down register is internal and is not readable. Writing registers C and D to 0 will disable the Watchdog Alarm feature. DS1486 RAMIFIED TIMEKEEPER REGISTERS Figure 2 6 of 17 DS1486/DS1486P TIME OF DAY ALARM MASK BITS Figure 3 REGISTER (3) MINUTES (5) HOURS (7) DAYS 1 1 1 ALARM ONCE PER MINUTE 0 1 1 ALARM WHEN MINUTES MATCH 0 0 1 ALARM WHEN HOURS AND MINUTES MATCH 0 0 0 ALARM WHEN HOURS, MINUTES, AND DAYS MATCH NOTE: ANY OTHER BIT COMBINATIONS OF MASK BIT SETTINGS PRODUCE ILLOGICAL OPERATION. COMMAND REGISTER Address location 0Bh is the Command Register where mask bits, control bits and flag bits reside. The operation of each bit is as follows: TE - Bit 7 Transfer enable - This bit when set to a logic 0 will disable the transfer of data between internal and external clock registers. The contents in the external clock registers are now frozen and reads or writes will not be affected with updates. This bit must be set to a logic 1 to allow updates. IPSW - Bit 6 Interrupt switch - When set to a logic 1, INTA is the Time of Day Alarm and INTB/( INTB ) is the Watchdog Alarm. When set to logic 0, this bit reverses the output pins. INTA is now the Watchdog Alarm output and INTB/( INTB ) is the Time of Day Alarm output. The INTA /SQW output pin shares both the interrupt A and square wave output function. INTA and the square wave function should never be simultaneously enabled or a conflict may occur (32-pin DIP module only). IBH/LO - Bit 5 Interrupt B Sink or Source Current - When this bit is set to a logic 1 and VCC is applied, INTB/( INTB ) will source current (see DC characteristics IOH). When this bit is set to a logic 0, INTB will sink current (see DC characteristics IOL). PU/LVL - Bit 4 Interrupt pulse mode or level mode - This bit determines whether both interrupts will output a pulse or level signal. When set to a logic 0, INTA and INTB/( INTB ) will be in the level mode. When this bit is set to a logic 1, the pulse mode is selected and INTA will sink current for a minimum of 3 ms and then release. INTB/( INTB ) will either sink or source current, depending on the condition of Bit 5, for a minimum of 3 ms and then release. INTB will only source current when there is a voltage present on VCC. WAM - Bit 3 Watchdog Alarm Mask - When this bit is set to a logic 0, the Watchdog Interrupt output will be activated. The activated state is determined by bits 1,4,5, and 6 of the COMMAND REGISTER. When this bit is set to a logic 1, the Watchdog interrupt output is deactivated. TDM - Bit 2 Time of Day Alarm Mask - When this bit is set to a logic 0, the Time of Day Alarm Interrupt output will be activated. The activated state is determined by bits 0, 4, 5, and 6 of the COMMAND REGISTER. When this bit is set to a logic 1, the Time of Day Alarm interrupt output is deactivated. WAF - Bit 1 Watchdog Alarm Flag - This bit is set to a logic 1 when a watchdog alarm interrupt occurs. This bit is read only. The bit is reset when any of the Watchdog Alarm registers are accessed. 7 of 17 DS1486/DS1486P When the interrupt is in the pulse mode (see bit 4 definition), this flag will be in the logic 1 state only during the time the interrupt is active. TDF - Bit 0 Time of Day Flag - This is a read-only bit. This bit is set to a logic 1 when a Time of Day alarm has occurred. The time the alarm occurred can be determined by reading the Time of Day Alarm registers. This bit is reset to a logic 0 state when any of the Time of Day Alarm registers are accessed. When the interrupt is in the pulse mode (see bit 4 definition), this flag will be in the logic 1 state only during the time the interrupt is active. 8 of 17 DS1486/DS1486P ABSOLUTE MAXIMUM RATINGS* Voltage on any Pin Relative to Ground Operating Temperature Storage Temperature Soldering Temperature * -0.3V to +7.0V 0°C to 70°C -40°C to + 70°C 260°C for 10 seconds (See Note 14) This is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operation sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods of time may affect reliability. RECOMMENDED DC OPERATING CONDITIONS PARAMETER Power Supply Voltage Input Logic 1 Input Logic 0 SYMBOL VCC VIH VIL MIN 4.5 2.2 -0.3 DC ELECTRICAL CHARACTERISTICS PARAMETER Input Leakage Current Output Leakage Current I/O Leakage Current Output Current @ 2.4V Output Current @ 0.4V Standby Current CE = 2.2V Standby Current CE = VCC -0.5 Active Current Write Protection Voltage SYMBOL IIL ILO ILIO IOH IOL ICCS1 ICCS2 ICC VTP MIN -1.0 -1.0 -1.0 -1.0 (0°C to 70°C) TYP 5.0 TYP 4.25 MAX +1.0 +1.0 +1.0 2.1 7.0 4.0 85 4.5 CAPACITANCE PARAMETER Input Capacitance Output Capacitance Input/Output Capacitance UNITS V V V NOTES 10 10 10 (0°C to 70°C; VCC = 5V ± 10%) 3.0 4.0 MAX 5.5 VCC+0.3 +0.8 UNITS mA mA mA mA mA mA mA mA V NOTES 13 13 (tA = 25°C) SYMBOL CIN COUT CI/O MIN 9 of 17 TYP 7 7 7 MAX 15 15 15 UNITS pF pF pF NOTES DS1486/DS1486P (0°C to 70°C; VCC = 5.0V ± 10%) AC ELECTRICAL CHARACTERISTICS PARAMETER Read Cycle Time Address Access Time CE Access Time OE Access Time OE or CE to Output Active Output High Z from Deselect Output Hold from Address Change Write Cycle Time Write Pulse Width Address Setup Time Write Recovery Time Output High Z from WE Output Active from WE Data Setup Time Data Hold Time INTA , INTB Pulse Width SYMBOL tRC tACC tCO tOE tCOE tOD tOH tWC tWP tAW tWR tODW tOEW tDS tDH tIPW DS1486-120 MIN MAX 120 120 120 100 10 40 10 120 110 0 10 40 10 85 10 3 READ CYCLE (Note 1) 10 of 17 DS1486-150 MIN MAX 150 150 150 120 10 50 10 150 140 0 15 50 10 110 15 3 UNITS ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ms NOTES 1 3 4 4 4, 5 11, 12 DS1486/DS1486P WRITE CYCLE 1 (Notes 2, 6, 7) WRITE CYCLE 2 (Notes 2, 8) TIMING DIAGRAM: INTERRUPT OUTPUTS PULSE MODE (SEE NOTES 11, 12) 11 of 17 DS1486/DS1486P POWER-DOWN/POWER-UP TIMING AC ELECTRICAL CHARACTERISTICS POWER-UP POWER-DOWN TIMING PARAMETER CE High to Power-Fail Recovery at Power-Up VCC Slew Rate Power-Down VCC Slew Rate Power-Down VCC Slew Rate Power-Up Expected Data Retention (0°C to 70°C) SYMBOL tPF tREC tF 4.0£VCC£4.5V tFB 3.0£VCC£4.25V tR 4.5V³VCC³4.0V tDR MIN MAX 0 200 300 UNITS ns ms ms 10 ms 0 ms 10 years NOTES 9 WARNING: Under no circumstances are negative undershoots, of any amplitude, allowed when device is in battery backup mode. 12 of 17 DS1486/DS1486P NOTES: 1. WE is high for a read cycle. 2. OE = VIH or VIL. If OE = VIH during write cycle, the output buffers remain in a high impedance state. 3. tWP is specified as the logical AND of the CE and WE . tWP is measured from the latter of CE or WE going low to the earlier of CE or WE going high. 4. tDS or tDH are measured from the earlier of CE or WE going high. 5. tDH is measured from WE going high. If CE is used to terminate the write cycle, then tDH = 20 ns for -120 parts and tDH = -25 ns for -150 parts. 6. If the CE low transition occurs simultaneously with or later than the WE low transition in write cycle 1, the output buffers remain in a high impedance state during this period. 7. If the CE high transition occurs prior to or simultaneously with the WE high transition, the output buffers remain in a high impedance state during this period. 8. If WE is low or the WE low transition occurs prior to or simultaneously with the CE low transition, the output buffers remain in a high impedance state during this period. 9. Each DS1486 is marked with a four-digit date code AABB. AA designates the year of manufacture. BB designates the week of manufacture. The expected tDR is defined for DIP Modules as starting at the date of manufacture. 10. All voltages are referenced to ground. 11. Applies to both interrupt pins when the alarms are set to pulse. 12. Interrupt output occurs within 100 ns on the alarm condition existing. 13. Both INTA and INTB (INTB) are open drain outputs. 14. Real-Time Clock Modules (DIP) can be successfully processed through conventional wave-soldering tech-niques as long as temperature exposure to the lithium energy source contained within does not exceed +85°C. Post-solder cleaning with water washing techniques is acceptable, provided that ultrasonic vibration is not used. In addition, for the PowerCap version: a. Dallas Semiconductor recommends that PowerCap Module bases experience one pass through solder reflow oriented with the label side up (“live - bug”). b. Hand Soldering and touch-up: Do not touch or apply the soldering iron to leads for more than 3 seconds. To solder, apply flux to the pad, heat the lead frame pad and apply solder. To remove the part, apply flux, heat the lead frame pad until the solder reflows and use a solder wick to remove solder. 13 of 17 DS1486/DS1486P AC TEST CONDITIONS Input Levels: Transition Times: 0V to 3V 5 ns AC TEST CONDITIONS Output Load: 50 pF + 1TTL Gate Input Pulse Levels: 0-3.0V Timing Measurement Reference Levels Input: 1.5V Output: 1.5V Input Pulse Rise and Fall Times: 5 ns. DS1486 32-PIN 740-MIL MODULE PKG DIM A IN. MM B IN. MM C IN. MM D IN. MM E IN. MM F IN. MM G IN. MM H IN. MM J IN. MM K IN. MM 14 of 17 32-PIN MIN MAX 1.680 1.740 42.67 44.20 0.715 0.740 18.16 18.80 0.335 0.365 8.51 9.27 0.075 0.105 1.91 2.67 0.015 0.030 0.38 0.76 0.140 0.180 3.56 4.57 0.090 0.110 2.29 2.79 0.590 0.630 14.99 16.00 0.010 0.018 0.25 0.46 0.015 0.025 0.38 0.64 DS1486/DS1486P DS1486P PKG DIM A B C D E F G MIN 0.920 0.980 0.052 0.048 0.015 0.025 INCHES NOM 0.925 0.985 0.055 0.050 0.020 0.027 MAX 0.930 0.990 0.080 0.058 0.052 0.025 0.030 NOTE: For the PowerCap version: a. Dallas Semiconductor recommends that PowerCap Module bases experience one pass though solder reflow oriented with the label side up (“live - bug”). b. Hand Soldering and touch-up: Do not touch or apply the soldering iron to leads for more than 3 (three) seconds. To solder, apply flux to the pad, heat the lead frame pad and apply solder. To remove the part, apply flux, heat the lead frame pad until the solder reflows and use a solder wick to remove solder. 15 of 17 DS1486/DS1486P DS1486P WITH DS9034PCX ATTACHED PKG DIM A B C D E F G 16 of 17 MIN 0.920 0.955 0.240 0.052 0.048 0.015 0.020 INCHES NOM 0.925 0.960 0.245 0.055 0.050 0.020 0.025 MAX 0.930 0.965 0.250 0.058 0.052 0.025 0.030 DS1486/DS1486P RECOMMENDED POWERCAP MODULE LAND PATTERN PKG DIM A B C D E 17 of 17 MIN - INCHES NOM 1.050 0.826 0.050 0.030 0.112 MAX -