Connect with us

AT24C16B EEPROM & Arduino

Discussion in 'Microcontrollers, Programming and IoT' started by mattsains, Nov 24, 2012.

Scroll to continue with content
  1. mattsains

    mattsains

    35
    0
    Jun 8, 2012
    Hi guys
    I'm trying to interface with the AT25C16B 16KB "Two-wire serial EEPROM"
    Datasheet here: http://docs-europe.electrocomponents.com/webdocs/0dc4/0900766b80dc4474.pdf

    It seems to be pretty non-standard I2C, so I've tried to write my own I2C interfacing code. I've attached some arduino code. I've got SDA on 11 and SCL on 12, both with 10K external pullups.
    According to the datasheet, after the first eight bits I should receive an ACK, which according to wikipedia should be an SDA low when SCL is pulled high:

    SDA _________
    SCL __/-----------

    but I never receive this. SDA and SCL stay high. If I take out the pullup resistors, both SDA and SCL stay low, which isn't what an ACK is either!

    Can anyone help me? It's the first time I've used I2C
     

    Attached Files:

  2. mattsains

    mattsains

    35
    0
    Jun 8, 2012
    here's a better file with windows-type line endings
     

    Attached Files:

Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-