M 24C01C 1K 5.0V I2C™ Serial EEPROM FEATURES PACKAGE TYPES PDIP/SOIC 1 A1 2 A2 3 Vss 4 8 Vcc 7 TEST 6 SCL 5 SDA TSSOP 1 2 3 4 24C01C A0 A1 A2 VSS DESCRIPTION The Microchip Technology Inc. 24C01C is a 1K bit Serial Electrically Erasable PROM with a voltage range of 4.5V to 5.5V. The device is organized as a single block of 128 x 8-bit memory with a 2-wire serial interface. Low current design permits operation with typical standby and active currents of only 10 µA and 1 mA respectively. The device has a page-write capability for up to 16 bytes of data and has fast write cycle times of only 1 mS for both byte and page writes. Functional address lines allow the connection of up to eight 24C01C devices on the same bus for up to 8K bits of contiguous EEPROM memory. The device is available in the standard 8-pin PDIP, 8-pin SOIC (150 mil), and TSSOP packages. A0 24C01C • Single supply with operation from 4.5 to 5.5V • Low power CMOS technology - 1 mA active current typical - 10 µA standby current typical at 5.5V • Organized as a single block of 128 bytes (128 x 8) • 2-wire serial interface bus, I2C compatible • 100kHz and 400 kHz compatibility • Page-write buffer for up to 16 bytes • Self-timed write cycle (including auto-erase) • Fast 1 mS write cycle time for byte or page mode • Address lines allow up to eight devices on bus • 1,000,000 erase/write cycles guaranteed • ESD protection > 4,000V • Data retention > 200 years • 8-pin PDIP, SOIC or TSSOP packages • Available for extended temperature ranges - Commercial (C): 0°C to +70°C - Industrial (I): -40°C to +85°C - Automotive (E) -40°C to +125°C 8 7 6 5 VCC TEST SCL SDA BLOCK DIAGRAM A0 A1 A2 I/O Control Logic HV Generator Memory Control Logic XDEC EEPROM Array SDA SCL Vcc YDEC Vss SENSE AMP R/W CONTROL I2C is a trademark of Philips Corporation. 1997 Microchip Technology Inc. Preliminary DS21201A-page 1 24C01C 1.0 1.1 ELECTRICAL CHARACTERISTICS TABLE 1-1: PIN FUNCTION TABLE Name Maximum Ratings* VCC ........................................................................ 7.0V All inputs and outputs w.r.t. VSS...... -0.6V to VCC +1.0V Storage temperature ...........................-65˚C to +150˚C Ambient temp. with power applied.......-65˚C to +125˚C Soldering temperature of leads (10 seconds) ...+300˚C ESD protection on all pins ......................................≥ 4 kV Function VSS Ground SDA Serial Data SCL Serial Clock VCC +4.5V to 5.5V Power Supply A0, A1, A2 Chip Selects Test Test Pin: may be tied high, low or left floating *Notice: Stresses above those listed under “Maximum ratings” may cause permanent damage to the device. This is a stress rating only and functional operation of the device at those or any other conditions above those indicated in the operational listings of this specification is not implied. Exposure to maximum rating conditions for extended periods may affect device reliability. TABLE 1-2: DC CHARACTERISTICS All parameters apply across the specified operating ranges unless otherwise noted. Parameter VCC = +4.5V to +5.5V Commercial (C): Industrial (I): Automotive (E): Symbol Min. SCL and SDA pins: High level input voltage VIH 0.7 VCC Low level input voltage VIL Hysteresis of Schmitt trigger inputs VHYS Low level output voltage VOL 0.05 VCC Tamb = 0 °C to +70°C Tamb = -40°C to +85 °C Tamb = -40°C to +125°C Max. Units Conditions .3 VCC V — V (Note) .40 V IOL = 3.0 mA, VCC = 4.5V V Input leakage current ILI -10 10 µA VIN = 0.1V to 5.5V, WP = Vss Output leakage current ILO -10 10 µA VOUT = 0.1V to 5.5V CIN, COUT — 10 pF VCC = 5.0V (Note) Tamb = 25 °C, f = 1 MHz ICC Read — 1 mA VCC = 5.5V, SCL = 400 kHz ICC Write — 3 mA VCC = 5.5V ICCS — 50 µA VCC = 5.5V, SDA = SCL = VCC Pin capacitance (all inputs/outputs) Operating current Standby current Note: This parameter is periodically sampled and not 100% tested. DS21201A-page 2 Preliminary 1997 Microchip Technology Inc. 24C01C TABLE 1-3: AC CHARACTERISTICS All parameters apply across the specified operating ranges unless otherwise noted. Parameter Symbol Vcc = 4.5V to 5.5V Commercial (C): Industrial (I): Automotive (E): Tamb > +85°C Tamb = 0 °C to +70°C Tamb = -40 °C to +85 °C Tamb = -40 °C to +125 °C -40°C ≤ Tamb ≤ +85°C Min. Max. Min. Max. Units Remarks Clock frequency Clock high time Clock low time SDA and SCL rise time SDA and SCL fall time START condition hold time FCLK THIGH TLOW TR TF THD:STA — 4000 4700 — — 4000 100 — — 1000 300 — — 600 1300 — — 600 400 — — 300 300 — kHz ns ns ns ns ns START condition setup time TSU:STA 4700 — 600 — ns Data input hold time Data input setup time STOP condition setup time Output valid from clock Bus free time THD:DAT TSU:DAT TSU:STO TAA TBUF 0 250 4000 — 4700 — — — 3500 — 0 100 600 — 1300 — — — 900 — ns ns ns ns ns TOF — 250 20 +0.1 CB 250 ns (Note 2) Time the bus must be free before a new transmission can start (Note 1), CB ≤ 100 pF TSP — 50 — 50 ns (Note 3) TWR — 1M 1.5 — — 1M 1 — Output fall time from VIH minimum to VIL maximum Input filter spike suppression (SDA and SCL pins) Write cycle time Endurance (Note 1) (Note 1) After this period the first clock pulse is generated Only relevant for repeated START condition (Note 2) ms Byte or Page mode cycles 25°C, VCC = 5.0V, Block Mode (Note 4) Note 1: Not 100% tested. CB = total capacitance of one bus line in pF. 2: As a transmitter, the device must provide an internal minimum delay time to bridge the undefined region (minimum 300 ns) of the falling edge of SCL to avoid unintended generation of START or STOP conditions. 3: The combined TSP and VHYS specifications are due to Schmitt trigger inputs which provide improved noise spike suppression. This eliminates the need for a TI specification for standard operation. 4: This parameter is not tested but guaranteed by characterization. For endurance estimates in a specific application, please consult the Total Endurance Model which can be obtained on our BBS or website. FIGURE 1-1: BUS TIMING DATA THIGH TF SCL TR TSU:STA TLOW SDA IN THD:DAT TSU:DAT TSU:STO THD:STA TSP TAA TBUF SDA OUT 1997 Microchip Technology Inc. Preliminary DS21201A-page 3 24C01C 2.0 PIN DESCRIPTIONS 3.0 2.1 SDA Serial Data The 24C01C supports a bi-directional 2-wire bus and data transmission protocol. A device that sends data onto the bus is defined as transmitter, and a device receiving data as receiver. The bus has to be controlled by a master device which generates the serial clock (SCL), controls the bus access, and generates the START and STOP conditions, while the 24C01C works as slave. Both master and slave can operate as transmitter or receiver but the master device determines which mode is activated. This is a bi-directional pin used to transfer addresses and data into and data out of the device. It is an open drain terminal, therefore the SDA bus requires a pull-up resistor to VCC (typical 10 kΩ for 100 kHz, 2 kΩ for 400 kHz). For normal data transfer SDA is allowed to change only during SCL low. Changes during SCL high are reserved for indicating the START and STOP conditions. 2.2 FUNCTIONAL DESCRIPTION SCL Serial Clock This input is used to synchronize the data transfer from and to the device. 2.3 A0, A1, A2 The levels on these inputs are compared with the corresponding bits in the slave address. The chip is selected if the compare is true. Up to eight 24C01C devices may be connected to the same bus by using different chip select bit combinations. These inputs must be connected to either VCC or VSS. 2.4 Test This pin is utilized for testing purposes only. It may be tied high, tied low or left floating. 2.5 Noise Protection The 24C01C employs a VCC threshold detector circuit which disables the internal erase/write logic if the VCC is below 3.8 volts at nominal conditions. The SCL and SDA inputs have Schmitt trigger and filter circuits which suppress noise spikes to assure proper device operation even on a noisy bus. DS21201A-page 4 Preliminary 1997 Microchip Technology Inc. 24C01C 4.0 BUS CHARACTERISTICS The data on the line must be changed during the LOW period of the clock signal. There is one bit of data per clock pulse. The following bus protocol has been defined: • Data transfer may be initiated only when the bus is not busy. • During data transfer, the data line must remain stable whenever the clock line is HIGH. Changes in the data line while the clock line is HIGH will be interpreted as a START or STOP condition. Accordingly, the following bus conditions have been defined (Figure 4-1). Each data transfer is initiated with a START condition and terminated with a STOP condition. The number of the data bytes transferred between the START and STOP conditions is determined by the master device and is theoretically unlimited, although only the last sixteen will be stored when doing a write operation. When an overwrite does occur it will replace data in a first in first out fashion. 4.1 4.5 Bus not Busy (A) Both data and clock lines remain HIGH. 4.2 Each receiving device, when addressed, is required to generate an acknowledge after the reception of each byte. The master device must generate an extra clock pulse which is associated with this acknowledge bit. Start Data Transfer (B) A HIGH to LOW transition of the SDA line while the clock (SCL) is HIGH determines a START condition. All commands must be preceded by a START condition. 4.3 Acknowledge Note: Stop Data Transfer (C) The device that acknowledges has to pull down the SDA line during the acknowledge clock pulse in such a way that the SDA line is stable LOW during the HIGH period of the acknowledge related clock pulse. Of course, setup and hold times must be taken into account. A master must signal an end of data to the slave by not generating an acknowledge bit on the last byte that has been clocked out of the slave. In this case, the slave must leave the data line HIGH to enable the master to generate the STOP condition (Figure 4-2). A LOW to HIGH transition of the SDA line while the clock (SCL) is HIGH determines a STOP condition. All operations must be ended with a STOP condition. 4.4 Data Valid (D) The state of the data line represents valid data when, after a START condition, the data line is stable for the duration of the HIGH period of the clock signal. FIGURE 4-1: SCL (A) The 24C01C does not generate any acknowledge bits if an internal programming cycle is in progress. DATA TRANSFER SEQUENCE ON THE SERIAL BUS CHARACTERISTICS (B) (C) (D) START CONDITION ADDRESS OR ACKNOWLEDGE VALID (C) (A) SDA FIGURE 4-2: STOP CONDITION DATA ALLOWED TO CHANGE ACKNOWLEDGE TIMING Acknowledge Bit SCL 1 2 SDA 3 4 5 6 7 8 1 2 3 Data from transmitter Data from transmitter Transmitter must release the SDA line at this point allowing the Receiver to pull the SDA line low to acknowledge the previous eight bits of data. 1997 Microchip Technology Inc. 9 Preliminary Receiver must release the SDA line at this point so the Transmitter can continue sending data. DS21201A-page 5 24C01C 5.0 DEVICE ADDRESSING FIGURE 5-1: A control byte is the first byte received following the start condition from the master device (Figure 5-1). The control byte consists of a four bit control code; for the 24C01C this is set as 1010 binary for read and write operations. The next three bits of the control byte are the chip select bits (A2, A1, A0). The chip select bits allow the use of up to eight 24C01C devices on the same bus and are used to select which device is accessed. The chip select bits in the control byte must correspond to the logic levels on the corresponding A2, A1, and A0 pins for the device to respond. These bits are in effect the three most significant bits of the word address. The last bit of the control byte defines the operation to be performed. When set to a one a read operation is selected, and when set to a zero a write operation is selected. Following the start condition, the 24C01C monitors the SDA bus checking the control byte being transmitted. Upon receiving a 1010 code and appropriate chip select bits, the slave device outputs an acknowledge signal on the SDA line. Depending on the state of the R/W bit, the 24C01C will select a read or write operation. DS21201A-page 6 CONTROL BYTE FORMAT Read/Write Bit Chip Select Bits Control Code S 1 0 1 0 A2 A1 A0 R/W ACK Slave Address Start Bit 5.1 Acknowledge Bit Contiguous Addressing Across Multiple Devices The chip select bits A2, A1, A0 can be used to expand the contiguous address space for up to 8K bits by adding up to eight 24C01C devices on the same bus. In this case, software can use A0 of the control byte as address bit A8, A1 as address bit A9, and A2 as address bit A10. It is not possible to write or read across device boundaries. Preliminary 1997 Microchip Technology Inc. 24C01C 6.0 WRITE OPERATIONS 6.2 6.1 Byte Write The write control byte, word address and the first data byte are transmitted to the 24C01C in the same way as in a byte write. But instead of generating a stop condition, the master transmits up to 15 additional data bytes to the 24C01C which are temporarily stored in the onchip page buffer and will be written into the memory after the master has transmitted a stop condition. After the receipt of each word, the four lower order address pointer bits are internally incremented by one. The higher order four bits of the word address remains constant. If the master should transmit more than 16 bytes prior to generating the stop condition, the address counter will roll over and the previously received data will be overwritten. As with the byte write operation, once the stop condition is received an internal write cycle will begin (Figure 6-2). Following the start signal from the master, the device code(4 bits), the chip select bits (3 bits), and the R/W bit which is a logic low is placed onto the bus by the master transmitter. The device will acknowledge this control byte during the ninth clock pulse. The next byte transmitted by the master is the word address and will be written into the address pointer of the 24C01C. After receiving another acknowledge signal from the 24C01C the master device will transmit the data word to be written into the addressed memory location. The 24C01C acknowledges again and the master generates a stop condition. This initiates the internal write cycle, and during this time the 24C01C will not generate acknowledge signals (Figure 6-1). FIGURE 6-1: BYTE WRITE BUS ACTIVITY MASTER S T A R T SDA LINE S CONTROL BYTE WORD ADDRESS BUS ACTIVITY MASTER SDA LINE S T O P DATA P A C K A C K A C K BUS ACTIVITY FIGURE 6-2: Page Write PAGE WRITE S T A R T CONTROL BYTE WORD ADDRESS (n) DATA n S T O P DATA n + 15 DATA n +1 S BUS ACTIVITY 1997 Microchip Technology Inc. P A C K A C K Preliminary A C K A C K A C K DS21201A-page 7 24C01C 7.0 ACKNOWLEDGE POLLING FIGURE 7-1: Since the device will not acknowledge during a write cycle, this can be used to determine when the cycle is complete (this feature can be used to maximize bus throughput). Once the stop condition for a write command has been issued from the master, the device initiates the internally timed write cycle. ACK polling can be initiated immediately. This involves the master sending a start condition followed by the control byte for a write command (R/W = 0). If the device is still busy with the write cycle, then no ACK will be returned. If no ACK is returned, then the start bit and control byte must be re-sent. If the cycle is complete, then the device will return the ACK and the master can then proceed with the next read or write command. See Figure 7-1 for flow diagram. ACKNOWLEDGE POLLING FLOW Send Write Command Send Stop Condition to Initiate Write Cycle Send Start Send Control Byte with R/W = 0 Did Device Acknowledge (ACK = 0)? NO YES Next Operation DS21201A-page 8 Preliminary 1997 Microchip Technology Inc. 24C01C 8.0 READ OPERATIONS address is sent, the master generates a start condition following the acknowledge. This terminates the write operation, but not before the internal address pointer is set. Then the master issues the control byte again but with the R/W bit set to a one. The 24C01C will then issue an acknowledge and transmits the eight bit data word. The master will not acknowledge the transfer but does generate a stop condition and the 24C01C discontinues transmission (Figure 8-2). After this command, the internal address counter will point to the address location following the one that was just read. Read operations are initiated in the same way as write operations with the exception that the R/W bit of the slave address is set to one. There are three basic types of read operations: current address read, random read, and sequential read. 8.1 Current Address Read The 24C01C contains an address counter that maintains the address of the last word accessed, internally incremented by one. Therefore, if the previous read access was to address n, the next current address read operation would access data from address n + 1. Upon receipt of the slave address with the R/W bit set to one, the 24C01C issues an acknowledge and transmits the eight bit data word. The master will not acknowledge the transfer but does generate a stop condition and the 24C01C discontinues transmission (Figure 8-1). 8.2 8.3 Sequential reads are initiated in the same way as a random read except that after the 24C01C transmits the first data byte, the master issues an acknowledge as opposed to a stop condition in a random read. This directs the 24C01C to transmit the next sequentially addressed 8-bit word (Figure 8-3). Random Read To provide sequential reads the 24C01C contains an internal address pointer which is incremented by one at the completion of each operation. This address pointer allows the entire memory contents to be serially read during one operation. The internal address pointer will automatically roll over from address 7F to address 00. Random read operations allow the master to access any memory location in a random manner. To perform this type of read operation, first the word address must be set. This is done by sending the word address to the 24C01C as part of a write operation. After the word FIGURE 8-1: CURRENT ADDRESS READ BUS ACTIVITY MASTER S T A R T SDA LINE S S T O P CONTROL BYTE P A C K BUS ACTIVITY FIGURE 8-2: DATA N O A C K RANDOM READ BUS ACTIVITY MASTER S T A R T CONTROL BYTE S T A R T WORD ADDRESS (n) S S T O P CONTROL BYTE P S SDA LINE A C K A C K BUS ACTIVITY FIGURE 8-3: Sequential Read A C K DATA (n) N O A C K SEQUENTIAL READ BUS ACTIVITY MASTER CONTROL BYTE DATA n DATA n + 1 DATA n + 2 P SDA LINE BUS ACTIVITY 1997 Microchip Technology Inc. S T O P DATA n + X A C K A C K Preliminary A C K A C K N O A C K DS21201A-page 9 24C01C NOTES: DS21201A-page 10 Preliminary 1997 Microchip Technology Inc. 24C01C 24C01C PRODUCT IDENTIFICATION SYSTEM To order or obtain information, e.g., on pricing or delivery, refer to the factory or the listed sales office. 24C01C — /P Package: Temperature Range: Device: P = Plastic DIP (300 mil Body), 8-lead SN = Plastic SOIC, (150 mil Body), 8-lead ST = TSSOP (4.4 mm Body), 8-lead Blank = 0°C to +70°C I = –40°C to +85°C E = –40°C to +125°C 24C01C 24C01CT 1K I 2C Serial EEPROM 1K I 2C Serial EEPROM (Tape and Reel) Sales and Support Data Sheets Products supported by a preliminary Data Sheet may have an errata sheet describing minor operational differences and recommended workarounds. To determine if an errata sheet exists for a particular device, please contact one of the following: 1. Your local Microchip sales office. 2. The Microchip Corporate Literature Center U.S. FAX: (602) 786-7277. 3. The Microchip’s Bulletin Board, via your local CompuServe number (CompuServe membership NOT required). 1997 Microchip Technology Inc. Preliminary DS21201A-page 11 WORLDWIDE SALES & SERVICE AMERICAS ASIA/PACIFIC EUROPE Corporate Office Hong Kong United Kingdom Microchip Technolog y Inc. 2355 West Chandler Blvd. Chandle r , AZ 85224-6199 Tel : 602-786-7200 F ax: 602-786-7277 Technical Support: 602 786-7627 Web: http://ww w.microchi p.com Microchip Asia Pacific RM 3801B, Tower Two Metroplaza 223 HingF ong Road Kwai F ong, N.T., HongKong Tel : 852-2-401-1200 F ax: 852-2-401-3431 Ar i zona Microchi p Technology Ltd. Unit 6 , The Cour t y ard Meadow Bank, Fu r long Road Bour ne End, Buckinghamshire SL8 5AJ Tel : 44-1628-851077 F ax: 44-1628-850259 Atlanta India Microchip Technolog y Inc. 500 Sugar Mill Road, Suite 200B Atlanta, GA 30350 Tel : 770-640-0034 F ax: 770-640-0307 Microchip Technolog y India No. 6, Legacy, Conv ent Road Bangalore 560 025, India Tel : 91-80-229-0061 F ax: 91-80-229-0062 Ar i zona Microchi p Technology SARL Zone Industr ielle de la Bonde 2 Rue du Buisson aux F raises 91300 Massy, F rance Tel : 33-1-69-53-63-20 F ax: 33-1-69-30-90-79 Boston Korea Germany Microchip Technolog y Inc. 5 Mount Roy al Av enue Ma r lborough, MA 01752 Tel : 508-480-9990 F ax: 508-480-8575 Microchip Technolog y Korea 168-1, Youngbo Bldg. 3 Floor Samsung-Dong, KangnamKu Seoul, Korea Tel : 82-2-554-7200 F ax: 82-2-558-5934 Ar i zona Microchi p Technology GmbH Gust av-Heinemann-Ring 125 D-81739 Müchen, Ge r many Tel : 49-89-627-144 0 F ax: 49-89-627-144-44 Shanghai Ar i zona Microchi p Technology SRL Centro Direzionale Colleone Palaz zo Taur us 1 V. Le Colleoni 1 20041 Agrate Br ianza Milan, Italy Tel : 39-39-6899939 F ax: 39-39-6899883 Chicago Microchip Technolog y Inc. 333 Pierce Road, Suite 180 Itasca, IL 60143 Tel : 630-285-0071 F ax: 630-285-0075 Dallas Microchip Technolog y Inc. 14651 Dallas Par kway, Suite 816 Dalla s, TX 75240-8809 Tel : 972-991-7177 F ax: 972-991-8588 Dayton Microchip Technolog y Inc. Two Prestige Plac e, Suite 150 Miamis burg, OH 45342 Tel : 937-291-1654 F ax: 937-291-9175 Los Angeles Microchip Technolog y Inc. 18201 Von Kar man, Suite 1090 Ir vin e, CA 92612 Tel : 714-263-1888 F ax: 714-263-1338 New York Microchip Technology RM 406 Shanghai Golden Br idge Bldg. 2077 Yan’an Roa d West, Hongiao Dist r ict Shanghai, PRC 200335 Tel : 86-21-6275-5700 F ax: 86 21-6275-5060 Singapore Microchip Technology Tai wan Singapore Branch 200 Middle Road #10-03 Pr ime Centre Singapore 188980 Tel : 65-334-8870 F ax: 65-334-8850 Taiwan, R.O.C France Italy JAPAN Microchi p Technology Intl . Inc. Benex S-1 6F 3-18-20, Shi n Yokohama Kohoku- Ku, Yokohama Kanagawa 222 J apan Tel : 81-4-5471- 6166 F ax: 81-4-5471-6122 Microchip Technology Tai wan 10F-1C 207 Tung Hua Nor th Road Taipei, Tai wan, ROC Tel : 886 2-717-7175 F ax: 886-2-545-0139 5/8/97 Microchip Technolog y Inc. 150 Motor Par kway, Suite 416 Hauppauge, NY 11788 Tel : 516-273-5305 F ax: 516-273-5335 San Jose Microchip Technolog y Inc. 2107 Nor th First Street, Suite 590 San Jos e, CA 95131 Tel : 408-436-7950 F ax: 408-436-7955 Toronto Microchip Technolog y Inc. 5925 Air por t Road, Suite 200 Mississauga, Onta r io L4V 1W1, Canada Tel : 905-405-6279 F ax: 905-405-6253 M All r ights rese r v ed. © 1997, Microchi p Technology Inco r porated, USA . 6/97 Pr inted on recycled pape r . Inf or mation contained in this publication regarding d evice applications and the like is intended f or suggestion only and may superseded b e by updates . No representation or warranty is gi v en and no liability is assumed by Microchi p Technology Inco r porated with respect to the accu r acy or use inf or of mation, suc h or inf r ingement of patents or other intellectual prope r ty r ights a r ising from such use or otherwis e. Use of Microchip ’ s products as c r itical components por tinsystems li f e sup is not autho r i zedexcept with express wr itten appro v al by Microchi p. No licenses are con v eyed, implicitly or otherwise, under any intellectual prope r tyicrochip r ight s.logo The M and name are registered t r ademar ks of Microchi p Technology Inc . in the U.S.A. and other count r ies. All r ights rese r v ed. All other tradema r ks mentioned herein the prope are r ty of their respective companies. DS21201A-page 12 Preliminary 1997 Microchip Technology Inc.