Shop OBEX P1 Docs P2 Docs Learn Events
24LC128 read a value — Parallax Forums

24LC128 read a value

Luis_PLuis_P Posts: 246
edited 2010-09-30 22:21 in BASIC Stamp
My 24LC128 is hook up to my BS2. I stored value ("5") in address 1 of the 24LC128. Whats a simple way to Debug the value stored at that address? I dont understand the sample provided by parallax, but I was able to store the value at least. Now I want the BS2 to retrieve that value whenever I want.

DEBUG value in address 1 (24LC128)

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2010-09-30 22:21
    Read the datasheet for your EEPROM (here). Look at the description of writing and reading. For writing, you send a select byte, then two address bytes and a data byte. For reading, you start in write mode and send a select byte and two address bytes. Instead of a data byte, you send a new select byte, this time specifying read mode, then accept a read byte.

    You didn't say what kind of code you're using. There's sample code for different I2C devices written for the BS2 here.
Sign In or Register to comment.