| 전자부품 데이터시트 검색엔진 |
|
HT45F12 데이터시트(PDF) 31 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F12 데이터시트(HTML) 31 Page - Holtek Semiconductor Inc |
|
31 / 104 page ![]() Rev. 0.00 30 �e�te��e� ��� �01� Rev. 0.00 31 �e�te��e� ��� �01� HT45F12 8-Bit Flash MCU with Op Amps & Comparators HT45F12 8-Bit Flash MCU with Op Amps & Comparators Reading Data from the EEPROM ToreaddatafromtheEEPROM,thereadenablebit,RDEN,intheEECTRLregistermustfirst besethightoenablethereadfunction.TheEEPROMaddressofthedatatobereadmustthenbe placedintheEEADDRregister.IftheRDbitintheEECTRLregisterisnowsethigh,areadcycle willbeinitiated.SettingtheRDbithighwillnotinitiateareadoperationiftheRDENbithasnot beenset.Whenthereadcycleterminates,theRDbitwillbeautomaticallyclearedtozero,after whichthedatacanbereadfromtheEEDATAregister.ThedatawillremainintheEEDATAregister untilanotherreadorwriteoperationisexecuted.TheapplicationprogramcanpolltheRDbitto determinewhenthedataisvalidforreading. Writing Data to the EEPROM TowritedatatotheEEPROM,thewriteenablebit,WTEN,intheEECTRLregistermustfirstbe sethightoenablethewritefunction.TheEEPROMaddressofthedatatobewrittenmustthenbe placedintheEEADDRregisterandthedataplacedintheEEDATAregister.IftheWTbitinthe EECTRLregisterisnowsethigh,aninternalwritecyclewillthenbeinitiated.SettingtheWTbit highwillnotinitiateawritecycleiftheWTENbithasnotbeenset.AstheEEPROMwritecycle iscontrolledusinganinternaltimerwhoseoperationisasynchronoustomicrocontrollersystem clock,acertaintimewillelapsebeforethedatawillhavebeenwrittenintotheEEPROM.Detecting whenthewritecyclehasfinishedcanbeimplementedeitherbypollingtheWTbitintheEECTRL registerorbyusingtheEEPROMinterrupt.Whenthewritecycleterminates,theWTbitwillbe automaticallyclearedtozerobythemicrocontroller,informingtheuserthatthedatahasbeen writtentotheEEPROM.TheapplicationprogramcanthereforepolltheWTbittodeterminewhen thewritecyclehasended. Write Protection Protectionagainstinadvertentwriteoperationisprovidedinseveralways.Afterthedeviceis powered-ontheWriteEnablebitinthecontrolregisterwillbeclearedpreventinganywrite operations.Alsoatpower-ontheBankPointer,BP,willberesettozero,whichmeansthatData MemoryBank0willbeselected.AstheEEPROMcontrolregisterislocatedinBank1,thisaddsa furthermeasureofprotectionagainstspuriouswriteoperations.Duringnormalprogramoperation, ensuringthattheWriteEnablebitinthecontrolregisterisclearedwillsafeguardagainstincorrect writeoperations. EEPROM Interrupt TheEEPROMwriteorreadinterruptisgeneratedwhenanEEPROMwriteorreadcyclehasended. TheEEPROMinterruptmustfirstbeenabledbysettingtheE2Ibitintherelevantinterruptregister. HoweverastheEEPROMiscontainedwithinaMulti-functionInterrupt,theassociatedmulti- functioninterruptenablebitmustalsobeset.WhenanEEPROMwritecycleends,theE2Frequest flaganditsassociatedmulti-functioninterruptrequestflagwillbothbeset.Iftheglobal,EEPROM andMulti-functioninterruptsareenabledandthestackisnotfull,ajumptotheassociatedMulti- functionInterruptvectorwilltakeplace.WhentheinterruptisservicedonlytheMulti-function interruptflagwillbeautomaticallyreset,theEEPROMinterruptflagmustbemanuallyresetbythe applicationprogram.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 |