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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/21/11 06:57
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#182943 - Data Ram ? Not!!
Responding to: ???'s previous message
Maunik Choksi said:
Hi everybody,

I am using P89LV51RD2FN first time & need help from you to use DATA RAM as EEPROM.

Is it possible & if yes how ? can you give some source code of it


Before you go grubbing for free code you have to get a far better grip in the hardware requirements. Code will do nothing for you until you get the hardware in place.

A) First off realize that EEPROM is a non-volatile memory technology. It will not lose it's memory content when the power supply goes away.

B) "Data Ram" on board your chosen microcontroller is volatile memory. It _will_ lose its content when power goes away. This means that it cannot be directly to appear as EEPROM. There is no software magic fix for that either.

C) You could be practical and attach a 2-wire interface serial EEPROM to other pins on your microcontroller and use that as real EEPROM. But that would require you to read at least one more data sheet. You ready for that?

D) You could design your microcontroller with a battery backup scheme and then each time you go to "turn off" your device you put it into a very low power sleep state. This would retain the Data Ram content and make it "non-volatile" of the life of the battery. Such design is going to take considerable work and effort and planning to get the hardware features in place and working....all of which must be completed before you let even one line of code hit your hardware.

So, you have some planning and work to do. Coming here asking for code was probably not the best thing to have done.

Michael Karas


List of 37 messages in thread
TopicAuthorDate
about P89LV51RD2FN            01/01/70 00:00      
   use DATA RAM as EEPROM            01/01/70 00:00      
   Do you want read-only?            01/01/70 00:00      
      external memory chips            01/01/70 00:00      
   Data Ram ? Not!!            01/01/70 00:00      
      Requirements            01/01/70 00:00      
         shifting of EEPROM            01/01/70 00:00      
            You want to remove external EEPROM - why?            01/01/70 00:00      
            The 93C46 is only 128 bytes            01/01/70 00:00      
            So why choose the P89LV51RD2FN, then??            01/01/70 00:00      
               IAP            01/01/70 00:00      
                  Harvard Architecture            01/01/70 00:00      
                     IAP vs External Serial EEPROM            01/01/70 00:00      
                        Serial EEPROM            01/01/70 00:00      
                           MOVX or MOVC is fairly similar            01/01/70 00:00      
                              choose an MCU with proper eeprom            01/01/70 00:00      
   the P89LV51RD2 can support this            01/01/70 00:00      
      already mentioned            01/01/70 00:00      
      erase & write            01/01/70 00:00      
         Why make life difficult for yourself?            01/01/70 00:00      
            another chip            01/01/70 00:00      
               Choose carefully!            01/01/70 00:00      
               P89LV51RD2FN IAP write endurance            01/01/70 00:00      
                  elegant solution?            01/01/70 00:00      
                     better one            01/01/70 00:00      
                        Check out this one...            01/01/70 00:00      
                           availability?            01/01/70 00:00      
                              I'll Admit....            01/01/70 00:00      
                                 Atmel parts availability            01/01/70 00:00      
                                    Onchip nonvolatile RAM            01/01/70 00:00      
                                       Link.            01/01/70 00:00      
                                       Happy With Package Options ?            01/01/70 00:00      
                                          about plcc package            01/01/70 00:00      
                                             If you're changing the package anyhow...            01/01/70 00:00      
                                                selection of plcc            01/01/70 00:00      
                                                   Why socket?            01/01/70 00:00      
            an alternative            01/01/70 00:00      

Back to Subject List