| Electronic Components Datasheet Search |
|
HT66FV240 Datasheet(PDF) 41 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66FV240 Datasheet(HTML) 41 Page - Holtek Semiconductor Inc |
|
41 / 203 page ![]() Rev. 1.40 40 De�e��e� 1�� �01� Rev. 1.40 41 De�e��e� 1�� �01� HT66FV240 Wireless Voice Flash MCU HT66FV240 Wireless Voice Flash MCU Writing Data to the EEPROM TowritedatatotheEEPROM,theEEPROMaddressofthedatatobewrittenmustfirstbeplaced intheEEAregisterandthedataplacedintheEEDregister.Thenthewriteenablebit,WREN, intheEECregistermustfirstbesethightoenablethewritefunction.Afterthis,theWRbitin theEECregistermustbeimmediatelysethightoinitiateawritecycle.Thesetwoinstructions mustbeexecutedconsecutively.TheglobalinterruptbitEMIshouldalsofirstbeclearedbefore implementinganywriteoperations,andthensetagainafterthewritecyclehasstarted.Notethat settingtheWRbithighwillnotinitiateawritecycleiftheWRENbithasnotbeenset.Asthe EEPROMwritecycleiscontrolledusinganinternaltimerwhoseoperationisasynchronousto microcontrollersystemclock,acertaintimewillelapsebeforethedatawillhavebeenwritteninto theEEPROM.Detectingwhenthewritecyclehasfinishedcanbeimplementedeitherbypollingthe WRbitintheEECregisterorbyusingtheEEPROMinterrupt.Whenthewritecycleterminates, theWRbitwillbeautomaticallyclearedtozerobythemicrocontroller,informingtheuserthatthe datahasbeenwrittentotheEEPROM.TheapplicationprogramcanthereforepolltheWRbitto determinewhenthewritecyclehasended. Write Protection Protectionagainstinadvertentwriteoperationisprovidedinseveralways.Afterthedeviceis poweredon,theWriteEnablebitinthecontrolregisterwillbeclearedpreventinganywrite operations.Alsoatpower-ontheMemoryPointerhighbyteregister,MP1H,willberesettozero, whichmeansthatDataMemorysector0willbeselected.AstheEEPROMcontrolregisterislocated insector1,thisaddsafurthermeasureofprotectionagainstspuriouswriteoperations.During normalprogramoperation,ensuringthattheWriteEnablebitinthecontrolregisterisclearedwill safeguardagainstincorrectwriteoperations. EEPROM Interrupt TheEEPROMwriteinterruptisgeneratedwhenanEEPROMwritecyclehasended.TheEEPROM interruptmustfirstbeenabledbysettingtheDEEbitintherelevantinterruptregister.However,as theEEPROMiscontainedwithinaMulti-functionInterrupt,theassociatedmulti-functioninterrupt enablebitmustalsobeset.WhenanEEPROMwritecycleends,theDEFrequestflagandits associatedmulti-functioninterruptrequestflagwillbothbeset.Iftheglobal,EEPROMandMulti- functioninterruptsareenabledandthestackisnotfull,ajumptotheassociatedMulti-function Interruptvectorwilltakeplace.WhentheinterruptisservicedonlytheMulti-functioninterruptflag willbeautomaticallyreset,theEEPROMinterruptflagmustbemanuallyresetbytheapplication program. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |