View Full Version : Write and read a 24lc16b with BS2

12-03-2009, 01:18 AM
Hi Dears,

I'm trying to prepare a lesson to my pupils but I have some problems with W/R the eeprom in the object.
I'm using shiftout and shiftin to do it, but I think I didn't understand well how to manage the acknowledge the 24lc16b sends after it has recived a byte.
I saw the signals in the oscilloscope; the write sequence seems ok, in the read sequence (random mode), setting the bank and the address is correct, but when I try to read the data using shiftin, during the last of 8 clock cycles the sda signal changes. For e I2C bus thats means a stop to the slave.

Any ideas?



Mike Green
12-03-2009, 01:20 AM
Please post your program. Use the Attachment Manager that you get when you use the Post Reply button.

12-03-2009, 01:29 AM
Maybe I solved it. I didn't pull up the SDA.
Tomorrow at school I will find out.