Possible to detect I2C Device?


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257

    Red face Possible to detect I2C Device?

    Hi Guys n Gals,

    Is it possible to poll a I2C eeprom to detect what size it is?

    For instance, if I had a 24LC256 installed and later upgraded to a 24LC515 chip, could the pic detect the size increase or hardware number etc and make use of the extra memory in the bigger eeprom?

    Cheers

    Squib

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Squibcakes View Post
    Hi Guys n Gals,

    Is it possible to poll a I2C eeprom to detect what size it is?

    For instance, if I had a 24LC256 installed and later upgraded to a 24LC515 chip, could the pic detect the size increase or hardware number etc and make use of the extra memory in the bigger eeprom?

    Cheers

    Squib
    About the only way I can think of is to write a value at 64K-1, read it back, then write another value and see if it changes. If it does, you can be reasonably sure it's a '515, if it doesn't, '256.

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Wink S.e.a.r.c.h !!!

    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. I2C Master/Slave 16F88/16F767 working code
    By DanPBP in forum Code Examples
    Replies: 2
    Last Post: - 23rd October 2012, 22:31
  2. HARDWARE I2C SAMPLE CODE question
    By Michael Wakileh in forum Code Examples
    Replies: 2
    Last Post: - 16th June 2009, 21:07
  3. Another I2C Slave Routine Problem
    By DanPBP in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th February 2009, 05:50
  4. PIC16F877 I2C programme
    By cooqo in forum mel PIC BASIC
    Replies: 3
    Last Post: - 21st April 2008, 10:02
  5. I2C Master Slave issues.
    By cpayne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th March 2008, 19:33

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

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