??? 12/25/09 14:55 Read: times |
#171919 - IAP ACCESS READ WRITE PROBLEM Responding to: ???'s previous message |
Hello,Mr.jan
Merry X`mas we have tried this one (http://www.8052.com/forum/read/126206 ) but not writing data #10101010B At addres 0080H.this one will store random data. we write some data on flash memory at location above 2000H address. Also we are calling PGM_MTP low level routine for to write and read the user code data at address 0080H. here,i am writing small program in assembly language for to access IAP. pl send me corrected program code. ;******************************************** DPL EQU 82H DPH EQU 83H FCF EQU 0B1H IE EQU 0A8H PGM_MTP EQU 1FF0H ORG 0080H MOV R3,#55H MOV R4,#25H ORG 2000H GOOD: ACALL WRITE ACALL READ MOV FCF,#001H MOV DPTR,#0080H CLR A MOVC A,@A+DPTR MOV 080H,A MOV A,#10101010B MOV 0A0H,A ACALL DELAY ACALL DELAY SJMP GOOD WRITE: PUSH IEH CLR AFH ANL FCF,#0FCH MOV R1,#02H MOV DPTR,#0080H MOV A,#11110000B LCALL 1FF0H ORL FCF,#001H POP IEH ACALL DELAY RET READ: PUSH IEH CLR AFH ANL FCF,#0FCH MOV R1,#03H MOV DPTR,#0080H LCALL 1FF0H ORL FCF,#001H POP IEH ACALL DELAY RET DELAY: MOV R5,#10 LD2: MOV R6,#100 LD1: MOV R7,#100 LD: DJNZ R7,LD DJNZ R6,LD1 DJNZ R5,LD2 RET END ;******************************************** We wre waiting for your replay. |
Topic | Author | Date |
p89v51rd2bn read and write data using iap routine | 01/01/70 00:00 | |
Duplicate Thread! | 01/01/70 00:00 | |
p89v51rd2bn | 01/01/70 00:00 | |
some links on this forum | 01/01/70 00:00 | |
IAP ACCESS READ WRITE PROBLEM | 01/01/70 00:00 | |
how do you verify what was written? | 01/01/70 00:00 | |
p89v51rd2bn Read &write data using IAP routine | 01/01/70 00:00 | |
sorry for the delay | 01/01/70 00:00 |