DS1254 2M x 8 NV SRAM with Phantom Clock www.maxim-ic.com FEATURES § § § § § § § § § PACKAGE OUTLINE Real-time clock (RTC) keeps track of hundredths of seconds, seconds, minutes, hours, days, date, months, and years with automatic leap-year compensation valid up to the year 2100 2M x 8 NV SRAM Watch function is transparent to RAM operation Automatic data protection during power loss Unlimited write-cycle endurance Surface-mountable BGA module construction Over 10 years of data retention in the absence of power Battery monitor checks remaining capacity daily +3.3V or +5V operation Side -A- Shown (For Reference Only, Not to Scale) ORDERING INFORMATION PART DS1254WB150 DS1254YB100 PINPACKAGE TEMP RANGE BGA, 3.3V 0°C to +70°C BGA, 5V 0°C to +70°C TOP MARK DS1254W150 DS1254YB100 BGA Module Base Bottom View APPLICATION AREAS § § TYPICAL OPERATING CIRCUIT § Telecom Switches Routers RAID Systems PIN DESCRIPTION VCC A0–A20 DQ0–DQ7 CE OE WE BW GND - Supply Voltage - Address Inputs - Data I/O - Chip-Enable Input - Output-Enable Input - Write-Enable Input - Battery Warning Output (Open Drain) - Ground Note: Some revisions of this device may incorporate deviations from published specifications known as errata. Multiple revisions of any device may be simultaneously available through various sales channels. For information about device errata, click here: http://www.maxim-ic.com/errata. 1 of 17 080902 DS1254 DESCRIPTION The DS1254 is a fully nonvolatile static RAM (NV SRAM) (organized as 2M works by 8 bits) with builtin real-time clock. It has a self-contained lithium energy source and control circuitry that constantly monitors VCC for an out-of-tolerance condition. When such a condition occurs, the DS1254 makes use of an attached DS3800 battery cap to maintain clock information and preserve stored data while protecting that data by disallowing all memory accesses. Additionally, the DS1254 has dedicated circuitry for monitoring the status of an attached DS3800 battery cap. The phantom clock provides timekeeping information including hundredths of seconds, seconds, minutes, hours, day, date, month, and year information. The date at the end of the month is automatically adjusted for months with fewer than 31 days, including correction for leap years. The phantom clock operates in either 24-hour or 12-hour format with an AM/PM indicator. Because the DS1254 has a total of 168 balls and only 35 active signals, balls are wired together into groups, thus providing redundant connections for every signal. VCC A16 A15 A11 37 A14 A10 38 A13 A9 39 A12 A8 40 GND VCC 41 Figure 1. PIN ASSIGNMENT 30 31 32 33 34 35 36 VBAT VCC 1 29 VCC A7 2 28 A17 A6 3 27 A18 A5 4 26 A19 GND 5 25 GND A4 6 24 A20 A3 7 23 CE A2 8 22 OE A1 9 21 WE 20 19 18 17 16 15 14 13 12 11 10 RECEPTACLES FOR DS3800 BATTERY CAP PINS 2 of 17 BW DQ7 DQ6 DQ5 DQ4 GND DQ3 DQ2 DQ1 DQ0 A0 GND DS1254 RAM READ MODE The DS1254 executes a read cycle whenever WE is inactive (high) and CE is active (low). The unique address specified by the 21 address inputs (A0–A20) defines which of the 2MB of data is to be accessed. Valid data will be available to the eight data-output drivers within tACC (access time) after the last address input is stable, providing that CE and OE access times and states are also satisfied. If OE and CE access times are not satisfied, then data access must be measured from the later occurring signal ( CE or OE ) and the limiting parameter is either tCO for CE or tOE for OE rather than address access. RAM WRITE MODE The DS1254 is in the write mode whenever WE and CE are in their active (low) state after address inputs are stable. The later 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 time (tWR) before another cycle can be initiated. 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. DATA RETENTION MODE The device is fully accessible and data can be written and read only when VCC is greater than VPF. However, when VCC falls below the power-fail point, VPF (point at which write protection occurs), the internal clock registers and SRAM are blocked from any access. When VCC falls below VBAT, device power is switched from the VCC to VBAT. RTC operation and SRAM data are maintained from the battery until VCC is returned to nominal levels. All signals must be powered down when VCC is powered down. PHANTOM CLOCK OPERATION Communication with the phantom clock is established by pattern recognition on a serial bit stream of 64 bits that must be matched by executing 64 consecutive write cycles containing the proper data on DQ0. All accesses that occur prior to recognition of the 64-bit pattern are directed to memory. After recognition is established, the next 64 read or write cycles either extract or update data in the phantom clock, and memory access is inhibited. Data transfer to and from the timekeeping function is accomplished with a serial bit stream under control of chip enable ( CE ), output enable ( OE ), and write enable ( WE ). Initially, a read cycle to any memory location using the CE and OE control of the phantom clock starts the pattern-recognition sequence by moving a pointer to the first bit of the 64-bit comparison register. Next, 64 consecutive write cycles are executed using the CE and WE signals of the device. These 64 write cycles are used only to gain access to the phantom clock. Therefore, any address within the first 512kB of memory, (00h to 7FFFFh) is acceptable. However, the write cycles generated to gain access to the phantom clock are also writing data to a location in the memory. The preferred way to manage this requirement is to set aside just one address location in memory as a phantom clock scratch pad. When the first write cycle is executed, it is compared to bit 0 of the 64-bit comparison register. If a match is found, the pointer increments to the next location of the comparison register and awaits the next write cycle. If a match is not found, the pointer does not 3 of 17 DS1254 advance and all subsequent write cycles are ignored. If a read cycle occurs at any time during pattern recognition, the present sequence is aborted and the comparison register pointer is reset. Pattern recognition continues for a total of 64 write cycles as described above until all the bits in the comparison register have been matched (this bit pattern is shown in Figure 2). With a correct match for 64-bits, the phantom clock is enabled and data transfer to or from the timekeeping registers can proceed. The next 64 cycles will cause the phantom clock to either receive or transmit data on DQ0, depending on the level of the OE pin or the WE pin. Cycles to other locations outside the memory block can be interleaved with CE cycles without interrupting the pattern-recognition sequence or data-transfer sequence to the phantom clock. PHANTOM CLOCK REGISTER INFORMATION The phantom clock information is contained in eight registers of 8 bits, each of which is sequentially accessed one bit at a time after the 64-bit pattern-recognition sequence has been completed. When updating the phantom clock registers, each register must be handled in groups of 8 bits. Writing and reading individual bits within a register could produce erroneous results. These read/write registers are defined in Figure 3. Figure 2. PHANTOM CLOCK PROTOCOL DEFINTION Note: The pattern recognition in hex is C5, 3A, A3, 5C, C5, 3A, A3, 5C. The odds of this pattern being accidentally duplicated and causing inadvertent entry to the phantom clock is less than 1 in 1019. This pattern is sent to the phantom clock LSB to MSB. 4 of 17 DS1254 Figure 3. PHANTOM CLOCK REGISTER DEFINTION 5 of 17 DS1254 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 (20–23 hours). OSCILLATOR BIT Bit 5 of the day register controls the oscillator. When set to logic 1, the oscillator is off. When set to logic 0, the oscillator turns on and the watch becomes operational. ZERO BITS Registers 1, 2, 3, 4, 5, and 6 contain one or more bits that will always read logic 0. When writing these locations, either a logic 1 or logic 0 is acceptable. BATTERY MONITORING The DS1254 automatically monitors the battery in an attached DS3800 battery cap on a 24-hour time interval. Such monitoring begins within tREC after VCC rises above VPF and is suspended when power failure occurs. After each 24-hour period has elapsed, the battery is connected to an internal 1MW test resistor for one second. During this one second, if the battery voltage falls below the battery-voltage trip point (~2.6V), the battery warning output BW is asserted. Once asserted, BW remains active until the attached DS3800 battery cap is replaced. However, the battery is still retested after each VCC power-up, even if it was active on power-down. If the battery voltage is found to be higher than ~2.6V during such testing, BW is de-asserted and regular testing resumes. BW has an open-drain output driver. 6 of 17 DS1254 ABSOLUTE MAXIMUM RATINGS* Voltage Range on Any Pin Relative to Ground Operating Temperature Range Storage Temperature Range Soldering Temperature Range -0.3V to +6.0V 0°C to +70°C -40°C to +70°C See IPC/JEDEC J-STD-020A * This is a stress rating only and functional operation of the device at these or any other conditions beyond those indicated in the operation sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods of time can affect reliability. (TA = 0°C to +70°C) RECOMMENDED DC OPERATING CONDITIONS PARAMETER Power-Supply Voltage (5V Operation) Power-Supply Voltage (3.3V Operation) Logic 1 Voltage (All Inputs) VCC = 5V ±10% VCC = 3.3V ±10% Logic 0 Voltage (All Inputs) VCC = 5V ±10% VCC = 3.3V ±10% SYMBOL MIN TYP MAX UNITS NOTES VCC 4.5 5.0 5.5 V 1 VCC 3.0 3.3 3.7 V 1 VIH VIH 2.2 2.0 VCC + 0.3 VCC + 0.3 V V 1 1 VIL VIL -0.3 -0.3 0.8 0.6 V V 1 1 (VCC = 5.0V ±10%, TA = 0°C to +70°C) DC ELECTRICAL CHARACTERISTICS PARAMETER Input Leakage Current I/O Leakage Current Output Current at 2.4V Output Current at 0.4V Standby Current CE = 2.2V Standby Current CE = VCC - 0.5V Operating Current, tCYC = 100ns Write Protection Voltage SYMBOL IIL IIO IOH IOL ICCS1 ICCS2 ICCO1 VPF MIN -4.0 -4.0 -1.0 2.0 TYP 5.0 3.0 4.25 MAX +4.0 +4.0 10 5.0 85 4.50 UNITS mA mA mA mA mA mA mA V NOTES 3 3 1 (VCC = 3.3V ±10%, TA = 0°C to +70°C) DC ELECTRICAL CHARACTERISTICS PARAMETER SYMBOL MIN Input Leakage Current I/O Leakage Current Output Current at 2.4V Output Current at 0.4V Standby Current CE = 2.2V Standby Current CE = VCC - 0.5V Operating Current, tCYC = 100ns Write Protection Voltage IIL IIO IOH IOL ICCS1 ICCS2 ICCO1 VPF -4.0 -4.0 -1.0 2.0 TYP 5.0 2.0 2.8 7 of 17 MAX UNITS +4.0 +4.0 mA mA mA mA mA mA mA V 7 3.0 50 2.97 NOTES 3 3 1 DS1254 (TA = +25°C) CAPACITANCE PARAMETER Input Capacitance: A0 to A18, OE , WE , CE SYMBOL TYP MAX UNITS CIN 25 50 pF Input Capacitance: A19 to A20 CIN 5 10 pF I/O Capacitance: DQ0 to DQ7 CIO 25 50 pF COUT 5 10 pF Output Capacitance: BW MIN (VCC = 5.0V ±10%, TA = 0°C to +70°C) AC ELECTRICAL CHARACTERISTICS PARAMETER Read Cycle Time Address Access Time OE to Output Valid CE to Output Valid CE or OE to Output Active Output High-Z from Deselection Output Hold from Address Change Write Cycle Time WE , CE Pulse Width Address Setup Time Address Hold Time Output High-Z from WE Output Active from WE Data Setup Time Data Hold Time Read Recovery (Clock Access Only) Write Recovery (Clock Access Only) NOTES SYMBOL tRC tAAC tOE tCO tCOE tOD tOH tWC tWP tAW tAH1 tAH2 tODW tOEW tDS tDH1 tDH2 MIN 100 MAX 5 40 0 20 UNITS ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns tRR 20 ns tWR 20 ns 100 55 100 0 35 5 100 70 0 5 25 35 8 of 17 NOTES 2 2 5 6 7 2 2 8 6 8 DS1254 (VCC = 3.3V ±10%, TA = 0°C to +70°C) AC ELECTRICAL CHARACTERISTICS PARAMETER Read Cycle Time Address Access Time OE to Output Valid CE to Output Valid CE or OE to Output Active Output High-Z from Deselection Output Hold from Address Change Write Cycle Time WE , CE Pulse Width Address Setup Time Address Hold Time Output High-Z from WE Output Active from WE Data Setup Time Data Hold Time Read Recovery (Clock Access Only) Write Recovery (Clock Access Only) SYMBOL tRC tAAC tOE tCO tCOE tOD tOH tWC tWP tAW tAH1 tAH2 tODW tOEW tDS tDH1 tDH2 MIN 150 MAX 5 60 0 20 UNITS ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns tRR 20 ns tWR 20 ns 150 75 150 0 70 5 150 100 0 5 25 70 9 of 17 NOTES 2 2 5 6 7 2 2 8 6 8 DS1254 Figure 4. MEMORY READ CYCLE TIMING (Note 9) tRC ADDRESS tOH tACC tCO CE tOD tOE OE tCOE tCOE tOD OUTPUT DATA VALID DQ0–DQ7 Figure 5. MEMORY WRITE CYCLE TIMING, WRITE-ENABLE CONTROLLED (Notes 5, 6, 8, 10, 11, 12, and 13) tWC ADDRESS tAW CE tAH1 WE tWP tODW tOEW tDS DQ0–DQ7 DATA IN STABLE 10 of 17 tDH1 DS1254 Figure 6. MEMORY WRITE CYCLE TIMING, CHIP-ENABLE CONTROLLED (Notes 5, 7, 8, 10, 11, 12, and 13) tWC ADDRESS tAW tAH2 tWP CE WE tODW tCOE tDH2 tDS DQ0–DQ7 DATA IN STABLE Figure 7. READ CYCLE TO PHANTOM CLOCK tRC WE = VIH tRR tCO CE tOD tOE OE tCOE tCOE tOD OUTPUT DATA VALID DQ0 Figure 8. WRITE CYCLE TO PHANTOM CLOCK tWC OE = VIH tWR tWP WE TAH2 CE tWP tDH2 tDS tDH1 DATA IN STABLE DQ0 11 of 17 DS1254 Figure 9. POWER-UP/POWER-DOWN WAVEFORM TIMING (Note 14) VCC VPF(max) VPF(min) VBAT tPD tF tFB tREC tDR SLEWS WITH VCC CE tR , WE SLEWS WITH VCC tBPU BW POWER-UP/POWER-DOWN CHARACTERISTICS PARAMETER and WE at VIH Before PowerDown VCC Fall Time: VPF(MAX) to VPF(MIN) VCC Fall Time: VPF(MIN) to VBAT VCC Rise Time: 0V to VPF(MIN) VCC Valid to End of Write Protection VCC Valid to BW Valid CE SYMBOL tPD MIN 0 tF tFB tR tREC tBPU 300 10 150 (VCC = 5V ±10%) TYP MAX 125 1 UNITS ms ms ms ms ms s NOTES 3 (TA = +25°C) PARAMETER Expected Data-Retention Time (Oscillator On) SYMBOL MIN tDR 10 TYP MAX UNITS NOTES years 4 Warning: Under no circumstances are negative undershoots, of any amplitude, allowed when device is in battery-backup mode. 12 of 17 DS1254 Figure 10. BATTERY WARNING DETECTION (Note 3) VCC tBPU VBAT 2.6V tBTC tBTPW BATTERY TEST ACTIVE tBW BW (VCC = 5.0V ±10%, TA = 0°C to +70°C) BATTERY WARNING TIMING PARAMETER Battery Test Cycle Battery Test Pulse Width Battery Test to BW Active VCC Valid to BW Valid SYMBOL tBTC tBTPW tBW tBPU MIN TYP 24 MAX 1 1 1 AC TEST CONDITIONS Output Load: 100pF + 1 TTL Gate Input Pulse Levels: 0V to 3.0V Timing Measurement Reference Levels: Input: 1.5V Output: 1.5V Input Pulse Rise and Fall Times: 5ns 13 of 17 UNITS hr s s s NOTES 3 DS1254 NOTES: 1) Voltage referenced to ground. 2) These parameters are sampled with a 50pF load and are not 100% tested. 3) BW is an open-drain output and, as such, cannot source current. An external pullup resistor should be connected to this pin for proper operation. BW can sink 10mA. 4) The DS3800 battery cap is a one-time use part, but can be removed and replaced. By design, DS3800 removal will mechanically damage the battery cap, which eliminates the accidental use of a previously attached and possibly low-capacity battery cap. 5) tWP specified as the logical AND of CE and WE , tWP is measured from the latter of CE or WE going low to the earlier of CE or WE going high. 6) tAH1, tDH1 are measured from WE going high. 7) tAH2, tDH2 are measured from CE going high. 8) tDS is measured from the earlier of CE or WE going high. 9) WE is high for a read cycle. 10) OE = VIH or VIL. If OE = VIH during write cycle, the output buffers remain in a high-impedance state. 11) If the CE low transition occurs simultaneously with or later than the WE low transition in a writeenable-controlled write cycle, the output buffers remain in a high-impedance state during this period. 12) 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. 13) 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. 14) In a power-down condition, the voltage on any pin cannot exceed the voltage on VCC. 14 of 17 DS1254 DS1254 PACKAGE DIMENSIONS PKG A B C D E F G H I K 15 of 17 IN MM IN MM IN MM IN MM IN MM IN MM IN MM IN MM IN MM IN MM MIN MAX 1.570 39.88 1.570 39.88 0.033 0.84 1.497 38.02 0.047 1.19 0.033 0.84 0.047 1.19 0.234 5.94 0.160 4.00 0.025 0.64 1.580 40.13 1.580 40.13 0.043 1.09 1.503 38.18 0.053 1.35 0.043 1.09 0.053 1.35 0.240 6.10 0.200 5.10 0.032 0.82 DS1254 PACKAGE DIMENSIONS (with attached DS3800 Battery Cap) PKG A IN MM B IN MM C IN MM 16 of 17 MIN MAX 1.656 42.06 1.656 42.06 — — 1.668 42.37 1.668 42.37 0.485 12.32 DS1254 RECOMMENDED LAND PATTERN (with overlaid package outline) The DS1254 BGA is a subset of the industry-standard 40mm BGA format, with all balls on a 50mil grid. Corner balls have been removed to provide space for the electrical and mechanical interface features that facilitate attachment of the DS3800 battery cap. NOTE 0.250 0.500 0.150 Note: Ground shield to isolate RTC XTAL from EMI. 17 of 17