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. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,304
    Likes:
    914
    Location:
    Rochdale UK
    Yes you are right... I have found a similar case for a 24c256.... It probably IS an EEprom

    Very confusing...
     
  2. koolguy

    koolguy Active Member

    Joined:
    Aug 24, 2010
    Messages:
    2,196
    Likes:
    9
    Ok, then why it is not working??
     
  3. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,304
    Likes:
    914
    Location:
    Rochdale UK
    Unfortunately we cant "remote see" what your problem is.... As Mr T said you could get a pickit2 and use the logic analyzer to see the signals are correct...

    If you have a 512 ( 64K) device and A0 / A1 are grounded it should work.. BUT!! You have no way of knowing the voltage of the chip....
     
  4. dave

    Dave New Member

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


     
  5. koolguy

    koolguy Active Member

    Joined:
    Aug 24, 2010
    Messages:
    2,196
    Likes:
    9

    what do u mean? i am using 5V
     
  6. bryan1

    bryan1 Well-Known Member

    Joined:
    Aug 4, 2004
    Messages:
    1,680
    Likes:
    46
    Location:
    Adelaide Hills Sth Oz
    Have we had Enough

    Ian and Mr.T I do have to say you are too supportive for your own good, I'm sure this OP has turned not only me but others away from this forum as the lack of learning and cryptic posts does show the learning compatibility of the OP is a snail on heat
     
    • Like Like x 5
  7. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,304
    Likes:
    914
    Location:
    Rochdale UK
    Just goes to prove to Brain and others, that you are not helping yourself...... We give you every bit of information you need.....

    When asking for our help... Please oblige us and read our advise..
     
  8. misterT

    misterT Well-Known Member Most Helpful Member

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

    koolguy Active Member

    Joined:
    Aug 24, 2010
    Messages:
    2,196
    Likes:
    9
    It may be B but not E
    2FB 2
    anyway i will try to buy 256 new series in market.
     
  10. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,869
    Likes:
    144
    Location:
    morristown,tn
    These chips have all kinds of numbers there used in things like TV CRT to store config for I think the color settings.

    I played with them some time ago I pulled them out of old TV and Crt's.
    Lot's of fun that is looking up data sheets and then being a fool and think I could read the chip for some
    coding ideas LOL
    It was fun to write to them and read them.
    Maybe he doesn't have a eeprom chip maybe a motor controller LOL

    A simple picture of the chip that we can see would help
    But thats asking to much.
     
  11. koolguy

    koolguy Active Member

    Joined:
    Aug 24, 2010
    Messages:
    2,196
    Likes:
    9
    Reply from the EEPROM sender....
     
    Last edited: Aug 28, 2013
  12. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,869
    Likes:
    144
    Location:
    morristown,tn
    Those are 2.5 volt chips you may of fried them.
     
  13. misterT

    misterT Well-Known Member Most Helpful Member

    Joined:
    Apr 19, 2010
    Messages:
    2,697
    Likes:
    368
    Location:
    Finland
    The 2.5V means minimum operating voltage. The one with marking "2FB" works up to 5.5V.
     
  14. misterT

    misterT Well-Known Member Most Helpful Member

    Joined:
    Apr 19, 2010
    Messages:
    2,697
    Likes:
    368
    Location:
    Finland
    Have you double checked the electrical connections: A0, A1, A2, WP pins.. pullup-resistors on I2C line.. etc.

    One problem with your code I noticed is that you are only writing 8-bit memory adresses. The eeprom uses 16bit memory addresses.

    Read the datasheet pages 9 through 11.
     
    Last edited: Aug 28, 2013
  15. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,869
    Likes:
    144
    Location:
    morristown,tn
    MisT not to say your wrong but those chips
    Come it two voltages 3.6 and 5.5
    His is a 3.6 and should be ran under 3.6 volts
     
  16. killivolt

    killivolt Well-Known Member

    Joined:
    Mar 12, 2008
    Messages:
    3,213
    Likes:
    121
    Location:
    U.S.
    6pages and over 51posts.

    Hey, guy's I hope you'll be there for me too, when mine reach a 100 ....................Posts I mean.

    kv

    Edit: Pete and Re-Pete were in a boat, Pete fell out, who was left?
     
    Last edited: Aug 28, 2013
  17. misterT

    misterT Well-Known Member Most Helpful Member

    Joined:
    Apr 19, 2010
    Messages:
    2,697
    Likes:
    368
    Location:
    Finland
    Did you read the datasheet of the chip Ritesh has? The datasheet says:
    "the entire family is available in 1.8V (1.8V to 3.6V) and 2.5V (2.5V to 5.5V) versions."
    Ritesh has the 2.5V version.
     
  18. misterT

    misterT Well-Known Member Most Helpful Member

    Joined:
    Apr 19, 2010
    Messages:
    2,697
    Likes:
    368
    Location:
    Finland
    I read the forum when I drink my morning coffee.. sometimes when I'm just bored. I like the projects Ritesh posts.. I just have given up the "real effort" to help him. I used to work more to help Rites.. But now I'm merely trying to point Ritesh the right way.. and point out the obvious mistakes. I've noticed that writing code etc. is useless because Ritesh does not even read the code.. not to mention trying to understand it. Or trying to learn the C-language.

    When Ritesh buys the PicKit (or a logic analyzer or an oscilloscope) and starts posting photos, schematics and screenshot of measurements, I will be more interested to help him. Like I said. The projects he does are very good hobby projects.. it is a shame that he struggles.. these projects could help many hobbyists. (except the brainwave-project.. or the speech recognition.. those are rubbish).
     
    Last edited: Aug 29, 2013
  19. koolguy

    koolguy Active Member

    Joined:
    Aug 24, 2010
    Messages:
    2,196
    Likes:
    9
    That mean that EEPROM is damaged? but i am using 9V battery which give very few mA...so still damaged?
     
  20. tvtech

    tvtech Well-Known Member Most Helpful Member

    Joined:
    Mar 27, 2010
    Messages:
    3,167
    Likes:
    348
    Location:
    South Africa
    That my friends in the statement above says it all :mad:

    He has not a clue what he is doing. Please stop wasting your valuable time here and maybe help other more deserving folks who ask for help.

    You will NEVER get him sorted because even basic stuff is not understood....Never mind Digital Electronics which you cannot possibly understand without a solid knowledge of the Basics.

    In order to fix this sad situation Mr Kakkar has to be taught from the start. Properly. And I do not believe this forum has the time or money to do that.

    Just my 2c worth.

    Regards,
    tvtech
     
    Last edited: Aug 29, 2013
    • Like Like x 3
  21. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,304
    Likes:
    914
    Location:
    Rochdale UK
    Are you serious!!!! I thought you were in your fourth year Electrical Engineering...
     
    • Like Like x 3

Share This Page