| Electronic Components Datasheet Search |
|
HT66F007 Datasheet(PDF) 29 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F007 Datasheet(HTML) 29 Page - Holtek Semiconductor Inc |
|
29 / 131 page ![]() Rev. 1.41 28 April 11, 2017 Rev. 1.41 29 April 11, 2017 HT66F007/HT66F008 Cost-Effective A/D Flash MCU with EEPROM HT66F007/HT66F008 Cost-Effective A/D Flash MCU with EEPROM Bit2 WR:EEPROMWriteControl 0:Writecyclehasfinished 1:Activateawritecycle ThisistheDataEEPROMWriteControlBitandwhensethighbytheapplication programwillactivateawritecycle.Thisbitwillbeautomaticallyresettozerobythe hardwareafterthewritecyclehasfinished.Settingthisbithighwillhavenoeffectif theWRENhasnotfirstbeensethigh. Bit1 RDEN:DataEEPROMReadEnable 0:Disable 1:Enable ThisistheDataEEPROMReadEnableBitwhichmustbesethighbeforeData EEPROMreadoperationsarecarriedout.ClearingthisbittozerowillinhibitData EEPROMreadoperations. Bit0 RD:EEPROMReadControl 0:Readcyclehasfinished 1:Activateareadcycle ThisistheDataEEPROMReadControlBitandwhensethighbytheapplication programwillactivateareadcycle.Thisbitwillbeautomaticallyresettozerobythe hardwareafterthereadcyclehasfinished.Settingthisbithighwillhavenoeffectif theRDENhasnotfirstbeensethigh. Note:TheWREN,WR,RDENandRDcannotbesetto“1”atthesametimeinoneinstruction.The WRandRDcannotbesetto“1”atthesametime. Reading Data from the EEPROM ToreaddatafromtheEEPROM,thereadenablebit,RDEN,intheEECregistermustfirstbeset hightoenablethereadfunction.TheEEPROMaddressofthedatatobereadmustthenbeplaced intheEEAandEEAHregisters.IftheRDbitintheEECregisterisnowsethigh,areadcyclewill beinitiated.SettingtheRDbithighwillnotinitiateareadoperationiftheRDENbithasnotbeen set.Whenthereadcycleterminates,theRDbitwillbeautomaticallyclearedtozero,afterwhichthe datacanbereadfromtheEEDregister.ThedatawillremainintheEEDregisteruntilanotherread orwriteoperationisexecuted.TheapplicationprogramcanpolltheRDbittodeterminewhenthe dataisvalidforreading. Writing Data to the EEPROM TheEEPROMaddressofthedatatobewrittenmustthenbeplacedintheEEAandEEAHregisters andthedataplacedintheEEDregister.TowritedatatotheEEPROM,thewriteenablebit,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. |
|
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 |