DS1216E/F SmartWatch/ROM 64k, 256k, 1M www.dalsemi.com FEATURES PIN ASSIGNMENT Keeps track of hundredths of seconds, seconds, minutes, hours, days, date of the month, months, and years Adds timekeeping to any 28-pin or 32-pin JEDEC bytewide memory location Embedded lithium energy cell maintains calendar time for more than 10 years in the absence of power Timekeeping function is transparent to memory operation Month and year determine the number of days in each month; leap year compensation valid up to 2100 Lithium energy source is electrically disconnected to retain freshness until power is applied for the first time Proven gas-tight socket contacts Full 10% VCC operating range Operating temperature range 0C to 70C Accuracy to within 1 minute/month @ 25C RST 1 28 2 27 3 26 4 25 5 24 6 23 7 22 8 21 9 20 A0 10 19 DQ0 11 18 12 13 17 16 14 15 A2 GND RST 1 32 2 31 3 30 4 29 5 28 6 27 7 8 9 26 25 24 10 23 11 22 A02 12 21 DQ0 13 20 5V operation 3V operation 5V operation 3V operation A2 PIN DESCRIPTION DS1216 All pins pass through to the socket except 20(E) or 22(F) RST - Reset A2 - Address Bit 2 ( READ /WRITE ) A0 - Address Bit 0 (Data Input) DQ0 - I/O0 (Data Output) GND - Ground CE - Conditioned Chip Enable OE - Output Enable VCC - Power Supply Input OE CE 28-Pin Intelligent Socket ORDERING INFORMATION DS1216E DS1216E-3 DS1216F DS1216F-3 VCC GND 14 19 15 18 16 17 VCC OE CE 32-Pin Intelligent Socket 1 of 10 092600 DS1216E/F DESCRIPTION The DS1216 SmartWatch/ROM 64/256k 1M is 600 mil-wide DIP socket with a built-in CMOS timekeeper function and an embedded lithium energy source to maintain time and date. The DS1216 accepts any 28-or 32 pin bytewide ROM or volatile RAM. A key feature of the SmartWatch is that the timekeeper function remains transparent to the memory device placed above. The SmartWatch monitors VCC for an out-of-tolerance condition. When such a condition occurs, an internal lithium energy source is automatically switched on to prevent loss of watch data. Using the SmartWatch saves PC board space since the combination of the SmartWatch and the mated memory device takes up no more area than the memory alone. The SmartWatch uses signals RST , A2, A0, DQ0, CE , and OE for timekeeper control. All pins pass through to the socket receptacle except for pin 20 for DS1216E or 22 for DS1216F ( CE ), which is inhibited during the transfer of time information. The SmartWatch provides timekeeping information including hundredths of seconds, seconds, minutes, hours, days, 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 SmartWatch operates in either 24-hour or 12-hour format with an AM/PM indicator. OPERATION A highly structured sequence of 64 cycles is used to gain access to time information and temporarily disconnects the mated memory from the system bus. Information transfer into and out of the SmartWatch is achieved by using address bits A0 and A2, control signals OE and CE , and data I/O line DQ0. All SmartWatch data transfers are accomplished by executing read cycles to the mated memory address space. Write and read functions are determined by the level of address bit A2. When address bit A2 is low, a write cycle is enabled and data must be input on address bit A0. When address bit A2 is high, a read cycle is enabled and data is output on data I/O line DQ0. Either control signal ( OE or CE ) must transition low to begin and high to end memory cycles that are directed to the SmartWatch. However, both control signals must be in an active state during a memory cycle. Communication with the SmartWatch is established by pattern recognition of a serial bit stream of 64 bits which must be matched by executing 64 consecutive write cycles, placing address bit A2 low with the proper data on address bit A0. The 64 write cycles are used only to gain access to the SmartWatch. Prior to executing the first of 64 write cycles, a read cycle should be executed by holding A2 high. The read cycle will reset the comparison register pointer within the SmartWatch, ensuring the pattern recognition starts with the first bit of the sequence. 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 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 1). With a correct match for 64 bits, the SmartWatch is enabled and data transfer to or from the timekeeping registers may proceed. The next 64 cycles will cause the SmartWatch to either receive data on Data In (A0) or transmit data on Data Out (DQ0), depending on the level of READ /WRITE (A2). Cycles to other locations outside the memory block can be interleaved with CE and OE cycles without interrupting the pattern recognition sequence or data transfer sequence to the SmartWatch. 2 of 10 DS1216E/F An unconditional reset to the SmartWatch occurs by either bringing RESET low if enabled, or on power- up. The RESET can occur during pattern recognition or while accessing the SmartWatch registers. RESET causes access to abort and forces the comparison register pointer back to bit 0 without changing registers. NONVOLATILE CONTROLLER OPERATION The DS1216E SmartWatch performs circuit functions required to make the timekeeping function nonvolatile. First, a switch is provided to direct power from the battery or VCC supply, depending on which voltage is greater. The second function provides power-fail detection. Power-fail detection typically occurs at VTP. Finally, the nonvolatile controller protects the SmartWatch register contents by ignoring any inputs after power-fail detection has occurred. Power-fail detection also has the same effect on data transfer as the RESET input. FRESHNESS SEAL Each DS1216E/F is shipped from Dallas Semiconductor with its lithium energy source disconnected, insuring full energy capacity. When VCC is first applied at a level greater than VTP, the lithium energy source is enabled for battery backup operation. SMARTWATCH REGISTER INFORMATION The SmartWatch information is contained in eight registers of 8 bits each which are sequentially accessed one bit at a time after the 64-bit pattern recognition sequence has been completed. When updating the SmartWatch registers, each 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 2. Data contained in the SmartWatch registers is in binary coded decimal format (BCD). Reading and writing the registers is always accomplished by stepping through all eight registers, starting with bit 0 of register 0 and ending with bit 7 of register 7. AM-PM/12/24 MODE Bit 7 of the hours register is defined as the 12- 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 AND RESET BITS Bits 4 and 5 of the day register are used to control the RESET and oscillator functions. Bit 4 controls the RESET (pin 1). When the RESET bit is set to logic 1, the RESET input pin is ignored. When the RESET bit is set to logic 0, a low input on the RESET pin will cause the SmartWatch to abort data transfer without changing data in the watch registers. Bit 5 controls the oscillator. When set to logic 1, the oscillator is turned off. When set to logic 0, the oscillator turns on and the watch becomes operational. Both bits are set to logic 1 when shipped from the factory. ZERO BITS Registers 1,2,3,4,5, and 6 contain one or more bits which will always read logic 0. When writing these locations, either logic 1 or 0 is acceptable. ADDITIONAL INFORMATION Please see Application Notes 4 and 52 for information regarding optional modifications and utilization of the Phantom Clock contained within the SmartWatch. 3 of 10 DS1216E/F SMARTWATCH COMPARISON REGISTER DEFINITION Figure 1 HEX VALUE BYTE 0 7 1 6 1 5 0 4 0 3 0 2 1 1 0 0 1 BYTE 1 0 0 1 1 1 0 1 0 3A BYTE 2 1 0 1 0 0 0 1 1 A3 BYTE 3 0 1 0 1 1 1 0 0 5C BYTE 4 1 1 0 0 0 1 0 1 C5 BYTE 5 0 0 1 1 1 0 1 0 3A BYTE 6 1 0 1 0 0 0 1 1 A3 0 BYTE 7 1 0 1 1 1 0 0 C5 5C NOTE: The pattern recognition sequence in Hex is C5, 3A, 5C, C5, 3A, A3, 5C. The odds of this pattern accidentally occurring and causing inadvertent entry to the SmartWatch is less than 1 in 1019. This pattern is sent to the SmartWatch LSB to MSB. SMARTWATCH REGISTER DEFINITION Figure 2 REGISTER 7 0 0.1 SEC 0 0.01 SEC 7 1 10 SEC SECONDS 0 10 MIN MINUTES 0 10 A/P HR HOUR 7 0 0 OSC RST 0 0 10 DATE 0 0 0 10 MONTH 0 0 DATE 01-31 0 MONTH 7 7 01-07 00-23 DAY 7 6 01-12 0 7 5 00-59 0 12/24 4 00-59 0 7 3 00-99 0 0 7 2 RANGE (BCD) 01-12 0 10 YEAR YEAR 4 of 10 00-99 DS1216E/F ABSOLUTE MAXIMUM RATINGS* Voltage on Any Pin Relative to Ground Operating Temperature Storage Temperature Soldering Temperature -0.3V to +7.0V 0C to 70C -40C to +70C see J-STD-020A specification (See Note 11) * 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 (0C to 70C) SYMBOL MIN TYP MAX UNITS NOTES Pin 28L Supply Voltage VCC 4.5 5.0 5.5 V 1, 3 Logic 1 VIH 2.2 VCC + 0.3 V 1, 6 Logic 0 VIL -0.3 +0.8 V 1, 6 DC ELECTRICAL CHARACTERISTICS (0C to 70C; VCC = 4.5 to 5.5V) PARAMETER SYMBOL MIN Pin 28L Supply ICCI Input Leakage IIL -1.0 Output @ 2.4V IOH -1.0 Output @ 0.4V IOL Write Protection Voltage VTP TYP 4.25 MAX UNITS NOTES 5 mA 3, 4 +1.0 A 4,6,10 mA 2 4.0 mA 2 4.5 V CAPACITANCE PARAMETER Input Capacitance Output Capacitance (tA = 25C) SYMBOL MIN MAX UNITS CIN 5 pF COUT 7 pF 5 of 10 TYP NOTES DS1216E/F AC ELECTRICAL CHARACTERISTICS (0C to 70C; VCC = 5V 10%) PARAMETER SYMBOL MIN Read Cycle Time tRC 250 CE Access Time tCO 200 ns OE Access Time tOE 100 ns CE To Output Low Z tCOE 10 ns OE To Output Low Z tOEE 10 ns CE To Output High Z tOD 100 ns OE To Output High Z tODO 100 ns Address Setup Time tAS Address Hold Time tAH Read Recovery tRR Write Cycle Time TYP MAX UNITS NOTES ns 20 ns 9 ns 8 50 ns 7 tWC 250 ns CE Pulse Width tCW 170 ns OE Pulse Width tOW 170 ns Write Recovery tWR 50 ns 7 Data Setup Time tDS 100 ns 8 Data Hold Time tDH 0 ns 8 RESET Pulse Width tRST 200 ns CE Propagation Delay tPD 5 CE High to Power-Fail tPF 10 10 20 ns 0 ns 2,5 (0C to 70C; VCC < 4.5V) Recovery at Power-Up tREC VCC Slew Rate 4.5 - 3V tF 2 0 6 of 10 ms s DS1216E/F TIMING DIAGRAM: READ CYCLE TIMING DIAGRAM: WRITE CYCLE 7 of 10 DS1216E/F TIMING DIAGRAM: POWER-DOWN TIMING DIAGRAM: POWER-UP TIMING DIAGRAM: RESET FOR SMARTWATCH WARNING: Under no circumstances are negative undershoots, of any amplitude, allowed when device is in battery backup mode. Water washing for flux removal will discharge internal lithium source because exposed voltage pins are present. 8 of 10 DS1216E/F NOTES: 1. All voltages are referenced to ground. 2. Measured with a load as shown in Figure 3. 3. Pin locations are designated "U" when a parameter definition refers to the socket receptacle and "L" when a parameter definition refers to the socket pin. 4. No memory inserted in the socket. 5. Input pulse rise and fall times equal 10 ns. 6. Applies to Pins 1L, 8L, 10L, 20L and 22L. 7. tWR and tRR are functions of the latter occurring edge of OE or CE . 8. tAS, tDS and tDS are functions of the first occurring edge of OE or CE . 9. tAS, is a function of the latter occurring edge of OE or CE . 10. RST (Pin 1) has an internal pull-up resistor. 11. SmartWatch sockets can be successfully processed through some conventional wave soldering techniques as long as temperature exposure to the lithium energy source contained within does not exceed +85C. However, post solder cleaning with water washing techniques is not permissible. Discharge to the lithium energy source may result, even if de-ionized water is utilized. It is equally imperative that ultrasonic vibration is not used. OUTPUT LOAD Figure 3 9 of 10 DS1216E/F DS1216 SMARTWATCH 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 L IN. MM C F 10 of 10 28-PIN 32-PIN MIN MAX MIN MAX 1.390 1.420 1.580 1.620 35.31 36.07 40.13 41.14 0.690 0.720 0.690 0.720 17.53 18.29 17.53 18.29 0.420 0.470 0.400 0.470 10.67 11.94 10.16 11.94 0.035 0.065 0.035 0.065 0.89 1.65 0.89 1.65 0.055 0.075 0.055 0.075 1.39 1.90 1.39 1.90 0.120 0.160 0.120 0.160 3.04 4.06 3.04 4.06 0.090 0.110 0.090 0.110 2.29 2.79 2.29 2.79 0.590 0.630 0.590 0.630 14.99 16.00 14.99 16.00 0.008 0.012 0.008 0.012 0.20 0.30 0.20 0.30 0.015 0.021 0.015 0.021 0.38 0.53 0.38 0.53 0.380 0.420 0.380 0.420 9.65 10.67 9.65 10.67