??? 02/24/06 00:40 Read: times |
#110643 - I have written the code Responding to: ???'s previous message |
Jon Ledbetter said:
It starts at address 0 and goes to 64. Where do you set the 440h starting address?
MOV R3,#64 ; 64 BYTES TO BE ERASED MOV FMCON,#00H ; "LOAD" COMMAND MOV FMADRH,#04H; ADDRESS HIGH MOV FMADRL,#40H; ADDRESS LOW LOAD_PAGE1: MOV FMDATA,#32H ; TO WRITE "32H" TO ADDRESS 0440H DJNZ R3,LOAD_PAGE1; TO 0480H RET The address "04H" is stored to FMADRH and "40H" IS STORED TO FMADRL and DJNZ R3,LOAD_PAGE1will decrement R3 64 times.if you see the manual of 89LPC952 (page 105)this is what it states: "Write the address of the next byte to be programmed to FMADRL, if desired. (Not needed for contiguous bytes since FMADRL is auto-incremented). All bytes to be programmed must be within the same page." Now are things clear? |
Topic | Author | Date |
89LPC952 FLASH PROGRAMMING | 01/01/70 00:00 | |
Notes on posting code | 01/01/70 00:00 | |
rewrritten code 89LPC952 IAP code | 01/01/70 00:00 | |
what more do you need | 01/01/70 00:00 | |
Not sufficient!!! | 01/01/70 00:00 | |
how did you not "see" that? | 01/01/70 00:00 | |
I have written the code.... | 01/01/70 00:00 | |
Looks to me like | 01/01/70 00:00 | |
I have written the code | 01/01/70 00:00 | |
How can writing a constant be "the next" | 01/01/70 00:00 | |
Oh I see... | 01/01/70 00:00 | |
Disreguard previous post | 01/01/70 00:00 | |
a hint | 01/01/70 00:00 | |
updated code for 89LPC952 IAP | 01/01/70 00:00 | |
The above correction ('ONE' should be '1 | 01/01/70 00:00 | |
Ok... | 01/01/70 00:00 | |
That's exactly my question | 01/01/70 00:00 | |
How about.... | 01/01/70 00:00 | |
Thanks it worked!! | 01/01/70 00:00 | |
You're welcome![]() | 01/01/70 00:00 | |
Neat | 01/01/70 00:00 | |
If we go there, then | 01/01/70 00:00 |