Write and read a 24lc16b with BS2
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?
Thanks.
Marco.
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?
Thanks.
Marco.
Comments
Tomorrow at school I will find out.