| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
HT66FV240 bảng dữ liệu(PDF) 41 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66FV240 bảng dữ liệu(HTML) 41 Page - Holtek Semiconductor Inc |
|
41 / 203 page ![]() Rev. 1.40 40 De�e��e� 1�� �01� Rev. 1.40 41 De�e��e� 1�� �01� HT66FV240 Wireless Voice Flash MCU HT66FV240 Wireless Voice Flash MCU Writing Data to the EEPROM TowritedatatotheEEPROM,theEEPROMaddressofthedatatobewrittenmustfirstbeplaced intheEEAregisterandthedataplacedintheEEDregister.Thenthewriteenablebit,WREN, intheEECregistermustfirstbesethightoenablethewritefunction.Afterthis,theWRbitin theEECregistermustbeimmediatelysethightoinitiateawritecycle.Thesetwoinstructions mustbeexecutedconsecutively.TheglobalinterruptbitEMIshouldalsofirstbeclearedbefore implementinganywriteoperations,andthensetagainafterthewritecyclehasstarted.Notethat settingtheWRbithighwillnotinitiateawritecycleiftheWRENbithasnotbeenset.Asthe EEPROMwritecycleiscontrolledusinganinternaltimerwhoseoperationisasynchronousto microcontrollersystemclock,acertaintimewillelapsebeforethedatawillhavebeenwritteninto theEEPROM.Detectingwhenthewritecyclehasfinishedcanbeimplementedeitherbypollingthe WRbitintheEECregisterorbyusingtheEEPROMinterrupt.Whenthewritecycleterminates, theWRbitwillbeautomaticallyclearedtozerobythemicrocontroller,informingtheuserthatthe datahasbeenwrittentotheEEPROM.TheapplicationprogramcanthereforepolltheWRbitto determinewhenthewritecyclehasended. Write Protection Protectionagainstinadvertentwriteoperationisprovidedinseveralways.Afterthedeviceis poweredon,theWriteEnablebitinthecontrolregisterwillbeclearedpreventinganywrite operations.Alsoatpower-ontheMemoryPointerhighbyteregister,MP1H,willberesettozero, whichmeansthatDataMemorysector0willbeselected.AstheEEPROMcontrolregisterislocated insector1,thisaddsafurthermeasureofprotectionagainstspuriouswriteoperations.During normalprogramoperation,ensuringthattheWriteEnablebitinthecontrolregisterisclearedwill safeguardagainstincorrectwriteoperations. EEPROM Interrupt TheEEPROMwriteinterruptisgeneratedwhenanEEPROMwritecyclehasended.TheEEPROM interruptmustfirstbeenabledbysettingtheDEEbitintherelevantinterruptregister.However,as theEEPROMiscontainedwithinaMulti-functionInterrupt,theassociatedmulti-functioninterrupt enablebitmustalsobeset.WhenanEEPROMwritecycleends,theDEFrequestflagandits associatedmulti-functioninterruptrequestflagwillbothbeset.Iftheglobal,EEPROMandMulti- functioninterruptsareenabledandthestackisnotfull,ajumptotheassociatedMulti-function Interruptvectorwilltakeplace.WhentheinterruptisservicedonlytheMulti-functioninterruptflag willbeautomaticallyreset,theEEPROMinterruptflagmustbemanuallyresetbytheapplication program. |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |