[SOLVED !] Two different EEProms on same I2C bus


Closed Thread
Results 1 to 6 of 6

Thread: Two different EEProms on same I2C bus1343 days old

  1. #1
    Broderic
    Guest Broderic's Avatar

    0 Not allowed!

    Default Two different EEProms on same I2C bus

    Hello.
    I would like two connect following external EEProms to the same I2C bus:

    FM24C256 address 1010 000r/W
    24C01B address 1010 XXXr/W

    My main problem is addressing, since both have same high nibble. I do not know what to put in XXX, because I tried writing on them with Proteus simulation and it works good for 24C256 and not for 24C01B, even if I put no care bit on one of the XXX.

    Does anyone know how to do?

    Thanks in advance.

    Broderic

Attention

This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

The advertisements we display are relevant to this web site and your browsing history

Please consider supporting us by disabling your ad blocker.


Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

If you can, please report issues in the forum area WebSite / Forum Issues


Thank you for your attention.

  • #2
    Prolific Poster RGV250's Avatar
    Join Date
    Aug 2005
    Posts
    2,347
    Thumbs Up
    Received: 29
    Given: 7
    Total Downloaded
    1.09 GB

    0 Not allowed!

    Default Re: Two different EEProms on same I2C bus

    Hi,
    You need to set the address by the pins, looking at the datasheet it is A0,1,2 on bot so you could leave one as default and change just one.

    Bob

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #3
    Broderic
    Guest Broderic's Avatar

    0 Not allowed!

    Default Re: Two different EEProms on same I2C bus

    Hello Bob,
    thanks for your attention.
    I put A0 of 24c256 to 1and I left 24c01 to default:

    24c256 10100010
    24c01 10100000

    I think I'm still wrong and I do not understand.

    Enclosed please find the simple Proton code and Proteus project.

    Thank you
    Attached Files Attached Files
    Last edited by Broderic; 15th May 2016 at 15:21.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #4
    Prolific Poster John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    2,829
    Thumbs Up
    Received: 89
    Given: 34
    Total Downloaded
    4.60 GB

    0 Not allowed!

    Default Re: Two different EEProms on same I2C bus

    You've set the 24C256 to two not one Broderick.
    Use 10100001
    John

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #5
    Broderic
    Guest Broderic's Avatar

    0 Not allowed!

    Default Re: Two different EEProms on same I2C bus

    Hello John,
    for 24C256, the device address is 1010 A2 A1 A0 r/W, so the LSB is read/write choice and 0 is good because I am writing.
    Since I power A0 the address is 10100010 and I guess it was right as I put in my previous message. But please if I'm not, tell me.

    In the meanwhile, I think I came out:
    I set new Address variable for 24C01 (Address1 as Byte, not as Word) and I inverted the I2C instructions(first the one for 24C01 and then the one for 24c256).

    It seems to work properly now.

    Attached, the files.

    Many thanks for your kind attention, Bob and John.

    Broderic
    Attached Files Attached Files

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #6
    Prolific Poster John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    2,829
    Thumbs Up
    Received: 89
    Given: 34
    Total Downloaded
    4.60 GB

    0 Not allowed!

    Default Re: Two different EEProms on same I2C bus

    Excellent - glad you got it going Broderic
    John

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

       

    Similar Threads

    1. I2C bus 2
      By ricardourio in forum Wish List / Product Feedback
      Replies: 10
      Last Post: 3rd July 2017, 12:23
    2. I2C bus
      By Peter Truman in forum Proton Plus Compiler v3
      Replies: 6
      Last Post: 29th July 2012, 07:14
    3. I2C 2 parts on 1 bus
      By Peter Truman in forum Proton Plus Compiler v3
      Replies: 5
      Last Post: 3rd July 2011, 04:11
    4. I2C Bus
      By ADLIN SYSTEMS in forum Wish List / Product Feedback
      Replies: 7
      Last Post: 12th August 2009, 15:42
    5. Newby Question About I2C and eeproms
      By eddy01 in forum The Lounge
      Replies: 64
      Last Post: 13th April 2008, 00:33

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts