| поискавой системы для электроныых деталей |
|
HT45F4N датащи(PDF) 40 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F4N датащи(HTML) 40 Page - Holtek Semiconductor Inc |
|
40 / 170 page ![]() Rev. 1.30 �0 De�e��e� 1�� �01� Rev. 1.30 �1 De�e��e� 1�� �01� HT45F4N/HT45FH4N Power Bank Flash MCU HT45F4N/HT45FH4N Power Bank Flash MCU Programming Considerations CaremustbetakenthatdataisnotinadvertentlywrittentotheEEPROM.ProtectioncanbePeriodic byensuringthattheWriteEnablebitisnormallyclearedtozerowhennotwriting.AlsotheBank PointercouldbenormallyclearedtozeroasthiswouldinhibitaccesstoBank1wheretheEEPROM controlregisterexist.Althoughcertainlynotnecessary,considerationmightbegiveninthe applicationprogramtothecheckingofthevalidityofnewwritedatabyasimplereadbackprocess. WhenwritingdatatheWRbitmustbesethighimmediatelyaftertheWRENbithasbeensethigh, toensurethewritecycleexecutescorrectly.TheglobalinterruptbitEMIshouldalsobecleared beforeawritecycleisexecutedandthenre-enabledafterthewritecyclestarts.Notethatthedevice shouldnotentertheIDLEorSLEEPmodeuntiltheEEPROMreadorwriteoperationistotally complete,otherwise,theEEPROMreadorwriteoperationwillfail.Notethatthedeviceshould notentertheIDLEorSLEEPmodeuntiltheEEPROMreadorwriteoperationistotallycomplete. Otherwise,theEEPROMreadorwriteoperationwillfail. Programming Examples Reading data from the EEPROM - polling method MOVA,EEPROM_ADRES ;userdefinedaddress MOVEEA,A MOVA,040H;setupmemorypointerMP1 MOVMP1,A;MP1pointstoEECregister MOVA,01H ;setupBankPointer MOVBP,A SETIAR1.1;setRDENbit,enablereadoperations SETIAR1.0 ;startReadCycle-setRDbit BACK: SZIAR1.0;checkforreadcycleend JMPBACK CLRIAR1;disableEEPROMread/write CLRBP MOVA,EED;movereaddatatoregister MOVREAD_DATA,A Writing Data to the EEPROM - polling method MOVA,EEPROM_ADRES ;userdefinedaddress MOVEEA,A MOVA,EEPROM_DATA ;userdefineddata MOVEED,A MOVA,040H;setupmemorypointerMP1 MOVMP1,A;MP1pointstoEECregister MOVA,01H ;setupBankPointer MOVBP,A;BPpointstodatamemorybank1 CLREMI SETIAR1.3;setWRENbit,enablewriteoperations SETIAR1.2;startWriteCycle-setWRbit–executedimmediately ;aftersetWRENbit SETEMI BACK: SZIAR1.2;checkforwritecycleend JMPBACK CLRIAR1;disableEEPROMread/write CLRBP |
|
ссылки 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 |