??? 02/13/10 21:36 Read: times |
#173134 - Using IAP on P89V51RD2 in uVision |
Hi, I know that similar questions have been asked a few times but due to my lack of knowledge, I need a bit more information...
Basically, I just want my program to be able to save preferences changes that users make when using the program on the chip. I figured that using IAP to save a few integers would make it possible to recall those integers if there was a power cycle. I have had a look at Jan Waclawek's document on this subject (http://www.efton.sk/t0t1/p89v51rd2%20iap.pdf) that has some sample assembly code. My problem is that while I am happy with writing C code into the Keil uVision 3 software, compiling, and flashing it on to the chip, I am quite lost when it comes to integrating assembly. My questions are: 1. do I put that code in an .a51 file that I then just add to my project? 2. does that code need to be modified at all for Keil uVision for it to work? 3. How do I declare/call the functions that are in the assembly code from my C code? 4. How do I know which areas (memory addresses) of the flash are available to be written to? Many thanks to anyone who can assist me. |
Topic | Author | Date |
Using IAP on P89V51RD2 in uVision | 01/01/70 00:00 | |
integrating assembly. | 01/01/70 00:00 | |
will do | 01/01/70 00:00 | |
please advise | 01/01/70 00:00 | |
not sure if i will be much help sorry | 01/01/70 00:00 | |
anyone? | 01/01/70 00:00 | |
Keil | 01/01/70 00:00 | |
is it really that different? | 01/01/70 00:00 | |
toolchain defferences | 01/01/70 00:00 | |
out of sheer curiosity... | 01/01/70 00:00 | |
wow! | 01/01/70 00:00 | |
oh no... | 01/01/70 00:00 | |
post the hexfile here | 01/01/70 00:00 | |
veni vidi vici | 01/01/70 00:00 | |
that worked!![]() | 01/01/70 00:00 | |
*Need* - not just "want" | 01/01/70 00:00 |