| ??? 06/02/08 02:55 Read: times |
#155374 - Now I can't get "Erase Block" to work, 89C51RC2 |
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 |
| Now I can't get "Erase Block" to work, 89C51RC2 | 01/01/70 00:00 | |
| PLEASE, pretty please | 01/01/70 00:00 | |
| Atmel 89C51RC2-UM Erase Block | 01/01/70 00:00 | |
| if there is no prefix on the chip... | 01/01/70 00:00 | |
| FLIP says it is an AT89C51RC2 | 01/01/70 00:00 | |
| Oh, everybody remembers all previous posts, | 01/01/70 00:00 | |
| Well I remember all of yours! :) | 01/01/70 00:00 | |
| why wouldn't be that? | 01/01/70 00:00 | |
| Have I misinterpreted the documentation? | 01/01/70 00:00 | |
| WHICH documentation? | 01/01/70 00:00 | |
| BAD documentation! | 01/01/70 00:00 | |
| oh, THAT one IS bad indeed! | 01/01/70 00:00 | |
| I'd say this the reason why erase does not work... | 01/01/70 00:00 | |
| No erase is needed, why did I think it was? | 01/01/70 00:00 | |
| but, Gary, we HAVE been talking about it... | 01/01/70 00:00 | |
| I know, I have been missing that | 01/01/70 00:00 | |
| when I came accross IAP for the first time... | 01/01/70 00:00 | |
| Not How - but the Before/After | 01/01/70 00:00 | |
Run In Simulation | 01/01/70 00:00 |



