| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
HT66F20 Datasheet(PDF) 49 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F20 Datasheet(HTML) 49 Page - Holtek Semiconductor Inc |
|
49 / 298 page ![]() Rev. 1.90 48 �e���a�� 18� �01� Rev. 1.90 49 �e���a�� 18� �01� HT66F20/HT66F30/HT66F40/HT66F50/HT66F60 HT66FU30/HT66FU40/HT66FU50/HT66FU60 Enhanced A/D Flash Type 8-Bit MCU with EEPROM HT66F20/HT66F30/HT66F40/HT66F50/HT66F60 HT66FU30/HT66FU40/HT66FU50/HT66FU60 Enhanced A/D Flash Type 8-Bit MCU with EEPROM Reading Data from the EEPROM ToreaddatafromtheEEPROM,thereadenablebit,RDEN,intheEECregistermustfirstbeset hightoenablethereadfunction.TheEEPROMaddressofthedatatobereadmustthenbeplaced intheEEAregister.IftheRDbitintheEECregisterisnowsethigh,areadcyclewillbeinitiated. SettingtheRDbithighwillnotinitiateareadoperationiftheRDENbithasnotbeenset.When thereadcycleterminates,theRDbitwillbeautomaticallyclearedtozero,afterwhichthedatacan bereadfromtheEEDregister.ThedatawillremainintheEEDregisteruntilanotherreadorwrite operationisexecuted.TheapplicationprogramcanpolltheRDbittodeterminewhenthedatais validforreading. Writing Data to the EEPROM TowritedatatotheEEPROM,thewriteenablebit,WREN,intheEECregistermustfirstbeset hightoenablethewritefunction.TheEEPROMaddressofthedatatobewrittenmustthenbe placedintheEEAregisterandthedataplacedintheEEDregister.IftheWRbitintheEECregister isnowsethigh,aninternalwritecyclewillthenbeinitiated.SettingtheWRbithighwillnotinitiate awritecycleiftheWRENbithasnotbeenset.AstheEEPROMwritecycleiscontrolledusingan internaltimerwhoseoperationisasynchronoustomicrocontrollersystemclock,acertaintimewill elapsebeforethedatawillhavebeenwrittenintotheEEPROM.Detectingwhenthewritecycle hasfinishedcanbeimplementedeitherbypollingtheWRbitintheEECregisterorbyusingthe EEPROMinterrupt.Whenthewritecycleterminates,theWRbitwillbeautomaticallyclearedto zerobythemicrocontroller,informingtheuserthatthedatahasbeenwrittentotheEEPROM.The applicationprogramcanthereforepolltheWRbittodeterminewhenthewritecyclehasended. Write Protection Protectionagainstinadvertentwriteoperationisprovidedinseveralways.Afterthedeviceis powered-ontheWriteEnablebitinthecontrolregisterwillbeclearedpreventinganywrite operations.Alsoatpower-ontheBankPointer,BP,willberesettozero,whichmeansthatData MemoryBank0willbeselected.AstheEEPROMcontrolregisterislocatedinBank1,thisaddsa furthermeasureofprotectionagainstspuriouswriteoperations.Duringnormalprogramoperation, ensuringthattheWriteEnablebitinthecontrolregisterisclearedwillsafeguardagainstincorrect writeoperations. EEPROM Interrupt TheEEPROMwriteorreadinterruptisgeneratedwhenanEEPROMwriteorreadcyclehas ended.TheEEPROMinterruptmustfirstbeenabledbysettingtheDEEbitintherelevantinterrupt register.HoweverastheEEPROMiscontainedwithinaMulti-functionInterrupt,theassociated multi-functioninterruptenablebitmustalsobeset.WhenanEEPROMwritecycleends,the DEFrequestflaganditsassociatedmulti-functioninterruptrequestflagwillbothbeset.Ifthe global,EEPROMandMulti-functioninterruptsareenabledandthestackisnotfull,ajumpto theassociatedMulti-functionInterruptvectorwilltakeplace.Whentheinterruptisservicedonly theMulti-functioninterruptflagwillbeautomaticallyreset,theEEPROMinterruptflagmustbe manuallyresetbytheapplicationprogram.MoredetailscanbeobtainedintheInterruptsection. |
|
Enlace URL |
| ¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Enlace a la hoja de datos | Intercambio de Enlaces | Lista de Fabricantes 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 |