i2c chip bus address

Discussion in 'General Electronics Chat' started by Mad Professor, Mar 17, 2013.

  1. Mad Professor

    Thread Starter Active Member

    Apr 15, 2009
    133
    1
    Good day all.

    I am trying to connect my Arduino Uno to a O2Micro OZ890 chip via i2c.

    I have been looking over the datasheet for the O2Micro OZ890 chip to try and find out if the chips i2c address is set via hardware or software.

    If someone has a few spare min's could they please have a quick look over the datasheet, and see if they can find what I am overlooking?

    Here is the O2Micro OZ890 Datasheet <Click Here (787Kb).

    Thanks for your time.

    Best Regards.
     
  2. Papabravo

    Expert

    Feb 24, 2006
    10,149
    1,792
    Look at page 56 of the datasheet. Register 0x30 contains two parameters which are SC release control and I2C Address. You have 16 choices in the range [0x00..0x0F]. The actual I2C address for a value of this parameter equal to N will be:
    Code ( (Unknown Language)):
    1.  
    2. 0x60 + 2 * N
    3.  
    4. so for a value of 0x03 the resulting I2C address will be 0x66
    5.  
    I did not delve into the datasheet far enough to figure out what is the initial value of the uninitialized EEPROM or if there was another way to program the EEPROM that does not involve the I2C bus. That is an exercise for the reader.
     
  3. Mad Professor

    Thread Starter Active Member

    Apr 15, 2009
    133
    1
    Papabravo: Thank you for your reply, and the info.

    Just what I needed to know.

    Thanks again.
     
Loading...