??? 05/31/08 15:26 Read: times |
#155329 - Now I can't get Erase Block working Responding to: ???'s previous message |
Surprise, surprise! Now I am working on the "Erase Block" function with no luck. Below is what I am trying.
ERBLK1: ORL AUXR1,#01H ;ENABLE DPTR1 MOV DPTR,#0 ; ANL AUXR1,#0FEH ;ENABLE DPTR0 MOV DPTR,#2000H ;BLOCK 1 MOV R1,#1 ;ERASE BLOCK ORL AUXR1,#20H ;ENABLE BOOT ROM LCALL 0FFF0H ;PGM_MTP API ENTRY POINT ANL AUXR1,#0DFH ;DISABLE BOOT ROM RET Am I the only one that finds the Erase Block part of the API Call Summary confusing? Why is there a "program one data byte" in the middle of that section? |
Topic | Author | Date |
Atmel 89C51RC2-UM and IAP | 01/01/70 00:00 | |
Check the datasheet of 89c51rc2-um | 01/01/70 00:00 | |
Erase the FLASH First? | 01/01/70 00:00 | |
take a note of | 01/01/70 00:00 | |
there's a difference between Atmel and Philips... | 01/01/70 00:00 | |
add that one to webster :) | 01/01/70 00:00 | |
looks good | 01/01/70 00:00 | |
Duh! I confused RAM and XRAM! | 01/01/70 00:00 | |
Now I can't get Erase Block working![]() | 01/01/70 00:00 |