1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

I2c with serial eeprom...

Discussion in 'Microcontrollers' started by koolguy, Aug 21, 2013.

  1. koolguy

    koolguy Active Member

    Joined:
    Aug 24, 2010
    Messages:
    2,196
    Likes:
    9
    Hi,
    The it is not working...only 0xff is working when chip is removed due to pull up, other than this data it is not working...,why?
     
  2. misterT

    misterT Well-Known Member Most Helpful Member

    Joined:
    Apr 19, 2010
    Messages:
    2,697
    Likes:
    368
    Location:
    Finland
    I2C is not easy to debug. You'll need an oscilloscope or a logic analyzer. At least you need to read the datasheet of the device. I could take a look but you have not even told us what eeprom chip you are using. Could you post a link to the correct datasheet so I can be sure we are reading the same document.
     
  3. koolguy

    koolguy Active Member

    Joined:
    Aug 24, 2010
    Messages:
    2,196
    Likes:
    9
    Its from Microchip i am searching on there site......
    chip code atmlu020 mention on it
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. misterT

    misterT Well-Known Member Most Helpful Member

    Joined:
    Apr 19, 2010
    Messages:
    2,697
    Likes:
    368
    Location:
    Finland

    I bet you 10 USD that it is not a Microchip eeprom. I bet you another 10 dollars that it is Atmels AT24Cxx. Anyway, I believe these kind of eeproms are pretty standard regardless of who made it, but it is always good to use the correct datasheet.
     
    Last edited: Aug 24, 2013
  6. misterT

    misterT Well-Known Member Most Helpful Member

    Joined:
    Apr 19, 2010
    Messages:
    2,697
    Likes:
    368
    Location:
    Finland
    Have you connected WP to ground or supply voltage?
     
  7. koolguy

    koolguy Active Member

    Joined:
    Aug 24, 2010
    Messages:
    2,196
    Likes:
    9
    Yes All Ad0-3 and WP to GND and using 9K pull up...
     
  8. koolguy

    koolguy Active Member

    Joined:
    Aug 24, 2010
    Messages:
    2,196
    Likes:
    9
    OK, This is what written on it...
    ATMLU020
    2F8 2
    0F2920A
     
  9. misterT

    misterT Well-Known Member Most Helpful Member

    Joined:
    Apr 19, 2010
    Messages:
    2,697
    Likes:
    368
    Location:
    Finland
    Your first post said "AD0 - AD2 to GND".. now it is Ad0-3.
    Well, anyway, The connection of WP is correct.
    Post a link to the datasheet you are reading.. I hope you are reading it.
     
  10. koolguy

    koolguy Active Member

    Joined:
    Aug 24, 2010
    Messages:
    2,196
    Likes:
    9
    its same thing..
     
  11. koolguy

    koolguy Active Member

    Joined:
    Aug 24, 2010
    Messages:
    2,196
    Likes:
    9
    Not getting exact data sheet but is 64Kb EEPROM..
     
  12. misterT

    misterT Well-Known Member Most Helpful Member

    Joined:
    Apr 19, 2010
    Messages:
    2,697
    Likes:
    368
    Location:
    Finland
    I did not find any i2c eeproms with code 2F8.. are you sure about that? The closest I found was AT24C512C which has the code 2FC on it.
    Where did you get the chip? Are you sure it is a i2c serial eeprom? How much memory you think it has?
     
  13. koolguy

    koolguy Active Member

    Joined:
    Aug 24, 2010
    Messages:
    2,196
    Likes:
    9
    yes some one gifted me i am asking from him, anyway it is 64KB
     
  14. misterT

    misterT Well-Known Member Most Helpful Member

    Joined:
    Apr 19, 2010
    Messages:
    2,697
    Likes:
    368
    Location:
    Finland
    How do you know it is 64Kb serial I2C EEPROM? The only 64Kb i2c eeprom from Atmel I found should have the code 64DM on it.. not 2F8.
     
  15. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,142
    Likes:
    907
    Location:
    Rochdale UK
    ONLINE
  16. koolguy

    koolguy Active Member

    Joined:
    Aug 24, 2010
    Messages:
    2,196
    Likes:
    9
    they said power chip?
     
  17. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,142
    Likes:
    907
    Location:
    Rochdale UK
    ONLINE
    Ritesh!! Try and download the PDF from their website.... I won't be able to read it....
     
  18. koolguy

    koolguy Active Member

    Joined:
    Aug 24, 2010
    Messages:
    2,196
    Likes:
    9
  19. misterT

    misterT Well-Known Member Most Helpful Member

    Joined:
    Apr 19, 2010
    Messages:
    2,697
    Likes:
    368
    Location:
    Finland
    Do you even know what a datasheet is? Have you read the datasheet.. or are you just providing some link to a datasheet because we asked for it?
    What should I do with the datasheet? Write thousand lines of code so that you can move on to the next ******** project?
     
    • Like Like x 1
  20. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,142
    Likes:
    907
    Location:
    Rochdale UK
    ONLINE
    No... That is a link to the 32k and the 64k eeproms AT24C256 and AT24C512..... These are normal eeproms.... We need the datasheet for the ATMUL020... THIS IS NOT AN EEPROM..
     
  21. misterT

    misterT Well-Known Member Most Helpful Member

    Joined:
    Apr 19, 2010
    Messages:
    2,697
    Likes:
    368
    Location:
    Finland
    Atmel EEPROMs have the marking ATMLU020 on them. The number is the year and month when the chip was made (2010, week 20, in this case).. under that is the code (truncation code) that tells what chip it is. None of the EEPROMS have marking 2F8 on them.. not the ones I checked. And I actually went through all the EEPROM datasheets on Atmels website.

    Maybe it is a serial DataFlash, but Atmel does not make those anymore.. Adesto bought the chip out of Atmel. If it is DataFlash, then it might be broken allready, because many of them are low voltage devices and 5v will destroy them.
     
    Last edited: Aug 27, 2013

Share This Page