| 전자부품 데이터시트 검색엔진 |
|
HT67F488 데이터시트(PDF) 35 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT67F488 데이터시트(HTML) 35 Page - Holtek Semiconductor Inc |
|
35 / 171 page ![]() Rev. 1.60 35 �ove��e� ��� �016 HT67F488/HT67F489 TinyPowerTM A/D 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.Howeveras theEEPROMiscontainedwithinaMulti-functionInterrupt,theassociatedmulti-functioninterrupt enablebitmustalsobeset.WhenanEEPROMwritecycleends,theDEFrequestflagandits associatedmulti-functioninterruptrequestflagwillbothbeset.Iftheglobal,EEPROMandMulti- functioninterruptsareenabledandthestackisnotfull,ajumptotheassociatedMulti-function Interruptvectorwilltakeplace.WhentheinterruptisservicedonlytheMulti-functioninterruptflag willbeautomaticallyreset,theEEPROMinterruptflagmustbemanuallyresetbytheapplication program.MoredetailscanbeobtainedintheInterruptsection. |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |