M48T08 M48T18 64 Kbit (8Kb x 8) TIMEKEEPER® SRAM INTEGRATED ULTRA LOW POWER SRAM, REAL TIME CLOCK, POWER-FAIL CONTROL CIRCUIT and BATTERY SNAPHAT (SH) BYTEWIDE RAM-LIKE CLOCK ACCESS Battery/Crystal BCD CODED YEAR, MONTH, DAY, DATE, HOURS, MINUTES and SECONDS TYPICAL CLOCK ACCURACY of ± 1 MINUTE a MONTH, at 25°C AUTOMATIC POWER-FAIL CHIP DESELECT and WRITE PROTECTION 28 WRITE PROTECT VOLTAGES 28 1 (VPFD = Power-fail Deselect Voltage): – M48T08: 4.5V ≤ VPFD ≤ 4.75V 1 PCDIP28 (PC) Battery/Crystal – M48T18: 4.2V ≤ VPFD ≤ 4.5V SOH28 (MH) CAPHAT SOFTWARE CONTROLLED CLOCK CALIBRATION for HIGH ACCURACY APPLICATIONS SELF-CONTAINED BATTERY and CRYSTAL in the CAPHAT DIP PACKAGE Figure 1. Logic Diagram PACKAGING INCLUDES a 28-LEAD SOIC and SNAPHAT® TOP (to be Ordered Separately) SOIC PACKAGE PROVIDES DIRECT CONNECTION for a SNAPHAT TOP which VCC CONTAINS the BATTERY and CRYSTAL PIN and FUNCTION COMPATIBLE with DS1643 and JEDEC STANDARD 8K x 8 13 8 SRAMs A0-A12 DQ0-DQ7 Table 1. Signal Names W A0-A12 Address Inputs M48T08 E1 M48T18 INT DQ0-DQ7 Data Inputs / Outputs E2 INT Power Fail Interrupt (Open Drain) E1 Chip Enable 1 G E2 Chip Enable 2 G Output Enable VSS W Write Enable AI01020 VCC Supply Voltage VSS Ground May 1999 1/19 M48T08, M48T18 Figure 2A. DIP Pin Connections Figure 2B. SOIC Pin Connections INT 1 28 VCC INT 1 28 VCC A12 2 27 W A12 2 27 W A7 3 26 E2 A7 3 26 E2 A6 4 25 A8 A6 4 25 A8 A5 5 24 A9 A5 5 24 A9 A4 6 23 A11 A4 6 23 A11 A3 7 M48T08 22 G A3 7 M48T18 22 G A2 8 M48T18 21 A10 A2 8 21 A10 A1 9 20 E1 A1 9 20 E1 A0 10 19 DQ7 A0 10 19 DQ7 DQ0 11 18 DQ6 DQ0 11 18 DQ6 DQ1 12 17 DQ5 DQ1 12 17 DQ5 DQ2 13 16 DQ4 DQ2 13 16 DQ4 VSS 14 15 DQ3 VSS 14 15 DQ3 AI01182 AI01021B Table 2. Absolute Maximum Ratings (1) Symbol Parameter Value Unit TA Ambient Operating Temperature 0 to 70 °C TSTG Storage Temperature (VCC Off, Oscillator Off) –40 to 85 °C TSLD (2) Lead Solder Temperature for 10 seconds 260 °C VIO Input or Output Voltages –0.3 to 7 V VCC Supply Voltage –0.3 to 7 V IO Output Current 20 mA PD Power Dissipation 1 W Notes: 1. Stresses greater than those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational section of this specification is not implied. Exposure to the absolute maximum rating conditions for extended periods of time may affect reliability. 2. Soldering temperature not to exceed 260°C for 10 seconds (total thermal budget not to exceed 150°C for longer than 30 seconds). CAUTION: Negative undershoots below –0.3 volts are not allowed on any pin while in the Battery Back-up mode. CAUTION: Do NOT wave solder SOIC to avoid damaging SNAPHAT sockets. Table 3. Operating Modes Mode VCC E1 E2 G W DQ0-DQ7 Power Deselect VIH X X X High Z Standby Deselect 4.75V to 5.5V X VIL X X High Z Standby or Write 4.5V to 5.5V VIL VIH X VIL DIN Active Read VIL VIH VIL VIH DOUT Active Read VIL VIH VIH VIH High Z Active Deselect VSO to VPFD (min) X X X X High Z CMOS Standby Deselect ≤ VSO X X X X High Z Battery Back-up Mode Notes: 1. X = VIH or VIL; VSO = Battery Back-up Switchover Voltage. 2/19 M48T08, M48T18 Figure 3. Block Diagram OSCILLATOR AND 8 x 8 BiPORT CLOCK CHAIN SRAM ARRAY 32,768 Hz CRYSTAL A0-A12 POWER DQ0-DQ7 8184 x 8 SRAM ARRAY LITHIUM CELL E1 VOLTAGE SENSE E2 VPFD AND SWITCHING W CIRCUITRY G VCC INT VSS AI01333 DESCRIPTION Table 4. AC Measurement Conditions The M48T08/18 TIMEKEEPER® RAM is an 8K x 8 non-volatile static RAM and real time clock which Input Rise and Fall Times ≤ 5ns is pin and functional compatible with the DS1643. Input Pulse Voltages 0 to 3V The monolithic chip is available in two special packages to provide a highly integrated battery Input and Output Timing Ref. Voltages 1.5V backed-up memory and real time clock solution. Note that Output Hi-Z is defined as the point where data is no The M48T08/18 is a non-volatile pin and function longer driven. equivalent to any JEDEC standard 8K x 8 SRAM. It also easily fits into many ROM, EPROM, and EEPROM sockets, providing the non-volatility of Figure 4. AC Testing Load Circuit PROMs without any requirement for special write 5V timing or limitations on the number of writes that can be performed. The 28 pin 600mil DIP CAPHAT houses the M48T08/18 silicon with a quartz crystal and a long 1.8kΩ life lithium button cell in a single package. DEVICE The 28 pin 330mil SOIC provides sockets with gold UNDER OUT plated contacts at both ends for direct connection TEST to a separate SNAPHAT housing containing the battery and crystal. The unique design allows the 1kΩ CL = 100pF SNAPHAT battery package to be mounted on top of the SOIC package after the completion of the surface mount process. Insertion of the SNAPHAT housing after reflow prevents potential battery and crystal damage due to the high temperatures re- CL includes JIG capacitance quired for device surface-mounting. The SNAPHAT AI01019 housing is keyed to prevent reverse insertion. 3/19 M48T08, M48T18 Table 5. Capacitance (1, 2) (TA = 25 °C, f = 1 MHz ) Symbol Parameter Test Condition Min Max Unit CIN Input Capacitance VIN = 0V 10 pF (3) CIO Input / Output Capacitance VOUT = 0V 10 pF Notes: 1. Effective capacitance measured with power supply at 5V. 2. Sampled only, not 100% tested. 3. Outputs deselected. Table 6. DC Characteristics (TA = 0 to 70°C; VCC = 4.75V to 5.5V or 4.5V to 5.5V) Symbol Parameter Test Condition Min Max Unit ILI (1) Input Leakage Current 0V ≤ VIN ≤ VCC ±1 µA ILO (1) Output Leakage Current 0V ≤ VOUT ≤ VCC ±5 µA ICC Supply Current Outputs open 80 mA (2) ICC1 Supply Current (Standby) TTL E1 = VIH, E2 = VIL 3 mA E1 = VCC – 0.2V, ICC2 (2) Supply Current (Standby) CMOS 3 mA E2 = VSS + 0.2V VIL(3) Input Low Voltage –0.3 0.8 V VIH Input High Voltage 2.2 VCC + 0.3 V Output Low Voltage IOL = 2.1mA 0.4 V VOL (4) Output Low Voltage (INT) IOL = 0.5mA 0.4 V VOH Output High Voltage IOH = –1mA 2.4 V Notes: 1. Outputs Deselected. 2. Measured with Control Bits set as follows: R = ’1’; W, ST, FT = ’0’. 3. Negative spikes of –1V allowed for up to 10ns once per Cycle. 4. The INT pin is Open Drain. Table 7. Power Down/Up Trip Points DC Characteristics (1) (TA = 0 to 70°C) Symbol Parameter Min Typ Max Unit VPFD Power-fail Deselect Voltage (M48T08) 4.5 4.6 4.75 V VPFD Power-fail Deselect Voltage (M48T18) 4.2 4.3 4.5 V VSO Battery Back-up Switchover Voltage 3.0 V tDR(2) Expected Data Retention Time 10 YEARS Notes: 1. All voltages referenced to VSS. 2. At 25°C DESCRIPTION (cont’d) As Figure 3 shows, the static memory array and the quartz controlled clock oscillator of the M48T08/18 The SOIC and battery/crystal packages are are integrated on one silicon chip. The two circuits shipped separately in plastic anti-static tubes or in are interconnected at the upper eight memory lo- Tape & Reel form. For the 28 lead SOIC, the cations to provide user accessible BYTEWIDE battery/crystal package (i.e. SNAPHAT) part num- clock information in the bytes with addresses ber is "M4T28-BR12SH1". 1FF8h-1FFFh. 4/19 M48T08, M48T18 Table 8. Power Down/Up Mode AC Characteristics (TA = 0 to 70°C) Symbol Parameter Min Max Unit tPD E1 or W at VIH or E2 at VIL before Power Down 0 µs tF (1) VPFD (max) to VPFD (min) VCC Fall Time 300 µs tFB (2) VPFD (min) to VSO VCC Fall Time 10 µs tR VPFD(min) to VPFD (max) VCC Rise Time 0 µs tRB VSO to VPFD (min) VCC Rise Time 1 µs tREC E1 or W at VIH or E2 at VIL after Power Up 1 ms tPFX INT Low to Auto Deselect 10 40 µs tPFH (3) VPFD (max) to INT High 120 µs Notes: 1. VPFD (max) to VPFD (min) fall time of less than tF may result in deselection/write protection not occurring until 200 µs after VCC passes VPFD (min). 2. VPFD (min) to VSO fall time of less than tFB may cause corruption of RAM data. 3. INT may go high anytime after VCC exceeds VPFD (min) and is guaranteed to go high tPFH after VCC exceeds VPFD (max). Figure 5. Power Down/Up Mode AC Waveforms VCC VPFD (max) VPFD (min) VSO tF tDR tR tPD tFB tRB tPFX tPFH INT tREC INPUTS RECOGNIZED DON'T CARE NOTE RECOGNIZED HIGH-Z OUTPUTS VALID VALID (PER CONTROL INPUT) (PER CONTROL INPUT) AI00566 Note: Inputs may or may not be recognized at this time. Caution should be taken to keep E1 high or E2 low as VCC rises past VPFD(min). Some systems may perform inadvertent write cycles after VCC rises above VPFD(min) but before normal system operations begin. Even though a power on reset is being applied to the processor, a reset condition may not occur until after the system clock is runn ing. 5/19 M48T08, M48T18 Table 9. Read Mode AC Characteristics (TA = 0 to 70°C; VCC = 4.75V to 5.5V or 4.5V to 5.5V) M48T08 / M48T18 Symbol Parameter Unit -100 -150 Min Max Min Max tAVAV Read Cycle Time 100 150 ns tAVQV Address Valid to Output Valid 100 150 ns tE1LQV Chip Enable 1 Low to Output Valid 100 150 ns tE2HQV Chip Enable 2 High to Output Valid 100 150 ns tGLQV Output Enable Low to Output Valid 50 75 ns tE1LQX Chip Enable 1 Low to Output Transition 10 10 ns tE2HQX Chip Enable 2 High to Output Transition 10 10 ns tGLQX Output Enable Low to Output Transition 5 5 ns tE1HQZ Chip Enable 1 High to Output Hi-Z 50 75 ns tE2LQZ Chip Enable 2 Low to Output Hi-Z 50 75 ns tGHQZ Output Enable High to Output Hi-Z 40 60 ns tAXQX Address Transition to Output Transition 5 5 ns Figure 6. Read Mode AC Waveforms tAVAV A0-A12 VALID tAVQV tAXQX tE1LQV tE1HQZ E1 tE1LQX tE2HQV tE2LQZ E2 tE2HQX tGLQV tGHQZ G tGLQX DQ0-DQ7 VALID AI00962 Note: Write Enable (W) = High. 6/19 M48T08, M48T18 Table 10. Write Mode AC Characteristics (TA = 0 to 70°C; VCC = 4.75V to 5.5V or 4.5V to 5.5V) M48T08 / M48T18 Symbol Parameter Unit -100 -150 Min Max Min Max tAVAV Write Cycle Time 100 150 ns tAVWL Address Valid to Write Enable Low 0 0 ns tAVE1L Address Valid to Chip Enable 1 Low 0 0 ns tAVE2H Address Valid to Chip Enable 2 High 0 0 ns tWLWH Write Enable Pulse Width 80 100 ns tE1LE1H Chip Enable 1 Low to Chip Enable 1 High 80 130 ns tE2HE2L Chip Enable 2 High to Chip Enable 2 Low 80 130 ns tWHAX Write Enable High to Address Transition 10 10 ns tE1HAX Chip Enable 1 High to Address Transition 10 10 ns tE2LAX Chip Enable 2 Low to Address Transition 10 10 ns tDVWH Input Valid to Write Enable High 50 70 ns tDVE1H Input Valid to Chip Enable 1 High 50 70 ns tDVE2L Input Valid to Chip Enable 2 Low 50 70 ns tWHDX Write Enable High to Input Transition 5 5 ns tE1HDX Chip Enable 1 High to Input Transition 5 5 ns tE2LDX Chip Enable 2 Low to Input Transition 5 5 ns tWLQZ Write Enable Low to Output Hi-Z 50 70 ns tAVWH Address Valid to Write Enable High 80 130 ns tAVE1H Address Valid to Chip Enable 1 High 80 130 ns tAVE2L Address Valid to Chip Enable 2 Low 80 130 ns tWHQX Write Enable High to Output Transition 10 10 ns DESCRIPTION (cont’d) The eight clock bytes are not the actual clock counters themselves; they are memory locations The clock locations contain the year, month, date, consisting of BiPORT read/write memory cells. day, hour, minute, and second in 24 hour BCD The M48T08/18 includes a clock control circuit format. Corrections for 28, 29 (leap year), 30, and which updates the clock bytes with current informa- 31 day months are made automatically. Byte tion once per second. The information can be 1FF8h is the clock control register. This byte con- accessed by the user in the same manner as any trols user access to the clock information and also other location in the static memory array. stores the clock calibration setting. 7/19 M48T08, M48T18 Figure 7. Write Enable Controlled, Write AC Waveforms tAVAV A0-A12 VALID tAVWH tAVE1L tWHAX E1 tAVE2H E2 tWLWH tAVWL W tWLQZ tWHQX tWHDX DQ0-DQ7 DATA INPUT tDVWH AI00963 Figure 8. Chip Enable Controlled, Write AC Waveforms tAVAV A0-A12 VALID tAVE1H tAVE1L tE1LE1H tE1HAX E1 tAVE2L tAVE2H tE2HE2L tE2LAX E2 tAVWL W tE1HDX tE2LDX DQ0-DQ7 DATA INPUT tDVE1H tDVE2L AI00964B 8/19 M48T08, M48T18 DESCRIPTION (cont’d) The state of the eight three-state Data I/O signals is controlled by E1, E2 and G. If the outputs are The M48T08/18 also has its own Power-fail Detect activated before tAVQV, the data lines will be driven circuit. The control circuitry constantly monitors the to an indeterminate state until tAVQV. If the Address single 5V supply for an out of tolerance condition. Inputs are changed while E1, E2 and G remain When VCC is out of tolerance, the circuit write active, output data will remain valid for Output Data protects the SRAM, providing a high degree of data Hold time (tAXQX) but will go indeterminate until the security in the midst of unpredictable system op- next Address Access. eration brought on by low VCC. As VCC falls below approximately 3V, the control circuitry connects the battery which maintains data and clock operation WRITE MODE until valid power returns. The M48T08/18 is in the Write Mode whenever W, E1, and E2 are active. The start of a write is READ MODE referenced from the latter occurring falling edge of W or E1, or the rising edge of E2. A write is The M48T08/18 is in the Read Mode whenever W terminated by the earlier rising edge of W or E1, or (Write Enable) is high, E1 (Chip Enable 1) is low, the falling edge of E2. The addresses must be held and E2 (Chip Enable 2) is high. The device archi- valid throughout the cycle. E1 or W must return high tecture allows ripple-through access of data from or E2 low for a minimum of tE1HAX or tE2LAX from eight of 65,536 locations in the static storage array. Chip Enable or tWHAX from Write Enable prior to the Thus, the unique address specified by the 13 Ad- initiation of another read or write cycle. Data-in dress Inputs defines which one of the 8,192 bytes must be valid tDVWH prior to the end of write and of data is to be accessed. Valid data will be avail- remain valid for tWHDX afterward. G should be kept able at the Data I/O pins within Address Access high during write cycles to avoid bus contention; time (tAVQV) after the last address input signal is although, if the output bus has been activated by a stable, providing that the E1, E2, and G access low on E1 and G and a high on E2, a low on W will times are also satisfied. If the E1, E2 and G access disable the outputs tWLQZ after W falls. times are not met, valid data will be available after the latter of the Chip Enable Access times (tE1LQV or tE2HQV) or Output Enable Access time (tGLQV). Table 11. Register Map Data Function/Range Address BCD Format D7 D6 D5 D4 D3 D2 D1 D0 1FFFh 10 Years Year Year 00-99 1FFEh 0 0 0 10 M. Month Month 01-12 1FFDh 0 0 10 Date Date Date 01-31 1FFCh 0 FT 0 0 0 Day Day 01-07 1FFBh 0 0 10 Hours Hours Hour 00-23 1FFAh 0 10 Minutes Minutes Minutes 00-59 1FF9h ST 10 Seconds Seconds Seconds 00-59 1FF8h W R S Calibration Control Keys: S = SIGN Bit FT = FREQUENCY TEST Bit (Set to ’0’ for normal clock operation) R = READ Bit W = WRITE Bit ST = STOP Bit 0 = Must be set to ’0’ 9/19 M48T08, M48T18 DATA RETENTION MODE Write protection continues until VCC reaches VPFD With valid VCC applied, the M48T08/18 operates as (min) plus tREC (min). E1 should be kept high or E2 a conventional BYTEWIDE static RAM. Should the low as VCC rises past VPFD(min) to prevent inadver- supply voltage decay, the RAM will automatically tent write cycles prior to system stabilization. Nor- power-fail deselect, write protecting itself when VCC mal RAM operation can resume tREC after VCC falls within the VPFD(max), VPFD(min) window. All exceeds VPFD(max). outputs become high impedance, and all inputs are For more information on Battery Storage Life refer treated as "don’t care." to the Applicatio Noyte ANxxx. Note: A power failure during a write cycle may corrupt data at the currently addressed location, POWER FAIL INTERRUPT PIN but does not jeopardize the rest of the RAM’s The M48T08/18 continuously monitors VCC. When content. At voltages below VPFD(min), the user can VCC falls to the power-fail detect trip point, an be assured the memory will be in a write protected interrupt is immediately generated. An internal state, provided the VCC fall time is not less than tF. clock provides a delay of between 10µs and 40µs The M48T08/18 may respond to transient noise before automatically deselecting the M48T08/18. spikes on VCC that reach into the deselect window The INT pin is an open drain output and requires during the time the device is sampling VCC. There- an external pull up resistor, even if the interrupt fore, decoupling of the power supply lines is rec- output function is not being used. ommended. When VCC drops below VSO, the control circuit switches power to the internal battery which pre- SYSTEM BATTERY LIFE serves data and powers the clock. The internal The useful life of the battery in the M48T08/18 is button cell will maintain data in the M48T08/18 for expected to ultimately come to an end for one of an accumulated period of at least 10 years when two reasons: either because it has been dis- VCC is less than VSO. As system power returns and charged while providing current to the RAM and VCC rises above VSO, the battery is disconnected, clock in the battery back-up mode, or because the and the power supply is switched to external VCC. effects of aging render the cell useless before it can Figure 9. Predicted Battery Storage Life versus Temperature AI01024 50 40 30 t50% (AVERAGE) 20 t1% 10 YEARS 8 6 5 4 3 2 1 20 30 40 50 60 70 80 90 TEMPERATURE (Degrees Celsius) 10/19 M48T08, M48T18 actually be completely discharged. The two effects battery at room temperature. At this rate, the ca- are virtually unrelated, allowing discharge or Ca- pacity consumption life is 50E-3/520E-9 = 96,153 pacity Consumption, and the effects of aging or hours or about 11 years. Capacity consumption life Storage Life, to be treated as two independent but can be extended by applying VCC or turning off the simultaneous mechanisms. The earlier occurring clock oscillator prior to system power down. failure mechanism defines the battery system life Calculating Capacity Life of the M48T08/18. The RAM and TIMEKEEPER load remains rela- Cell Storage Life tively constant over the operating temperature Storage life is primarily a function of temperature. range. Thus, worst case cell capacity life is essen- Figure 9 illustrates the approximate storage life of tially a function of one variable, VCC duty cycle. For the M48T08/18 battery over temperature. The re- example, if the oscillator runs 100% of the time with sults in Figure 9 are derived from temperature VCC applied 60% of the time, the capacity con- accelerated life test studies performed at SGS- sumption life is 10/(1-0.6), or 25 years. THOMSON. For the purpose of the testing, a cell Estimated System Life failure is defined as the inability of a cell stabilized at 25°C to produce a 2.4V closed circuit voltage Since either storage life or capacity consumption across a 250 kΩ load resistor. The two lines, t1% can end the battery’s life, the system life is marked and t50%, represent different failure rate distribu- by which ever occurs first. In the above example, tions for the cell’s storage life. At 70°C, for example, this would be 25 years. the t1% line indicates that an M48T08/18 has a 1% Reference for System Life chance of having a battery failure 11 years into its Each M48T08/18 is marked with a nine digit manu- life while the t50% shows the part has a 50% chance facturing date code in the form of H99XXYYZZ. For of failure at the 20 year mark. The t1% line repre- example, H995B9431 is: sents the practical onset of wear out and can be considered the worst case Storage Life for the cell. H = fabricated in Carrollton, TX The t50% can be considered the normal or average 9 = assembled in Muar, Malaysia, life. 9 = tested in Muar, Malaysia, Calculating Storage Life 5B = lot designator, The following formula can be used to predict stor- 9431 = assembled in the year 1994, work week 31. age life: 1 {[(TA1/TT)/SL1]+[(TA2/TT)/SL2]+...+[(TAN/TT)/SLN]} CLOCK OPERATIONS where, Reading the Clock – TA1, TA2, TAN = time at ambient temperature Updates to the TIMEKEEPER registers should be 1, 2, etc. halted before clock data is read to prevent reading data in transition. Because the BiPORT TIME- – TT = total time = TA1+TA2+...+TAN KEEPER cells in the RAM array are only data – SL1, SL2, SLN = storage life at temperature 1, registers, and not the actual clock counters, updat- 2, etc. ing the registers can be halted without disturbing For example, an M48T08/18 is exposed to tem- the clock itself. peratures of 55°C or less for 8322 hrs/yr, and Updating is halted when a ’1’ is written to the READ temperatures greater than 60°C but less than 70°C bit, the seventh bit in the control register. As long for the remaining 438 hrs/yr. Reading predicted t1% as a ’1’ remains in that position, updating is halted. values from Figure 9, After a halt is issued, the registers reflect the count; – SL1 = 41 yrs, SL2 = 11.4 yrs that is, the day, date, and the time that were current – TT = 8760 hrs/yr at the moment the halt command was issued. – TA1 = 8322 hrs/yr, TA2 = 438 hrs/yr All of the TIMEKEEPER registers are updated si- multaneously. A halt will not interrupt an update in Predicted storage life ≥ progress. Updating is within a second after the bit 1 is reset to a ’0’. {[(8322/8760)/41]+[(431/8760)/11.4]} Setting the Clock or 36 years. The eighth bit of the control register is the WRITE Cell Capacity Life bit. Setting the WRITE bit to a ’1’, like the READ bit, The M48T08/18 internal cell has a rated capacity halts updates to the TIMEKEEPER registers. The of 50mAh. The device places a nominal RAM and user can then load them with the correct day, date, TIMEKEEPER load of less than 520nA on the and time data in 24 hour BCD format (on Table 11). 11/19 M48T08, M48T18 Setting the Clock (cont’d) temperature shift error with cumbersome trim ca- pacitors. The M48T08/18 design, however, em- Resetting the WRITE bit to a ’0’ then transfers the ploys periodic counter correction. The calibration values of all time registers (1FF9h-1FFFh) to the circuit adds or subtracts counts from the oscillator actual TIMEKEEPER counters and allows normal divider circuit at the divide by 256 stage, as shown operation to resume. The FT bit and the bits marked in Figure 10. The number of times pulses are as ’0’ in Table 11 must be written to ’0’ to allow for blanked (subtracted, negative calibration) or split normal TIMEKEEPER and RAM operation. (added, positive calibration) depends upon the See the Application Note AN923 "TIMEKEEPER value loaded into the five bit Calibration byte found rolling into the 21st century" for information on in the Control Register. Adding counts speeds the Century Rollover. clock up, subtracting counts slows the clock down. Stopping and Starting the Oscillator The Calibration byte occupies the five lower order bits in the Control register. This byte can be set to The oscillator may be stopped at any time. If the represent any value between 0 and 31 in binary device is going to spend a significant amount of form. The sixth bit is a sign bit; ’1’ indicates positive time on the shelf, the oscillator can be turned off to calibration, ’0’ indicates negative calibration. Cali- minimize current drain on the battery. The STOP bration occurs within a 64 minute cycle. The first 62 bit is the MSB of the seconds register. Setting it to minutes in the cycle may, once per minute, have a ’1’ stops the oscillator. The M48T08/18 is shipped one second either shortened by 128 or lengthened from STMicroelectronics with the STOP bit set to a by 256 oscillator cycles. If a binary ’1’ is loaded into ’1’. When reset to a ’0’, the M48T08/18 oscillator the register, only the first 2 minutes in the 64 minute starts within 1 second. cycle will be modified; if a binary 6 is loaded, the Calibrating the Clock first 12 will be affected, and so on. The M48T08/18 is driven by a quartz controlled Therefore, each calibration step has the effect of oscillator with a nominal frequency of 32,768 Hz. A adding 512 or subtracting 256 oscillator cycles for typical M48T08/18 is accurate within ±1 minute per every 125,829,120 actual oscillator cycles; that is month at 25°C without calibration. The devices are +4.068 or -2.034 PPM of adjustment per calibration tested not to exceed ±35 PPM (parts per million) step in the calibration register. Assuming that the oscillator frequency error at 25°C, which equates oscillator is in fact running at exactly 32,768 Hz, to about ± 1.53 minutes per month. each of the 31 increments in the Calibration byte The oscillation rate of any crystal changes with would represent +10.7 or - 5.35 seconds per month temperature. Figure 11 shows the frequency error which corresponds to a total range of +5.5 or - 2.75 that can be expected at various temperatures. Most minutes per month. clock chips compensate for crystal frequency and Figure 10. Clock Calibration NORMAL POSITIVE CALIBRATION NEGATIVE CALIBRATION AI00594B 12/19 M48T08, M48T18 Two methods are available for ascertaining how frequency shift at the test temperature. For exam- much calibration a given M48T08/18 may require. ple, a reading of 512.01024 Hz would indicate a The first involves simply setting the clock, letting it +20 PPM oscillator frequency error, requiring a -10 run for a month and comparing it to a known (WR001010) to be loaded into the Calibration Byte accurate reference (like WWV broadcasts). While for correction. Note that setting or changing the that may seem crude, it allows the designer to give Calibration Byte does not affect the Frequency test the end user the ability to calibrate his clock as his output frequency. The device must be selected and environment may require, even after the final prod- addresses must stable at Address 1FF9h when uct is packaged in a non-user serviceable enclo- reading the 512 Hz on DQ0. sure. All the designer has to do is provide a simple The FT bit must be set using the same method used utility that accesses the Calibration byte. The utility to set the clock, using the Write bit. The LSB of the could even be menu driven and made foolproof. Seconds Register is monitored by holding the The second approach is better suited to a manu- M48T08/18 in an extended read of the Seconds facturing environment, and involves the use of Register, without having the Read bit set. The FT some test equipment. When the Frequency Test bit MUST be reset to ’0’ for normal clock operations (FT) bit, the seventh-most significant bit in the Day to resume. Register, is set to a ’1’, and the oscillator is running For more information on calibration, see the Appli- at 32,768 Hz, the LSB (DQ0) of the Seconds Reg- cation Note AN924 "TIMEKEEPER Calibration". ister will toggle at 512 Hz. Any deviation from 512 Hz indicates the degree and direction of oscillator Figure 11. Crystal Accuracy Across Temperature ppm 20 0 -20 -40 ∆F = -0.038 ppm (T - T )2 ± 10% 0 -60 F C2 T0 = 25 °C -80 -100 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 °C AI02124 13/19 M48T08, M48T18 POWER SUPPLY DECOUPLING and UNDER- Figure 12. Supply Voltage Protection SHOOT PROTECTION ICC transients, including those produced by output switching, can produce voltage fluctuations, result- ing in spikes on the VCC bus. These transients can be reduced if capacitors are used to store energy, which stabilizes the VCC bus. The energy stored in VCC the bypass capacitors will be released as low going spikes are generated or energy will be absorbed VCC when overshoots occur. A ceramic bypass capaci- tor value of 0.1µF (as shown in Figure 12) is recommended in order to provide the needed filter- 0.1µF DEVICE ing. In addition to transients that are caused by normal SRAM operation, power cycling can generate VSS negative voltage spikes on VCC that drive it to values below VSS by as much as one Volt. These negative spikes can cause data corruption in the AI02169 SRAM while in battery backup mode. To protect from these voltage spikes, it is recommeded to connect a schottky diode from VCC to VSS (cathode connected to VCC, anode to VSS). Schottky diode 1N5817 is recommended for through hole and MBRS120T3 is recommended for surface mount. 14/19 M48T08, M48T18 ORDERING INFORMATION SCHEME Example: M48T18 -100 MH 1 TR Supply Voltage and Write Speed Package Temp. Range Shipping Method Protect Voltage for SOIC 08 (1) VCC = 4.75V to 5.5V -100 100ns PC PCDIP28 1 0 to 70 °C blank Tubes VPFD = 4.5V to 4.75V -150 150ns MH (2) SOH28 TR Tape & Reel 18 VCC = 4.5V to 5.5V VPFD = 4.2V to 4.5V Notes: 1. The M48T08 part is offered with the PCDIP28 (i.e. CAPHAT) package only. 2. The SOIC package (SOH28) requires the battery/crystal package (SNAPHAT) which is ordered separately under the part number "M4T28-BR12SH1" in plastic tube or "M4T28-BR12SH1TR" in Tape & Reel form. Caution: Do not place the SNAPHAT battery/crystal package "M4T18-BR12SH1" in conductive foam since this will drain the lithium button-cell battery. For a list of available options (Speed, Package, etc...) or for further information on any aspect of this device, please contact the STMicroelectronics Sales Office nearest to you. 15/19 M48T08, M48T18 PCDIP28 - 28 pin Plastic DIP, battery CAPHAT mm inches Symb Typ Min Max Typ Min Max A 8.89 9.65 0.350 0.380 A1 0.38 0.76 0.015 0.030 A2 8.38 8.89 0.330 0.350 B 0.38 0.53 0.015 0.021 B1 1.14 1.78 0.045 0.070 C 0.20 0.31 0.008 0.012 D 39.37 39.88 1.550 1.570 E 17.83 18.34 0.702 0.722 e1 2.29 2.79 0.090 0.110 e3 29.72 36.32 1.170 1.430 eA 15.24 16.00 0.600 0.630 L 3.05 3.81 0.120 0.150 N 28 28 A2 A A1 L C B1 B e1 eA e3 D N E 1 PCDIP Drawing is not to scale. 16/19 M48T08, M48T18 SOH28 - 28 lead Plastic Small Outline, battery SNAPHAT mm inches Symb Typ Min Max Typ Min Max A 3.05 0.120 A1 0.05 0.36 0.002 0.014 A2 2.34 2.69 0.092 0.106 B 0.36 0.51 0.014 0.020 C 0.15 0.32 0.006 0.012 D 17.71 18.49 0.697 0.728 E 8.23 8.89 0.324 0.350 e 1.27 – – 0.050 – – eB 3.20 3.61 0.126 0.142 H 11.51 12.70 0.453 0.500 L 0.41 1.27 0.016 0.050 α 0° 8° 0° 8° N 28 28 CP 0.10 0.004 A2 A C B e eB CP D N E H A1 α L 1 SOH-A Drawing is not to scale. 17/19 M48T08, M48T18 SH - SNAPHAT Housing for 28 lead Plastic Small Outline mm inches Symb Typ Min Max Typ Min Max A 9.78 0.385 A1 6.73 7.24 0.265 0.285 A2 6.48 6.99 0.255 0.275 A3 0.38 0.015 B 0.46 0.56 0.018 0.022 D 21.21 21.84 0.835 0.860 E 14.22 14.99 0.560 0.590 eA 15.55 15.95 0.612 0.628 eB 3.20 3.61 0.126 0.142 L 2.03 2.29 0.080 0.090 A1 A2 A A3 eA B L eB D E SHTK-A Drawing is not to scale. 18/19 M48T08, M48T18 Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not authorized for use as critical components in life support devices or systems without express written approval of STMicroelectronics. © 1999 STMicroelectronics - All Rights Reserved ® TIMEKEEPER and SNAPHAT are registered trademarks of STMicroelectronics  CAPHAT, BYTEWIDE and BiPORT are trademarks of STMicroelectronics STMicroelectronics GROUP OF COMPANIES Australia - Brazil - Canada - China - France - Germany - Italy - Japan - Korea - Malaysia - Malta - Mexico - Morocco - The Netherlands - Singapore - Spain - Sweden - Switzerland - Taiwan - Thailand - United Kingdom - U.S.A. 19/19