24LC16 EEPROM Question
Eugalaz
Posts: 39
Hello,
Could anybody please advise how to store data to an external EEPROM (24LC16) without using i2C commands? I kow it can be done as I have seen the code once before however now I only seem to find the i2C way. I do not wish to use this protocol as it's to heavy and I would much prefer to use SHIFTOUT or SEROUT commands instead of a thousand i2C directives (just kidding but you know what I mean). Any help in this would be much appreciated along with connection details. I believe that the SDA pin on the EEPROM needs a 10K Ohm pull up resistor to VCC as well as being connected to the stamp. SCL goes straight to the stamp and the WP gets grounded to VSS. A0 to A2 on·the EEPROM·can be left floating.
If anyone can supply some code I would be much obliged.
Thanking you in advance.
Could anybody please advise how to store data to an external EEPROM (24LC16) without using i2C commands? I kow it can be done as I have seen the code once before however now I only seem to find the i2C way. I do not wish to use this protocol as it's to heavy and I would much prefer to use SHIFTOUT or SEROUT commands instead of a thousand i2C directives (just kidding but you know what I mean). Any help in this would be much appreciated along with connection details. I believe that the SDA pin on the EEPROM needs a 10K Ohm pull up resistor to VCC as well as being connected to the stamp. SCL goes straight to the stamp and the WP gets grounded to VSS. A0 to A2 on·the EEPROM·can be left floating.
If anyone can supply some code I would be much obliged.
Thanking you in advance.
Comments
www.parallax.com/Portals/0/Downloads/docs/cols/nv/vol3/col/nv85.pdf
This article doesn't give explicit examples for the 24LC16, but there are other articles on the 24LC16 with examples that can be adapted.
If you're still unhappy with the complexity of the code, you'll have to switch to a different kind of external EEPROM with an SPI (3-wire or 4-wire) interface where you can use the SHIFTOUT and SHIFTIN instructions.
Post Edit -- There's a "Weekend Special" going on, an opportunity to Upgrade; strike when the iron is hot.
Post Edited (PJ Allen) : 7/18/2009 5:03:00 PM GMT
Could you name the other EEPROM that uses an SPI interface? and are there any examples for them that will help me connect to and read/write to?
Up untill now I have been using the old Parallax product called StampMEM. Remember them? they were a great product and very easy to communicate with. Don't know why they went off line. I would like to swap these with other EEPROMS that are just as easy to talk to. The StampMEM product is not iC2 but does connect with only one wire??
Do you know of any code examples and wiring to stamp details for the 25lcxxx series of EEPROM? Thanks to your help I think I am getting closer to a solution.
There may be some other non-memory examples in the StampWorks Manual and in the Basic Analog and Digital tutorial.