HT24LC04 CMOS 4K 2-Wire Serial EEPROM

12
Rev. 1.80 1 January 16, 2014 HT24LC04 CMOS 4K 2-Wire Serial EEPROM Features • Operating voltage: 1.8V~5.5V for temperature -40°C to +85°C • Low power consumption Operation: 5mA max. Standby: 3μA max. • Internal organization: 512×8 • 2-wire serial interface • Write cycle time: 5ms max. • Automatic erase-before-write operation • Partial page write allowed • 16-byte Page write modes • Write operation with built-in timer • Hardware controlled write protection • 40-year data retention • 10 6 erase/write cycles per word • 8-pin DIP/SOP/TSSOP package General Description The HT24LC04 is a 4K-bit serial read/write non- volatile memory device using the CMOS floating gate process. Its 4096 bits of memory are organized into 512 words and each word is 8 bits. The device is optimized for use in many industrial and commercial applications where low power and low voltage operation are essential. Up to four HT24LC04 devices may be connected to the same two-wire bus. The HT24LC04 is guaranteed for 1M erase/write cycles and 40-year data retention. Block Diagram I / O C o n t r o l L o g i c M e m o r y C o n t r o l L o g i c S C L S D A A d d r e s s C o u n t e r A 0 ~ A 2 V C C V S S X D E C E E P R O M A r r a y P a g e B u f Y D E C S e n s e A M P R / W C o n t r o l H V P u m p W P Pin Assignment 1 2 3 4 8 7 6 5 A 0 A 1 A 2 V S S V C C W P S C L S D A H T 2 4 L C 0 4 8 D I P - A / S O P - A / T S S O P - A Pin Description Pin Name I/O Description A0~A2 I Address inputs. A0 not connected SDA I/O Serial data input/output SCL I Serial clock data input WP I Write protect VSS Negative power supply VCC Positive power supply

Transcript of HT24LC04 CMOS 4K 2-Wire Serial EEPROM

Page 1: HT24LC04 CMOS 4K 2-Wire Serial EEPROM

Rev. 1.80 1 January 16, 2014 Rev. 1.82 PB January 16, 2014

HT24LC04CMOS 4K 2-Wire Serial EEPROM

Features• Operatingvoltage:1.8V~5.5Vfortemperature-40°Cto+85°C

• Lowpowerconsumption– Operation:5mAmax.– Standby:3μAmax.

• Internalorganization:512×8• 2-wireserialinterface• Writecycletime:5msmax.• Automaticerase-before-writeoperation• Partialpagewriteallowed• 16-bytePagewritemodes• Writeoperationwithbuilt-intimer• Hardwarecontrolledwriteprotection• 40-yeardataretention• 106erase/writecyclesperword• 8-pinDIP/SOP/TSSOPpackage

General DescriptionTheHT24LC04 is a4K-bit serial read/writenon-volatilememorydeviceusing theCMOSfloatinggateprocess.Its4096bitsofmemoryareorganizedinto512wordsandeachwordis8bits.Thedeviceisoptimizedforuseinmanyindustrialandcommercialapplicationswhere low power and low voltageoperationareessential.UptofourHT24LC04devicesmaybeconnected to the same two-wirebus.TheHT24LC04isguaranteedfor1Merase/writecyclesand40-yeardataretention.

Block Diagram

� � �� � � � � � �� � � � �

� � � � � �� � � � � � �� � � � �

� � �

� �

� � � � � � � � � � �� � � � �

� � �� � �

� ��

� � � � � �� � � � �

� � � � � � �� � �

� � � � � � � �� � � � � � � � � � �

  � � � � ­

� �

Pin Assignment

����

����

� �� �� �

� � �

� � �� �� � �� � �

� � � � � � � �� � � � � � � � � � � � � � � � � � � � �

Pin DescriptionPin Name I/O DescriptionA0~A2 I Address inputs. A0 not connectedSDA I/O Serial data input/outputSCL I Serial clock data inputWP I Write protectVSS — Negative power supplyVCC — Positive power supply

Page 2: HT24LC04 CMOS 4K 2-Wire Serial EEPROM

Rev. 1.80 2 January 16, 2014

HT24LC04

Absolute Maximum RatingsSupplyVoltage.........................VSS−0.3VtoVSS+6.0VInputVoltage............................ VSS−0.3VtoVCC+0.3V

StorageTemperature...........................−50°Cto125°COperatingTemperature.........................−40°Cto85°C

Note:Thesearestressratingsonly.Stressesexceedingtherangespecifiedunder″AbsoluteMaximumRatings″maycausesubstantialdamagetothedevice.Functionaloperationofthisdeviceatotherconditionsbeyondthoselistedin thespecificationisnot impliedandprolongedexposuretoextremeconditionsmayaffectdevicereliability.

D.C. CharacteristicsTa=-40°C~+85°C

Symbol ParameterTest Conditions

Min. Typ. Max. UnitVCC Conditions

VCC Operating Voltage — Ta=-40°C to +85°C 1.8 — 5.5 VICC1 Operating Current 5V Read at 400kHz — — 2 mAICC2 Operating Current 5V Write at 400kHz — — 5 mAVIL Input Low Voltage — — -0.45 — 0.3VCC VVIH Input High Voltage — — 0.7VCC — VCC+0.5 V

VOL Output Low Voltage2.4V IOL=2.1mA — — 0.4 V1.8V IOL=0.7mA — — 0.2 V

ILI Input Leakage Current 5V VIN=0 or VCC — — 1 μAILO Output Leakage Current 5V VOUT=0 or VCC — — 1 μA

ISTB Standby Current

5VVIN=0 or VCC — — 3 μASDA, SCL=VCCA1, A2, WP=VSS — — 1 μA

1.8VVIN=0 or VCC — — 2 μASDA, SCL=VCCA1, A2, WP=VSS — — 1 μA

CIN Input Capacitance (See Note) — f=1MHz, Ta=25°C — — 6 pFCOUT Output Capacitance (See Note) — f=1MHz, Ta=25°C — — 8 pF

Note:Theseparametersareperiodicallysampledbutnot100%tested.

Page 3: HT24LC04 CMOS 4K 2-Wire Serial EEPROM

Rev. 1.80 3 January 16, 2014

HT24LC04

A.C. CharacteristicsTa=-40°C~+85°C

Symbol Parameter RemarkVCC=1.8V~5.0V VCC=2.5V~5.0V

UnitMin. Max. Min. Max.

fSK Clock Frequency — — 400 — 1000 kHztHIGH Clock High Time — 600 — 400 — nstLOW Clock Low Time — 1200 — 600 — nstr SDA and SCL Rise Time Note — 300 — 300 nstf SDA and SCL Fall Time Note — 300 — 300 ns

tHD:STASTART Condition Hold Time

After this period the first clock pulse is generated 600 — 250 — ns

tSU:STASTART Condition Setup Time

Only relevant for repeated START condition 600 — 250 — ns

tHD:DAT Data Input Hold Time — 0 — 0 — nstSU:DAT Data Input Setup Time — 150 — 100 — ns

tSU:STOSTOP Condition Setup Time — 600 — 250 — ns

tAA Output Valid from Clock — — 900 — 600 ns

tBUF Bus Free Time Time in which the bus must be free before a new transmission can start 1200 — 500 — ns

tSPInput Filter Time Constant(SDA and SCL Pins) Noise suppression time — 50 — 50 ns

tWR Write Cycle Time — — 5 — 5 ms

Endurance 25°C, Page Mode 5.0V 1,000,000 Write Cycles

Note:Theseparametersareperiodicallysampledbutnot100%tested.Forrelativetiming,refertotimingdiagrams.

Page 4: HT24LC04 CMOS 4K 2-Wire Serial EEPROM

Rev. 1.80 4 January 16, 2014

HT24LC04

Functional Description• Serialclock–SCLTheSCL input isused forpositive edgeclockdataintoeachEEPROMdeviceandnegativeedgeclockdataoutofeachdevice.

• Serialdata–SDAThe SDA pin is bidirectional for serial datatransfer.Thepinisopen-draindrivenandmaybewired-ORwithanynumberofotheropen-drainoropencollectordevices.

• AddressInputs–A0,A1,A2TheHT24LC04usestheA2andA1inputsforhardwireaddressingandatotaloffour4Kdevicesmaybeaddressedonasinglebussystem.TheA0pinisnotconnected.(ThedeviceaddressingisdiscussedindetailundertheDeviceAddressingsection).ThecodefortheselecteddeviceissetupbyconnectingtheseinputstoeitherVSSorVCC.IfA1,A2pinsare leftunconnected ina floating statewillbeinternallyreadashavingalowinput,VSS,value.

• Writeprotect–WPTheHT24LC04 has awrite protect pin thatprovides hardware data protection.Thewriteprotectpinallowsnormal read/writeoperationswhenconnectedtoVSSorleftfloating.Whenthewriteprotectpin isconnected toVCC, thewriteprotectionfeatureisenabledandoperatesasshowninthefollowingtable.

WP Pin Status Protect ArrayVCC Full Array (4K)VSS or floating Normal Read/Write Operations

Memory Organization• HT24LC04,4KSerialEEPROMInternallyorganizedwith5128-bitwords,randomwordaddressingrequiresa9-bitdatawordaddress.

Device Operations• ClockanddatatransitionDatatransfermaybeinitiatedonlywhenthebusisnotbusy.Duringdatatransfer, thedatalinemustremain stablewhenever theclock line ishigh.Changes indata linewhile theclockline ishighwillbeinterpretedasaSTARTorSTOPcondition.

• StartconditionAhigh-to-lowtransitionofSDAwithSCLhighisastartconditionwhichmustprecedeanyothercommand (refer to Start andStopDefinitionTimingdiagram).

• StopconditionAlow-to-hightransitionofSDAwithSCLhighisastopcondition.Afterareadsequence, thestopcommandwillplace theEEPROMinastandbypowermode (refer toStartandStopDefinitionTimingDiagram).

• AcknowledgeAll addresses and data words are seriallytransmitted to and from theEEPROM in8-bitwords.TheEEPROMsendsazerotoacknowledgethatithasreceivedeachword.Thishappensduringtheninthclockcycle.

� � �

� � �

� � � � � � � � � � � �� � � � � � � � �

� � � � � � � �� � � � � � � � � � �� � � �

� � � � � � � � � �

� � � � � �� � � � � � �

� � � � � � � � � �

Device AddressingThe4KEEPROMdevices requirean8-bitdeviceaddresswordfollowingastartconditiontoenablethechipforareadorwriteoperation.Thedeviceaddresswordconsistofamandatoryone,zerosequenceforthefirstfourmostsignificantbits(refertothediagramshowingtheDeviceAddress).ThisiscommontoalltheEEPROMdevice.

Thenext threebits are theA2,A1andA0deviceaddressbitsforthe1K/2KEEPROM.Thesethreebitsmustcomparetotheircorrespondinghardwiredinputpins.

The4KEEPROMonlyuse theA2andA1deviceaddressbitswith the thirdbit as amemorypageaddressbit.Thetwodeviceaddressbitsmustcomparetotheircorrespondinghardwiredinputpins.TheA0pinisnotconnected.

The 8th bit of device address is the read/writeoperationselectbit.Areadoperationisinitiatedifthisbitishighandawriteoperationisinitiatedifthisbitislow.

If thecomparisonof thedeviceaddresssucceedtheEEPROMwilloutputazeroatACKbit. Ifnot, thechipwillreturntoastandbystate.

� � �� � � � � � � �

� � � � � � � � � � � � � �

� �

Page 5: HT24LC04 CMOS 4K 2-Wire Serial EEPROM

Rev. 1.80 5 January 16, 2014

HT24LC04

Write Operations• BytewriteAwrite operation requires an8-bit datawordaddress following thedeviceaddresswordandacknowledgment.Upon receiptof thisaddress,theEEPROMwill again respondwith a zeroand thenclock in thefirst8-bitdataword.Afterreceivingthe8-bitdataword, theEEPROMwilloutputazeroandtheaddressingdevice,suchasamicrocontroller,mustterminatethewritesequencewithastopcondition.At this timetheEEPROMentersaninternally-timedwritecycle tothenon-volatilememory.AllinputsaredisabledduringthiswritecycleandEEPROMwillnot responduntilthewriteiscompleted(refertoBytewritetiming).

• PagewriteThe4Kdeviceiscapableof16-bytepagewrites.Apagewriteisinitiatedthesameasbytewrite,butthemicrocontrollerdoesnotsendastopconditionafterthefirstdatawordisclockedin.Instead,aftertheEEPROMacknowledges the receiptof thefirstdataword, themicrocontrollercan transmituptofifteenmoredatawords.TheEEPROMwillrespondwithazeroaftereachdatawordreceived.Themicrocontrollermustterminatethepagewritesequencewithastopcondition.Thedatawordaddresslowerfourbitsareinternallyincremented following the receiptof eachdataword.Thehigherdatawordaddressbitsarenotincremented, retaining thememory page rowlocation(refertoPagewritetiming).

• AcknowledgepollingTomaximisebusthroughput,onetechniqueis toallowthemastertopollforanacknowledgesignalafter thestartconditionand thecontrolbyte forawritecommandhavebeensent.If thedeviceisstillbusy implementing itswritecycle, thennoACKwillbe returned.Themastercansend thenext read/writecommandwhen theACKsignalhasfinallybeenreceived.

• WriteprotectTheHT24LC04hasawrite-protect functionandprogrammingwill thenbeinhibitedwhentheWPpin isconnected toVCC.Under thismode, theHT24LC04isusedasaserialROM.

• ReadoperationsTheHT24LC04supports three readoperations,namely, current address read, randomaddressreadandsequential read.Duringreadoperationexecution,theread/writeselectbitshouldbesetto"1".

� � � � � � � � � � � � � � � � � �

� � � � � � � � � � � � � � � � � � �� � � � � � � � � � � � � � � � � � � � � � �

� � � � � � � � � �

� � � � � � � � � � � � � � � �� � � � � � � �

� � � � � � � �

� � � � � � � � � � � � � �

� �

� � �

Acknowledge Polling Flow

• CurrentaddressreadTheinternaldatawordaddresscountermaintainsthe lastaddressaccessedduring the last readorwriteoperation,incrementedbyone.Thisaddressstaysvalidbetweenoperationsaslongasthechippowerismaintained.Theaddressrolloverduringreadfromthelastbyteofthelastmemorypagetothefirstbyteofthefirstpage.Theaddressrolloverduringwritefromthelastbyteofthecurrentpagetothefirstbyteofthesamepage.Oncethedeviceaddresswiththeread/writeselectbitsettooneisclocked inandacknowledgedby theEEPROM,thecurrentaddressdataword isseriallyclockedout.Themicrocontrollershouldrespondwitha"noACK"signal(high)followedbyastopcondition(refertoCurrentreadtiming).

• RandomreadA random read requires a dummybytewritesequenceto loadin thedatawordaddresswhichis then clocked in and acknowledged by theEEPROM.Themicrocontrollermustthengenerateanother start condition.Themicrocontrollernow initiatesacurrentaddress readbysendingadeviceaddresswith the read/write selectbithigh.TheEEPROMacknowledges thedeviceaddressandseriallyclocksoutthedataword.Themicrocontrollershouldrespondwitha"noACK"signal(high)followedbyastopcondition.(refertoRandomreadtiming).

Page 6: HT24LC04 CMOS 4K 2-Wire Serial EEPROM

Rev. 1.80 6 January 16, 2014

HT24LC04

• SequentialreadSequential readsare initiatedbyeitheracurrentaddressreadorarandomaddressread.After themicrocontrollerreceivesadataword, it respondswithanacknowledgment.AslongastheEEPROMreceivesanacknowledgment, itwillcontinue toincrementthedatawordaddressandseriallyclock

out sequential datawords.When thememoryaddresslimitisreached,thedatawordaddresswillrolloverand thesequential readcontinues.Thesequential readoperation is terminatedwhenthemicrocontrollerrespondswitha"noACK"signal(high)followedbyastopcondition.

� � �

� � � � � �� �

� � � � � � � � � � � � � � � � � � � � � � � � � �

� � � � �� � � � �

� � �

� �

Byte Write Timing

� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �

� � � � � �

� � � �

� �

� � � � � �

� � �

� � � � � � � � � � � � �

Page Write Timing

� � � � � �� �

� � � � � � � � � � � � � � � � � �

� �

� � �

� � � � �

� � �

� � � �

Current Read Timing

� � � � � � � � � � � � � � � � � � � � � � � � � �

� � �

� � �

� � � � �

� � �� � � � � � � � �

�� � �

� � � �

�� � � �

� � � � � � � � � � � � � �

� � � � �

Random Read Timing

� � � � � � � � � � � � � � � � � � � �� � � �

� � � � �� � �

� ��

� �

� � � � � � � � � � � � � �

� � � � �

Sequential Read Timing

Page 7: HT24LC04 CMOS 4K 2-Wire Serial EEPROM

Rev. 1.80 7 January 16, 2014

HT24LC04

Timing Diagrams

� �� � � �

� � � � � � �

� � � � � � � � � � � � � �

� � �

� � � � � � �� � � � � � � � � � � � � �

� � � �

� � � � � �

� �

� � �

� � �� � �

� � �

� � �

� � �

� � � � � � � � � � � � �

� � � � � �� � �

� � � � � � � � �� � � � �

� � � � � � � � �

Note:ThewritecycletimetWRisthetimefromavalidstopconditionofawritesequencetotheendofthevalidstartconditionofsequentialcommand.

Page 8: HT24LC04 CMOS 4K 2-Wire Serial EEPROM

Rev. 1.80 8 January 16, 2014

HT24LC04

Package InformationNotethat thepackageinformationprovidedhereisforconsultationpurposesonly.Asthis informationmaybeupdatedatregularintervalsusersareremindedtoconsulttheHoltekwebsiteforthelatestversionofthepackageinformation.

Additionalsupplementaryinformationwithregardtopackagingislistedbelow.Clickontherelevantsectiontobetransferredtotherelevantwebsitepage.

• FurtherPackageInformation(includeOutlineDimensions,ProductTapeandReelSpecifications)

• PackingMeterialsInformation

• Cartoninformation

Page 9: HT24LC04 CMOS 4K 2-Wire Serial EEPROM

Rev. 1.80 9 January 16, 2014

HT24LC04

8-pin DIP (300mil) Outline Dimensions

� �� �

��

SymbolDimensions in inch

Min. Nom. Max.A 0.355 0.365 0.400B 0.240 0.250 0.280C 0.115 0.130 0.195 D 0.115 0.130 0.150 E 0.014 0.018 0.022 F 0.045 0.060 0.070G — 0.100 BSC —H 0.300 0.310 0.325 I — — 0.430

SymbolDimensions in mm

Min. Nom. Max.A 9.02 9.27 10.16 B 6.10 6.35 7.11 C 2.92 3.30 4.95 D 2.92 3.30 3.81 E 0.36 0.46 0.56 F 1.14 1.52 1.78G — 2.54 BSC —H 7.26 7.87 8.26I — — 10.92

Page 10: HT24LC04 CMOS 4K 2-Wire Serial EEPROM

Rev. 1.80 10 January 16, 2014

HT24LC04

8-pin SOP (150mil) Outline Dimensions

� � ��

��

�� �

SymbolDimensions in inch

Min. Nom. Max.A — 0.236 BSC —B — 0.154 BSC —C 0.012 — 0.020C′ — 0.193 BSC —D — — 0.069E — 0.050 BSC —F 0.004 — 0.010G 0.016 — 0.050H 0.004 — 0.010α 0° — 8°

SymbolDimensions in mm

Min. Nom. Max.A —F 6.00 BSC —B — 3.90 BSC —C 0.31 — 0.51C′ — 4.90 BSC —D — — 1.75E — 1.27 BSC —F 0.10 — 0.25G 0.40 — 1.27H 0.10 — 0.25α 0° — 8°

Page 11: HT24LC04 CMOS 4K 2-Wire Serial EEPROM

Rev. 1.80 11 January 16, 2014

HT24LC04

8-pin TSSOP Outline Dimensions

� �

��

� �

� �

� �

�� � � � � �� � � � � � � � � �

� �� �

� �

SymbolDimensions in inch

Min. Nom. Max.A — — 0.047

A1 0.002 — 0.006 A2 0.031 0.039 0.041 B 0.007 — 0.012 C 0.004 — 0.006 D 0.114 0.118 0.122 E — 0.252 BSC —E1 0.169 0.173 0.177 e — 0.026 BSC —L 0.018 0.024 0.030

L1 — 0.039 BSC —y — 0.004 —θ 0° — 8°

SymbolDimensions in mm

Min. Nom. Max.A — — 1.20

A1 0.05 — 0.15 A2 0.80 1 1.05 B 0.19 — 0.30 C 0.09 — 0.16 D 2.90 3.00 3.10E — 6.40 BSC —E1 4.30 4.40 4.50 e — 0.65 BSC —L 0.45 0.60 0.75

L1 — 1.0 BSC —y — 0.10 —θ 0° — 8°

Page 12: HT24LC04 CMOS 4K 2-Wire Serial EEPROM

Rev. 1.80 12 January 16, 2014

HT24LC04

Copyright© 2014 by HOLTEK SEMICONDUCTOR INC.

The information appearing in this Data Sheet is believed to be accurate at the time of publication. However, Holtek assumes no responsibility arising from the use of the specifications described. The applications mentioned herein are used solely for the purpose of illustration and Holtek makes no warranty or representation that such applications will be suitable without further modification, nor recommends the use of its products for application that may present a risk to human life due to malfunction or otherwise. Holtek's products are not authorized for use as critical components in life support devices or systems. Holtek reserves the right to alter its products without prior notification. For the most up-to-date information, please visit our web site at http://www.holtek.com.tw.