Hi,
After building several Picaxe projects I decided to have a go playing with a 24LC128 but have not been able to succeed and maybe someone could spot what I am doing wrong, I have reduced the circuit and program to the bare minimum and tried several variations but still cannot get it to work.
This is a 18m2 with only a 24LC128 attached with address lines A0-2 all taken to ground as is WP
Here is the code I am using but all I get when reading the data back is 255 %11111111
Main:
i2cslave %10100000, i2cfast, i2cbyte
writei2c 0,("Hello",255)
pause 10
readi2c 0, (b0,b1,b2,b3,b4)
debug b0
end
If I attach an axe033 module with clock chip inserted I can access the module and user ram on the clock chip with i2c and no problems, but when I try it with the 24LC128 I get the results above. I bought 3 of these IC’s from Rapid and get the same for all of them so I don’t think it’s a faulty IC.
Any help would be appreciated.
After building several Picaxe projects I decided to have a go playing with a 24LC128 but have not been able to succeed and maybe someone could spot what I am doing wrong, I have reduced the circuit and program to the bare minimum and tried several variations but still cannot get it to work.
This is a 18m2 with only a 24LC128 attached with address lines A0-2 all taken to ground as is WP
Here is the code I am using but all I get when reading the data back is 255 %11111111
Main:
i2cslave %10100000, i2cfast, i2cbyte
writei2c 0,("Hello",255)
pause 10
readi2c 0, (b0,b1,b2,b3,b4)
debug b0
end
If I attach an axe033 module with clock chip inserted I can access the module and user ram on the clock chip with i2c and no problems, but when I try it with the 24LC128 I get the results above. I bought 3 of these IC’s from Rapid and get the same for all of them so I don’t think it’s a faulty IC.
Any help would be appreciated.