| 전자부품 데이터시트 검색엔진 |
|
HT68F005 데이터시트(PDF) 27 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT68F005 데이터시트(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 |
| 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 |