24LC256 not working
FlyingFishFinger
Posts: 461
Hello World!
I am trying out my new 24LC256 EEPROM, but for some reason I can't get it to work. It seems to write properly, but all I ever get back from every location are 255's...I'm probably doing something wong, but I can't figure out what. What I have is this for the write copied almost straight from the Stamp Manual:
outgoing VAR Byte
outgoing=5
i2cout 0,$A0,0,[noparse][[/noparse]outgoing]
My read looks loke this:
result VAR Byte
i2cin 0,$A1,0,[noparse][[/noparse]result]
debug dec result
I don't get the address thing, though...
Thanks
Rafael
I am trying out my new 24LC256 EEPROM, but for some reason I can't get it to work. It seems to write properly, but all I ever get back from every location are 255's...I'm probably doing something wong, but I can't figure out what. What I have is this for the write copied almost straight from the Stamp Manual:
outgoing VAR Byte
outgoing=5
i2cout 0,$A0,0,[noparse][[/noparse]outgoing]
My read looks loke this:
result VAR Byte
i2cin 0,$A1,0,[noparse][[/noparse]result]
debug dec result
I don't get the address thing, though...
Thanks
Rafael
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
BTW, this is the first time I'm using either EEPROM or I2C
Rafael
Rafael
Rafael
http://www.parallax.com/detail.asp?product_id=602-00013
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Rafael
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Rafael
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Rafael
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Rafael
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Thanks Chris
Rafael
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com