| поискавой системы для электроныых деталей |
|
HT68F006 датащи(PDF) 27 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT68F006 датащи(HTML) 27 Page - Holtek Semiconductor Inc |
|
27 / 93 page ![]() Rev. 1.00 �6 ��to�e� ��� �01� Rev. 1.00 �7 ��to�e� ��� �01� HT68F005/HT68F006 Enhanced I/O Flash Type MCU HT68F005/HT68F006 Enhanced I/O Flash Type MCU 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.Afterthedevices arepowered-ontheWriteEnablebitinthecontrolregisterwillbeclearedpreventinganywrite operations.Alsoatpower-ontheBankPointer,BP,willberesettozero,whichmeanthatData MemoryBank0willbeselected.AstheEEPROMcontrolregisterislocatedinBank1,thisaddsa furthermeasureofprotectionagainstspuriouswriteoperations.Duringnormalprogramoperation, ensuringthattheWriteEnablebitinthecontrolregisterisclearedwillsafeguardagainstincorrect writeoperations. EEPROM Interrupt TheEEPROMwriteorreadinterruptisgeneratedwhenanEEPROMwriteorreadcyclehasended. TheEEPROMinterruptmustfirstbeenabledbysettingtheDEEbitintherelevantinterruptregister. WhenanEEPROMwritecycleends,theDEFrequestflagwillbeset.IftheglobalandEEPROM interruptsareenabledandthestackisnotfull,ajumptotheassociatedInterruptvectorwilltake place.WhentheinterruptisservicedtheEEPROMinterruptflagwillbeautomaticallyreset.More detailscanbeobtainedintheInterruptsection. Programming Considerations CaremustbetakenthatdataisnotinadvertentlywrittentotheEEPROM.Protectioncanbe enhancedbyensuringthattheWriteEnablebitisnormallyclearedtozerowhennotwriting.Also theBankPointercouldbenormallyclearedtozeroasthiswouldinhibitaccesstoBank1where theEEPROMcontrolregisterexist.Althoughcertainlynotnecessary,considerationmightbegiven intheapplicationprogramtothecheckingofthevalidityofnewwritedatabyasimplereadback process. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |