ST24LC21 1Kb (x8) DUAL MODE SERIAL EEPROM for VESA Plug&Play NOT FOR NEW DESIGN 1 MILLION ERASE/WRITE CYCLES 40 YEARS DATA RETENTION 2.5V to 5.5V SINGLE SUPPLY VOLTAGE 400k Hz COMPATIBILITY OVER the FULL RANGE of SUPPLY VOLTAGE TWO WIRE SERIAL INTERFACE I2C BUS COMPATIBLE PAGE WRITE (up to 8 BYTES) BYTE, RANDOM and SEQUENTIAL READ MODES SELF TIMED PROGRAMMING CYCLE AUTOMATIC ADDRESS INCREMENTING ENHANCED ESD/LATCH UP PERFORMANCES ST24LC21 is replaced by the ST24LC21B 8 8 1 1 PSDIP8 (B) 0.25mm Frame SO8 (M) Figure 1. Logic Diagram DESCRIPTION The ST24LC21 is a 1K bit electrically erasable programmable memory (EEPROM), organized by 8 bits.This device can operate in two modes: Transmit Only mode and I2C bidirectional mode. When powered, the device is in Transmit Only mode with EEPROM data clocked out from the rising edge of the signal applied on VCLK. The device will switch to the I2C bidirectional mode upon the falling edge of the signal applied on SCL pin. The ST24LC21 cannot switch from the I2C bidirectional mode to the Transmit Only mode (except when the power supply is removed). The device operates with a power supply value as low as 2.5V. Both Plastic Dual-in-Line and Plastic Small Outline packages are available. VCC SDA SCL ST24LC21 VCLK Table 1. Signal Names SDA Serial Data Address Input/Output VSS AI01489 2 SCL Serial Clock (I C mode) VCC Supply Voltage VSS Ground VCLK Clock Transmit only mode June 1997 This is information on a product still in production but not recommended for new designs. 1/18 ST24LC21 Figure 2A. DIP Pin Connections Figure 2B. SO Pin Connections ST24LC21 NC NC NC VSS 8 7 6 5 1 2 3 4 ST24LC21 VCC VCLK SCL SDA NC NC NC VSS 8 7 6 5 1 2 3 4 AI01499 VCC VCLK SCL SDA AI01500 Warning: NC = Not Connected Warning: NC = Not Connected Table 2. Absolute Maximum Ratings (1) Symbol TA Parameter Ambient Operating Temperature TSTG Storage Temperature TLEAD Lead Temperature, Soldering VIO Input or Output Voltages VCC Supply Voltage VESD Value Unit 0 to 70 °C –65 to 150 °C 215 260 °C grade 1 (SO8 package) (PSDIP8 package) Electrostatic Discharge Voltage (Human Body model) 40 sec 10 sec –0.3 to 6.5 V –0.3 to 6.5 V (2) Electrostatic Discharge Voltage (Machine model) (3) 4000 V 500 V Notes: 1. Except for the rating "Operating Temperature Range", stresses above those listed in the Table "Absolute Maximum Ratings" may cause permanent damage to the device. These are stress ratings only and operation of the device at these or any other conditions above those indicated in the Operating sections of this specification is not implied. Exposure to Absolute Maximum Rating conditions for extended periods may affect device reliability. Refer also to the SGS-THOMSON SURE Program and other relevant quality documents. 2. MIL-STD-883C, 3015.7 (100pF, 1500 Ω). 3. EIAJ IC-121 (Condition C) (200pF, 0 Ω). Table 3. Device Select Code Device Code Chip Enable RW Bit b7 b6 b5 b4 b3 b2 b1 b0 Device Select 1 0 1 0 X X X RW Note: The MSB b7 is sent first. X = 0 or 1. 2/18 ST24LC21 Figure 3. Transmit Only Mode Waveforms VCC SCL SDA Bit 6 Bit 7 tVPU VCLK 1 2 8 9 10 11 VCC SCL SDA Bit 5 Bit 6 12 VCLK Bit 4 Bit 0 13 17 Bit 6 Bit 7 18 19 20 AI01501 Table 4. Operating Modes Mode RW bit VCLK Bytes Current Address Read ’1’ X 1 ’0’ X ’1’ X Sequential Read ’1’ X 1 to 128 Byte Write ’0’ VIH 1 START, Device Select, RW = ’0’ Page Write ’0’ VIH 8 START, Device Select, RW = ’0’ Random Address Read 1 Initial Sequence START, Device Select, RW = ’1’ START, Device Select, RW = ’0’, Address, reSTART, Device Select, RW = ’1’ Similar to Current or Random Mode Note: X = VIH or VIL 3/18 ST24LC21 Figure 4. Transition Mode Waveforms Transmit Only Mode Bi-Directional Mode SCL SDA VCLK AI01502 Transmit Only Mode After a Power-up, the device is in the Transmit Only mode. A proper initialization sequence must supply nine clock pulses on the VCLK pin (in order to internally synchronize the device). During this initialization sequence, the SDA pin is in high impedance. On the rising edge of the tenth pulse applied on VCLK pin, the device will output the first bit of byte located at address 00h (most significant bit first). A byte is clocked out (on SDA pin) with nine clock pulses on VCLK: 8 clock pulses for the data byte and one extra clock pulse for a Don’t Care bit. As long as the SCL pin is held high, each byte of the memory array is transmitted serially on the SDA pin with an automatic address increment. When the last byte is transmitted, the address counter will roll-over to location 00h. I2C Bidirectional Mode The device can be switched from Transmit Only mode to I2C Bidirectional mode by applying a valid high to low transition on the SCL pin (see Figure 4). When the device is in the I2C Bidirectional mode, the VCLK input enables (or inhibits) the execution of any write instruction: if VCLK = 1, write instructions are executed; if VCLK = 0, write instructions are not executed. The device is compatible with the I2C standard, two wire serial interface which uses a bi-directional data 4/18 bus and serial clock. The device carries a built-in 4 bit, unique device identification code (1010) corresponding to the I2C bus definition. The device behaves as a slave device in the I2C protocol with all memory operations synchronized by the serial clock. Read and write operations are initiated by a START condition generated by the bus master. The START condition is followed by a stream of 7 bits (identification code 1010XXX), plus one read/write bit and terminated by an acknowledge bit. When writing data to the memory it responds to the 8 bits received by asserting an acknowledge bit during the 9th bit time. When data is read by the bus master, it acknowledges the receipt of the data bytes in the same way. Data transfers are terminated with a STOP condition. Power On Reset: VCC lock out write protect. In order to prevent data corruption and inadvertent write operations during power up, a Power On Reset (POR) circuit is implemented. Until the VCC voltage has reached the POR threshold value, the internal reset is active, all operations are disabled and the device will not respond to any command. In the same way, when VCC drops down from the operating voltage to below the POR threshold value, all operations are disabled and the device will not respond to any command. A stable VCC must be applied before applying any logic signal. ST24LC21 SIGNAL DESCRIPTIONS I2C Serial Clock (SCL). The SCL input pin is used to synchronize all data in and out of the memory. A resistor can be connected from the SCL line to VCC to act as a pull up (see Figure 5). Transmit Only Clock (VCLK). The VCLK input pin is used to synchronize data out when the ST24LC21 is in Transmit Only mode. The VCLK input offers also a Write Enable (active high) function when the ST24LC21 is in I2C bidirectional mode. Serial Data (SDA). The SDA pin is bi-directional and is used to transfer data in or out of the memory. It is an open drain output that may be wire-OR’ed with other open drain or open collector signals on the bus. A resistor must be connected from the SDA bus line to VCC to act as pull up (see Figure 5). DEVICE OPERATION I2C Bus Background The ST24LC21 supports the I2C protocol. This protocol defines any device that sends data onto the bus as a transmitter and any device that reads the data as a receiver. The device that controls the data transfer is known as the master and the other as the slave. The master will always initiate a data transfer and will provide the serial clock for synchronisation. The ST24LC21 are always slave devices in all communications. Start Condition. START is identified by a high to low transition of the SDA line while the clock SCL is stable in the high state. A START condition must precede any command for data transfer. Except during a programming cycle, the ST24LC21 continuously monitor the SDA and SCL signals for a START condition and will not respond unless one is given. Stop Condition. STOP is identified by a low to high transition of the SDA line while the clock SCL is stable in the high state. A STOP condition terminates communication between the ST24LC21 and the bus master. A STOP condition at the end of a Read command forces the standby state. A STOP condition at the end of a Write command triggers the internal EEPROM write cycle. Acknowledge Bit (ACK). An acknowledge signal is used to indicate a successfull data transfer. The bus transmitter, either master or slave, will release the SDA bus after sending 8 bits of data. During the 9th clock pulse period the receiver pulls the SDA bus low to acknowledge the receipt of the 8 bits of data. Figure 5. Maximum RL Value versus Bus Capacitance (CBUS) for an I2C Bus VCC Maximum RP value (kΩ) 20 16 RL 12 RL SDA MASTER 8 fc = 100kHz 4 fc = 400kHz CBUS SCL CBUS 0 10 100 1000 CBUS (pF) AI01665 5/18 ST24LC21 Table 5. Input Parameters (1) (TA = 25 °C, f = 100 kHz ) Symbol Parameter Test Condition Min Max Unit CIN Input Capacitance (SDA) 8 pF CIN Input Capacitance (other pins) 6 pF tLP Low-pass filter input time constant (SDA and SCL) 300 ns Max Unit Note: 1. Sampled only, not 100% tested. Table 6. DC Characteristics (TA = 0 to 70 °C; VCC = 2.5V to 5.5V) Symbol Parameter Test Condition ILI Input Leakage Current 0V ≤ VIN ≤ VCC ±2 µA ILO Output Leakage Current 0V ≤ VOUT ≤ VCC SDA in Hi-Z ±2 µA Supply Current VCC = 5V, fC = 400kHz (Rise/Fall time < 10ns) 2 mA Supply Current VCC = 2.5V, fC = 400kHz 1 mA VIN = VSS or VCC, VCC = 5V 100 µA VIN = VSS or VCC, VCC = 5V, fC = 400kHz 300 µA VIN = VSS or VCC, VCC = 2.5V 5 µA VIN = VSS or VCC, VCC = 2.5V, fC = 400kHz 50 µA ICC ICC1 ICC2 6/18 Supply Current (Standby) Supply Current (Standby) Min VIL Input Low Voltage (SCL, SDA) –0.3 0.3 VCC V VIH Input High Voltage (SCL, SDA) 0.7 VCC VCC + 1 V VIL Input Low Voltage (VCLK) 2.5V ≤ VCC ≤ 4V –0.3 0.2 VCC V VCC > 4V –0.3 0.8 V 2 VCC + 1 V IOL = 3mA 0.4 V IOL = 6mA, VCC = 5V 0.6 V VIH Input High Voltage (VCLK) VOL Output Low Voltage ST24LC21 Table 7. AC Characteristics, I2C Bidirectional Mode for Clock Frequency = 400kHz (TA = 0 to 70 °C; VCC = 2.5V to 5.5V) Symbol Alt Parameter Min Max Unit tCH1CH2 (1) tR Clock Rise Time 300 ns tCL1CL2 (1) tF Clock Fall Time 300 ns tDH1DH2 (1) tR SDA Rise Time 20 300 ns tDL1DL2 (1) tF SDA Fall Time 20 300 ns Clock High to Input Transition 600 ns Clock Pulse Width High 600 ns 600 ns 0 µs Clock Pulse Width Low 1.3 µs tCHDX (2) tSU:STA tCHCL tHIGH tDLCL tHD:STA Input Low to Clock Low (START) tCLDX tHD:DAT Clock Low to Input Transition tCLCH tLOW tDXCX tSU:DAT Input Transition to Clock Transition 100 ns tCHDH tSU:STO Clock High to Input High (STOP) 600 ns tDHDL tBUF Input High to Input Low (Bus Free) 1.3 µs tCLQV tAA Clock Low to Data Out Valid 200 tCLQX tDH Clock Low to Data Out Transition 200 fC fSCL Clock Frequency 400 kHz tW tWR Write Time 10 ms 900 ns ns Notes: 1. Sampled only, not 100% tested. 2. For a reSTART condition, or following a write cycle. Data Input. During data input the ST24LC21 sample the SDA bus signal on the rising edge of the clock SCL. Note that for correct device operation the SDA signal must be stable during the clock low to high transition and the data must change ONLY when the SCL line is low. Memory Addressing. To start communication between the bus master and the slave ST24LC21, the master must initiate a START condition. Following this, the master sends onto the SDA bus line 8 bits (MSB first) corresponding to the device select code (7 bits) and a READ or WRITE bit. The 4 most significant bits of the device select code are the device type identifier, corresponding to the I2C bus definition. For these memories the 4 bits are fixed as 1010b. The following 3 bits are Don’t Care. The 8th bit sent is the read or write bit (RW), this bit is set to ’1’ for read and ’0’ for write operations. If a match is found, the corresponding memory will acknowledge the identification on the SDA bus during the 9th bit time. Write Operations Following a START condition the master sends a device select code with the RW bit reset to ’0’. The memory acknowledges this and waits for a byte address. After receipt of the byte address the device again responds with an acknowledge. In I2C bidirectional mode, any write command with VCLK = 0 will not modify data and will be acknowledged on data bytes, as shown in Figure 11. Byte Write. In the Byte Write mode the master sends one data byte, which is acknowledged by the memory. The master then terminates the transfer by generating a STOP condition. Page Write. The Page Write mode allows up to 8 bytes to be written in a single write cycle, provided that they are all located in the same ’row’ in the memory: that is the most significant memory address bits are the same. The master sends from one up to 8 bytes of data, which are each acknowledged by the memory. 7/18 ST24LC21 Table 8. AC Characteristics, I2C Bidirectional Mode for Clock Frequency = 100kHz (TA = 0 to 70 °C; VCC = 2.5V to 5.5V) Symbol Alt tCH1CH2 tR tCL1CL2 Max Unit Clock Rise Time 1 µs tF Clock Fall Time 300 ns tDH1DH2 tR Input Rise Time 1 µs tDL1DL1 tF Input Fall Time 300 ns (1) tCHDX tSU:STA Parameter Min 4.7 µs Clock Pulse Width High 4 µs Clock High to Input Transition tCHCL tHIGH tDLCL tHD:STA Input Low to Clock Low (START) 4 µs tCLDX tHD:DAT Clock Low to Input Transition 0 µs tCLCH tLOW Clock Pulse Width Low 4.7 µs tDXCX tSU:DAT Input Transition to Clock Transition 250 ns tCHDH tSU:STO Clock High to Input High (STOP) 4.7 µs tDHDL tBUF Input High to Input Low (Bus Free) 4.7 µs tAA Clock Low to Next Data Out Valid 0.3 tCLQX tDH Data Out Hold Time 300 fC fSCL Clock Frequency 100 kHz tW tWR Write Time 10 ms (2) tCLQV 3.5 µs ns Notes: 1. For a reSTART condition, or following a write cycle. 2. The minimum value delays the falling/rising edge of SDA away from SCL = 1 in order to avoid unwanted START and/or STOP conditions. Table 9. AC Characteristics, Transmit-only Mode (TA = 0 to 70 °C; VCC = 2.5V to 5.5V) Symbol Alt tVCHQX tVAA tVCHVCL tVHIGH VCLK High Time 600 ns tVCLVCH tVLOW VCLK Low Time 1.3 µs tCLQZ tVHZ tVPU (1,2) Parameter Min Output Valid from VCLK Mode Tansition Time Transmit-only Power-up Time Max Unit 500 ns 500 0 ns ns tVH1VH2 (2) tR VCLK Rise Time 1 µs tVL1VL2 (2) tF VCLK Fall Time 1 µs Notes: 1. Refer to Figure 3. 2. Sampled only, not 100% tested. 8/18 ST24LC21 Figure 6. AC Waveforms tCHCL tCLCH SCL tDLCL tDXCX tCHDH SDA IN tCHDX tCLDX START CONDITION tDHDL SDA INPUT SDA CHANGE STOP & BUS FREE SCL tCLQV tCLQX DATA VALID SDA OUT DATA OUTPUT tDHDL SCL tW SDA IN tCHDH tCHDX STOP CONDITION WRITE CYCLE tVCHVCL START CONDITION tVCLVCH VCLK tVCHQX SDA tCLQZ SCL AI01503 9/18 ST24LC21 AC MEASUREMENT CONDITIONS Figure 7. AC Testing Input Output Waveforms Input Rise and Fall Times ≤ 50ns Input Pulse Voltages SDA, SCL 0.2VCC to 0.8VCC Input Pulse Voltages VCLK 0.4V to 2V 0.8VCC 0.7VCC 0.3VCC 0.2VCC Input and Output Timing Ref. Voltages 0.3VCC to 0.7VCC AI00825 Figure 8. I2C Bus Protocol SCL SDA START CONDITION SCL 1 SDA MSB SDA INPUT 2 SDA CHANGE STOP CONDITION 3 7 8 9 ACK START CONDITION SCL 1 SDA MSB 2 3 7 8 9 ACK STOP CONDITION AI00792 10/18 ST24LC21 Figure 9. Write Cycle Polling using ACK WRITE Cycle in Progress START Condition DEVICE SELECT with RW = 0 NO First byte of instruction with RW = 0 already decoded by ST24xxx ACK Returned YES NO Next Operation is Addressing the Memory YES Send Byte Address ReSTART STOP Proceed WRITE Operation Proceed Random Address READ Operation AI01099B DEVICE OPERATIONS (cont’d) After each byte is transfered, the internal byte address counter (3 least significant bits only) is incremented. The transfer is terminated by the master generating a STOP condition. Care must be taken to avoid address counter ’roll-over’ which could result in data being overwritten. Note that, for any write mode, the generation by the master of the STOP condition starts the internal memory program cycle. All inputs are disabled until the completion of this cycle and the memory will not respond to any request. Minimizing System Delays by Polling On ACK. During the internal write cycle, the memory disconnects itself from the bus in order to copy the data from the internal latches to the memory cells. The maximum value of the write time (tW) is given in the AC Characteristics table, since the typical time is shorter, the time seen by the system may be reduced by an ACK polling sequence issued by the master. The sequence is as follows: – Initial condition: a Write is in progress (see Figure 9). – Step 1: the Master issues a START condition followed by a Device Select byte (1st byte of the new instruction). – Step 2: if the memory is busy with the internal write cycle, no ACK will be returned and the master goes back to Step 1. If the memory has terminated the internal write cycle, it will respond with an ACK, indicating that the memory is ready to receive the second part of the next instruction (the first byte of this instruction was already sent during Step 1). 11/18 ST24LC21 Figure 10. Write Modes Sequence VCLK ACK BYTE ADDR ACK DATA IN STOP DEV SEL START BYTE WRITE ACK R/W VCLK ACK ACK PAGE WRITE START DEV SEL BYTE ADDR ACK DATA IN 1 DATA IN 2 R/W ACK ACK STOP DATA IN N AI01504B Read Operations On delivery, the memory content is set at all "1’s" (or FFh). Current Address Read. The memory has an internal byte address counter. Each time a byte is read, this counter is incremented. For the Current Address Read mode, following a START condition, the master sends a memory address with the RW bit set to ’1’. The memory acknowledges this and outputs the byte addressed by the internal byte address counter. This counter is then incremented. The master does NOT acknowledge the byte out- 12/18 put, but terminates the transfer with a STOP condition. Random Address Read. A dummy write is performed to load the address into the address counter, see Figure 12. This is followed by another START condition from the master and the byte address is repeated with the RW bit set to ’1’. The memory acknowledges this and outputs the byte addressed. The master does NOT acknowledge the byte output, but terminates the transfer with a STOP condition. ST24LC21 Figure 11. Inhibited Write when VCLK = 0 VCLK CONTROL BYTE ACK ACK ACK DATA n ACK DATA n + 1 ACK DATA n + 7 STOP WORD ADD n START DATA ACK CONTROL BYTE PAGE WRITE ACK STOP WORD ADDR START BYTE WRITE ACK AI01505 Sequential Read. This mode can be initiated with either a Current Address Read or a Random Address Read. However, in this case the master DOES acknowledge the data byte output and the memory continues to output the next byte in sequence. To terminate the stream of bytes, the master must NOT acknowledge the last byte output, but MUST generate a STOP condition. The output data is from consecutive byte addresses, with the internal byte address counter automat- ically incremented after each byte output. After a count of the last memory address, the address counter will ’roll- over’ and the memory will continue to output data. Acknowledge in Read Mode. In all read modes the ST24LC21 wait for an acknowledge during the 9th bit time. If the master does not pull the SDA line low during this time, the ST24LC21 terminate the data transfer and switches to a standby state. 13/18 ST24LC21 Figure 12. Read Modes Sequence ACK DATA OUT STOP START DEV SEL NO ACK R/W ACK RANDOM ADDRESS READ BYTE ADDR R/W ACK START DEV SEL DATA OUT R/W ACK ACK DATA OUT 1 NO ACK DATA OUT N R/W ACK START DEV SEL * ACK BYTE ADDR R/W ACK ACK DEV SEL * START SEQUENTIAL RANDOM READ NO ACK STOP SEQUENTIAL CURRENT READ ACK DEV SEL * START START DEV SEL * ACK STOP CURRENT ADDRESS READ ACK DATA OUT 1 R/W NO ACK STOP DATA OUT N AI00794C Note: * The 7 Most Significant bits of DEV SEL bytes of a Random Read (1st byte and 3rd byte) must be identical. 14/18 ST24LC21 ORDERING INFORMATION SCHEME Example: ST24LC21 Package B PSDIP8 0.25mm Frame M SO8 M 1 TR Temperature Range 1 0 to 70 °C Option TR Tape & Reel Packing Devices are shipped from the factory with the memory content set at all "1’s" (FFh). For a list of available options (Package, etc...) or for further information on any aspect of this device, please contact the SGS-THOMSON Sales Office nearest to you. 15/18 ST24LC21 PSDIP8 - 8 pin Plastic Skinny DIP, 0.25mm lead frame mm Symb Typ inches Min Max A 3.90 A1 Min Max 5.90 0.154 0.232 0.49 – 0.019 – A2 3.30 5.30 0.130 0.209 B 0.36 0.56 0.014 0.022 B1 1.15 1.65 0.045 0.065 C 0.20 0.36 0.008 0.014 D 9.20 9.90 0.362 0.390 – – – – 6.00 6.70 0.236 0.264 – – – – 7.80 – 0.307 – E 7.62 E1 e1 2.54 eA eB Typ 0.300 0.100 10.00 L 3.00 N 8 0.394 3.80 0.118 8 PSDIP8 A2 A1 B A L e1 eA eB B1 D C N E1 E 1 PSDIP-a Drawing is not to scale 16/18 0.150 ST24LC21 SO8 - 8 lead Plastic Small Outline, 150 mils body width mm Symb Typ inches Min Max A 1.35 A1 Min Max 1.75 0.053 0.069 0.10 0.25 0.004 0.010 B 0.33 0.51 0.013 0.020 C 0.19 0.25 0.007 0.010 D 4.80 5.00 0.189 0.197 E 3.80 4.00 0.150 0.157 – – – – H 5.80 6.20 0.228 0.244 h 0.25 0.50 0.010 0.020 L 0.40 0.90 0.016 0.035 α 0° 8° 0° 8° N 8 e 1.27 CP Typ 0.050 8 0.10 0.004 SO8 h x 45˚ A C B CP e D N E H 1 A1 α L SO-a Drawing is not to scale 17/18 ST24LC21 Information furnished is believed to be accurate and reliable. However, SGS-THOMSON Microelectronics 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 SGS-THOMSON Microelectronics. Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied. SGS-THOMSON Microelectronics products are not authorized for use as critical components in life support devices or systems without express written approval of SGS-THOMSON Microelectronics. © 1997 SGS-THOMSON Microelectronics - All Rights Reserved Purchase of I2C Components by SGS-THOMSON Microelectronics, conveys a license under the Philips I2C Patent. Rights to use these components in an I2C system, is granted provided that the system conforms to the I2C Standard Specifications as defined by Philips. SGS-THOMSON Microelectronics GROUP OF COMPANIES Australia - Brazil - Canada - China - France - Germany - Hong Kong - Italy - Japan - Korea - Malaysia - Malta - Morocco - The Netherlands Singapore - Spain - Sweden - Switzerland - Taiwan - Thailand - United Kingdom - U.S.A. 18/18