Shop OBEX P1 Docs P2 Docs Learn Events
Write and read a 24lc16b with BS2 — Parallax Forums

Write and read a 24lc16b with BS2

moreetmoreet Posts: 17
edited 2009-12-02 18:29 in BASIC Stamp
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.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-12-02 18:20
    Please post your program. Use the Attachment Manager that you get when you use the Post Reply button.
  • moreetmoreet Posts: 17
    edited 2009-12-02 18:29
    Maybe I solved it. I didn't pull up the SDA.
    Tomorrow at school I will find out.
Sign In or Register to comment.