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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/13/10 10:41
Read: times


 
#175017 - FLIP is a pain
Responding to: ???'s previous message
You toggle between access of FLASH or EEPROM via the 'Select EEPROM' button. Then a subsequent 'Device Read' will read the 5131 into the Edit Buffer.
A subsequent Save to File will write the contents to a HEX file.

Note that you must keep an eye on the 'EEPROM Buffer Information' pane.
The 'Operations Flow' pane alters when you are in EEPROM access mode.

And after you have been using the EEPROM, remember to set back to FLASH for burning your new program. Life is probably an awful lot easier if you use BATCHISP.EXE instead of FLIP. Personally, I find that FM.EXE is a lot easier than FLASHMAGIC for the NXP chip.

Do not worry about the 5131 page modes. From the look of your application you are only going to be writing to EEPROM on an occasional basis. So you might just write one byte at a time.

If you want to use the page mode, you need to write a wreeprom_buf(char xdata * ads, char *source, char length) function. This will make sure that you write the current page before you cross into the next page. Exactly the same process as you use when writing multiple bytes to an I2C eeprom.

A Tip:
If you want to display something on an LCD, choose a Name or something else that is humanly readable. If you want to display some arbitrary binary value, use sprintf(buf, "%02X", value)

David.

List of 23 messages in thread
TopicAuthorDate
EEPROM Read/Write Issues            01/01/70 00:00      
   if it was an external EEPROM            01/01/70 00:00      
   if it was an external EEPROM            01/01/70 00:00      
   Special sequence.            01/01/70 00:00      
      Thanks, but can you please simplyfy it?            01/01/70 00:00      
         Hope this explains            01/01/70 00:00      
   Managed to fix lockups, but it doesnt read/write            01/01/70 00:00      
      You have to choose your API            01/01/70 00:00      
         Already did all that            01/01/70 00:00      
            char vs int            01/01/70 00:00      
            I gave you a function            01/01/70 00:00      
               Still no luck            01/01/70 00:00      
                  unsigned int is not the size of the unsigned int* pointer            01/01/70 00:00      
                  Why not use the function I gave you.            01/01/70 00:00      
                     I did use you function            01/01/70 00:00      
                        My apologies.            01/01/70 00:00      
                           Sorry to keep dragging you back here...            01/01/70 00:00      
                              FLIP is a pain            01/01/70 00:00      
                                 We have progress!            01/01/70 00:00      
                                    Terribly sorry to bump but I really need help            01/01/70 00:00      
                                       Found the solution!            01/01/70 00:00      
                                          Study your C textbooks            01/01/70 00:00      
                                          it cant distinguise the sign bit            01/01/70 00:00      

Back to Subject List