| Electronic Components Datasheet Search |
|
HT37B90 Datasheet(PDF) 17 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT37B90 Datasheet(HTML) 17 Page - Holtek Semiconductor Inc |
|
17 / 80 page ![]() HT37B90/HT37B70/HT37B50/HT37B30 Rev.1.00 17 June22,2017 Example The following example shows how to clear General Purpose Data Memory of bank0 by using MP0 and bank0~bank1 byusingMP1andMP2 code .section at 0 code org 00h RAM0TEST: MOV A,60H MOV MP0,A ; loaded with first RAM address LOOP0: CLR IAR0 ; clear the data at address defined by MP0 CLR WDT SIZ MP0 ; increase MP0, and skip out if MP0 is ²0² JMP LOOP0 : RAM1TEST: CLR DACC.7 ; access data to iar1 by MP1 CLR rBP1 ; clear RAM bank pointer 1 RAM1_MP1: MOV A,rBP1 ; load rBP1 data, and check if rBP1 is ²25² XOR A,25 SZ ZERO ; jump to exit loop if rBP1 is ²2² JMP RAM1TEST_Exit MOV A,60H ; loaded with first RAM address to MP1 MOV MP1,A LOOP1: CLR WDT CLR IAR1 ; clear the data at address defined by MP1 SIZ MP1 ; increase MP1, and skip out if MP1 is ²0² JMP LOOP1 INC rBP1 ; increase rBP1 JMP RAM1_MP1 RAM1TEST_Exit: : RAM2TEST: Set dacc.7 ; access data to iar1 by MP2 CLR rBP2 ; clear RAM bank pointer 2 RAM1MP2: MOV A,RBP2 XOR A,25 SZ ZERO ; jump to exit loop if rBP2 is ²2² JMP RAM2TEST_Exit MOV A,60H ; loaded with first RAM address to MP2 MOV MP2,A LOOP2: CLR WDT CLR IAR1 ; clear the data at address defined by MP2 SIZ MP2 ; increase MP2, and skip out if MP2 is ²0² JMP LOOP2 INC rBP2 ; increase rBP2 JMP RAM1MP2 RAM2TEST_Exit: : |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |