Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Laura Hagerson
02/13/10 15:36
Read: 615 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.


List of 16 messages in thread
TopicAuthorDate
Using IAP on P89V51RD2 in uVision      Laura Hagerson      02/13/10 15:36      
   integrating assembly.      Andy Neil      02/13/10 17:13      
      will do      Laura Hagerson      02/13/10 17:20      
   please advise      Sami Ahmad      02/13/10 17:54      
      not sure if i will be much help sorry      Laura Hagerson      02/13/10 19:25      
   anyone?      Laura Hagerson      02/14/10 15:07      
      Keil      Jan Waclawek      02/14/10 16:05      
         is it really that different?      Laura Hagerson      02/15/10 01:29      
            toolchain defferences        Jan Waclawek      02/15/10 03:13      
               out of sheer curiosity...      Jan Waclawek      02/15/10 06:57      
                  wow!      Laura Hagerson      02/15/10 15:50      
                  oh no...      Laura Hagerson      02/16/10 05:55      
                     post the hexfile here      Jan Waclawek      02/16/10 07:35      
                     veni vidi vici      Jan Waclawek      02/16/10 08:29      
                        that worked!      Laura Hagerson      02/17/10 02:22      
               *Need* - not just "want"      Andy Neil      02/15/10 07:07      

Back to Subject List