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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/11/06 17:14
Read: times


 
#126222 - P89V51 IAP (access)
Responding to: ???'s previous message
Jan is correct...

I am thinking you haven't got the concept of how the P89v51 IAP works.

1. There are 2 flash code areas on an P89v51
a. The main (user) executable area. starts 0x0000
b. the IAP function calls area.

The P89v51 can execute code from either of these areas.

2. After Reset

After reset + 400mS (typically) the P89v51 starts executing your code from 0x0000 like any normal 80c51 micro.

3. IAP Flash Programming

To esase, program etc parts of the main (user) flash code area... you have to call the IAP function call flash area.


4. Accessing the IAP.

Under normal user code execution the IAP is "swaped out" and can not be reached..

To get access to the IAP... you need to "swap it in"

The IAP is "swaped in" by some SFR commands (the ones Jan mentions above).

The IAP is swaped in (mapped) to address 0x0000 to 0x1FFF... hence your user code should be above 0x2000 when calling the IAP functions.


5. Now that you have mapped the IAP function calls in the address range 0x0000 to 0x1FFF - You can set up the registers and make calls to IAP to erase, program etc... as described in 7.2.6

*** S stress all interupts should be turned off during IAP flash programming.

6. Don't forget to "swap out" the IAP flash area so that normal execution of your user code can continune from address 0x000 to 0x1FFF


I hope I haven't confused you...

joe


List of 50 messages in thread
TopicAuthorDate
how to write in EEPROM in P89V51RD2 ?            01/01/70 00:00      
   there is no such thing as an EEPROM            01/01/70 00:00      
   eh?            01/01/70 00:00      
      I mean FLASH ...            01/01/70 00:00      
         FlashMagic            01/01/70 00:00      
            I have flash magic            01/01/70 00:00      
               that IS what FlashMagic does            01/01/70 00:00      
                  All of them ...            01/01/70 00:00      
                     I'm at a loss            01/01/70 00:00      
                  Probs is password storing ...            01/01/70 00:00      
                     you have not, see above            01/01/70 00:00      
                        just give me an idea            01/01/70 00:00      
                           datasheet            01/01/70 00:00      
                     clear question will help            01/01/70 00:00      
         read the ... datasheet            01/01/70 00:00      
            P89V51 IAP (access)            01/01/70 00:00      
         Unfortunate terminology!            01/01/70 00:00      
   I read data sheet            01/01/70 00:00      
      read about IAP!!!            01/01/70 00:00      
         IAP code example...            01/01/70 00:00      
            this is NOT for P89V51RD2!            01/01/70 00:00      
               Use 89S52 / 89S8252            01/01/70 00:00      
                  I\'d guess...            01/01/70 00:00      
            few questions ...            01/01/70 00:00      
               Do you read my posts?            01/01/70 00:00      
   I have tried but failed ...            01/01/70 00:00      
      corrupted???            01/01/70 00:00      
         Dont know            01/01/70 00:00      
            How do you know that they are corrupted?            01/01/70 00:00      
            Refer the application notes for the P89V51RD2            01/01/70 00:00      
               Detail Problem ...            01/01/70 00:00      
                  think!            01/01/70 00:00      
                     program ...            01/01/70 00:00      
                        ehm....            01/01/70 00:00      
                           Well confused!            01/01/70 00:00      
                              one has to start somewhere...            01/01/70 00:00      
                                 Flowcharts            01/01/70 00:00      
                                    I don't think it's a good idea...            01/01/70 00:00      
                        Jan ... Guide me more            01/01/70 00:00      
                           where to place the code            01/01/70 00:00      
                  BIBLE TIME            01/01/70 00:00      
                     BASICs            01/01/70 00:00      
                        A very basic question            01/01/70 00:00      
                           to Arvind            01/01/70 00:00      
                           if you mean BASIC52/RD2 v1.4beta4...            01/01/70 00:00      
      the dangers of uncharted waters withou a pilots            01/01/70 00:00      
         maybe            01/01/70 00:00      
            I would not dare that            01/01/70 00:00      
               sunset...            01/01/70 00:00      
                  Mr. Shrivastava you are Wasting other's time            01/01/70 00:00      

Back to Subject List