| 전자부품 데이터시트 검색엔진 |
|
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 |
| 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 |