| поискавой системы для электроныых деталей |
|
HT69F360 датащи(PDF) 58 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT69F360 датащи(HTML) 58 Page - Holtek Semiconductor Inc |
|
58 / 235 page ![]() Rev. 1.30 5� �ove��e� 1�� �01� Rev. 1.30 59 �ove��e� 1�� �01� HT69F340/HT69F350/HT69F360 TinyPowerTM I/O Flash MCU with LCD & EEPROM HT69F340/HT69F350/HT69F360 TinyPowerTM I/O Flash MCU with LCD & 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 TheEEPROMaddressofthedatatobewrittenmustfirstbeplacedintheEEAregisterandthedata placedintheEEDregister.TowritedatatotheEEPROM,thewriteenablebit,WREN,intheEEC registermustfirstbesethightoenablethewritefunction.Afterthis,theWRbitintheEECregister mustbeimmediatelysethightoinitiateawritecycle.Thesetwoinstructionsmustbeexecuted consecutively.TheglobalinterruptbitEMIshouldalsofirstbeclearedbeforeimplementingany writeoperations,andthensetagainafterthewritecyclehasstarted.SettingtheWRbithighwillnot initiateawritecycleiftheWRENbithasnotbeenset.AstheEEPROMwritecycleiscontrolled usinganinternaltimerwhoseoperationisasynchronoustomicrocontrollersystemclock,acertain timewillelapsebeforethedatawillhavebeenwrittenintotheEEPROM.Detectingwhenthewrite cyclehasfinishedcanbeimplementedeitherbypollingtheWRbitintheEECregisterorbyusing theEEPROMinterrupt.Whenthewritecycleterminates,theWRbitwillbeautomaticallycleared tozerobythemicrocontroller,informingtheuserthatthedatahasbeenwrittentotheEEPROM. TheapplicationprogramcanthereforepolltheWRbittodeterminewhenthewritecyclehasended. Write Protection Protectionagainstinadvertentwriteoperationisprovidedinseveralways.Afterthedeviceis powered-ontheWriteEnablebitinthecontrolregisterwillbeclearedpreventinganywrite operations.Alsoatpower-onMP1L/MP1HandMP2L/MP2Hwillberesettozero,whichmeans thatDataMemorySector0willbeselected.AstheEEPROMcontrolregisterislocatedinSector1, thisaddsafurthermeasureofprotectionagainstspuriouswriteoperations.Duringnormalprogram operation,ensuringthattheWriteEnablebitinthecontrolregisterisclearedwillsafeguardagainst incorrectwriteoperations. EEPROM Interrupt TheEEPROMwriteinterruptisgeneratedwhenanEEPROMwritecyclehasended.TheEEPROM interruptmustfirstbeenabledbysettingtheDEEbitintherelevantinterruptregister.However,as theEEPROMiscontainedwithinaMulti-functionInterrupt,theassociatedmulti-functioninterrupt enablebitmustalsobeset.WhenanEEPROMwritecycleends,theDEFrequestflagandits associatedmulti-funtioninterruptrequestflagwillbothbeset.Iftheglobal,EEPROMandmulti- functioninterruptsareenabledandthestackisnotfull,ajumptotheassociatedInterruptvectorwill takeplace.Whentheinterruptisservicedonlythemulti-functioninterruptflagwillbeautomatically reset,theEEPROMinterruptflagmustbemanuallyresetbytheapplicationprogram.Moredetails canbeobtainedintheInterruptsection. |
|
ссылки 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 |