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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/09/08 14:53
Read: times


 
#153064 - Accessor functions?
Responding to: ???'s previous message
David Prentice said:
If you use accessor functions then you can swap a SPI eeprom with a I2C eeprom, or even an internal EEPROM very easily.


"Accessor functions" are new to me. A quick search leads me to believe that they are only a C++ feature? Can someone elaborate how these work and how they apply here?

I should read your boss's code very carefully before you make radical changes. Note that the larger size serial eeproms have a 2 byte address register.


Oh, I have! It's all in assembly, without comments of course. The new EEPROM has the additional address bit(s) mapped over the hardwired pins. So instead of having A2, A1 & A0 pins setting part of the address, you lose A0 pins' functionality for the 512 byte part (losing A0 & A1 for the 1024 byte part).

tom

List of 9 messages in thread
TopicAuthorDate
External EEPROM declarations            01/01/70 00:00      
   Don't know of any compiler ...            01/01/70 00:00      
   Use accessor functions for serial EEPROM            01/01/70 00:00      
      Accessor functions?            01/01/70 00:00      
         Accessor function just means get_eeprom(ads)            01/01/70 00:00      
            Fancy name for what I'm doing!            01/01/70 00:00      
               Nothing fancy - just common sense !            01/01/70 00:00      
   There are compilers....            01/01/70 00:00      
      me too said Keil            01/01/70 00:00      

Back to Subject List