| поискавой системы для электроныых деталей |
|
HT45F75 датащи(PDF) 40 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F75 датащи(HTML) 40 Page - Holtek Semiconductor Inc |
|
40 / 190 page ![]() Rev. 1.10 �0 De�e��e� 1�� �01� Rev. 1.10 �1 De�e��e� 1�� �01� HT45F75 Body Fat Scale Flash MCU HT45F75 Body Fat Scale Flash 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 TheEEPROMaddressofthedatatobewrittenmustfirstbeplacedintheEEAregisterandthedata placedintheEEDregister.TowritedatatotheEEPROM,thewriteenablebit,WREN,intheEEC registermustfirstbesethightoenablethewritefunction.Afterthis,theWRbitintheEECregister mustbeimmediatelysethightoinitiateawritecycle.Thesetwoinstructionsmustbeexecuted consecutively.TheglobalinterruptbitEMIshouldalsofirstbeclearedbeforeimplementingany writeoperations,andthensetagainafterthewritecyclehasstarted.NotethatsettingtheWRbit highwillnotinitiateawritecycleiftheWRENbithasnotbeenset.AstheEEPROMwritecycleis controlledusinganinternaltimerwhoseoperationisasynchronoustomicrocontrollersystemclock, acertaintimewillelapsebeforethedatawillhavebeenwrittenintotheEEPROM.Detectingwhen thewritecyclehasfinishedcanbeimplementedeitherbypollingtheWRbitintheEECregisteror byusingtheEEPROMinterrupt.Whenthewritecycleterminates,theWRbitwillbeautomatically clearedtozerobythemicrocontroller,informingtheuserthatthedatahasbeenwrittentothe EEPROM.TheapplicationprogramcanthereforepolltheWRbittodeterminewhenthewritecycle hasended. Write Protection Protectionagainstinadvertentwriteoperationisprovidedinseveralways.Afterthedeviceis powered-ontheWriteEnablebitinthecontrolregisterwillbeclearedpreventinganywrite operations.Alsoatpower-ontheMemoryPointerhighbyteregister,MP1HorMP2H,willbereset tozero,whichmeansthatDataMemorySector0willbeselected.AstheEEPROMcontrolregister islocatedinSector1,thisaddsafurthermeasureofprotectionagainstspuriouswriteoperations. Duringnormalprogramoperation,ensuringthattheWriteEnablebitinthecontrolregisteris clearedwillsafeguardagainstincorrectwriteoperations. EEPROM Interrupt TheEEPROMwriteinterruptisgeneratedwhenanEEPROMwritecyclehasended.TheEEPROM interruptmustfirstbeenabledbysettingtheDEEbitintherelevantinterruptregister.Howeveras theEEPROMiscontainedwithinaMulti-functionInterrupt,theassociatedmulti-functioninterrupt enablebitmustalsobeset.WhenanEEPROMwritecycleends,theDEFrequestflagandits associatedmulti-functioninterruptrequestflagwillbothbeset.Iftheglobal,EEPROMandMulti- functioninterruptsareenabledandthestackisnotfull,ajumptotheassociatedMulti-function Interruptvectorwilltakeplace.WhentheinterruptisservicedonlytheMulti-functioninterruptflag willbeautomaticallyreset,theEEPROMinterruptflagmustbemanuallyresetbytheapplication program.MoredetailscanbeobtainedintheInterruptsection. |
|
ссылки 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 |