Interfacing with EEPROM
abcdefg
Posts: 10
Can I interface the BASIC stamp with EEPROM ICs like the ones I linked to? Is there any example code floating around for either of these?
http://ww1.microchip.com/downloads/en/DeviceDoc/21941C.pdf
http://ww1.microchip.com/downloads/en/DeviceDoc/21713F.pdf
http://ww1.microchip.com/downloads/en/DeviceDoc/21941C.pdf
http://ww1.microchip.com/downloads/en/DeviceDoc/21713F.pdf
Comments
The BS2p supports I2C commands natively (see I2CIN and I2COUT in the Stamp manual). If you have a BS2 then you can "bit-bang" the I2C protocol using some subroutines to handle the data transfers. See this thread:
http://forums.parallax.com/showthread.php?p=466264
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
Just to be sure, can I write data from an analog-> digital converter onto the EEPROM and then later use the BASIC stamp to pull the data out and run it through a digital -> analog converter? Thanks!
- you collect data into some variable(s)
- format and write the variable data to the EEPROM
- do other stuff for a while
- read some data from EEPROM into some variable(s)
- do stuff to the data
- output data to a D/A
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST