+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Newbie level 2
    Points: 19, Level: 1

    Join Date
    Sep 2013
    Posts
    2
    Helped
    0 / 0
    Points
    19
    Level
    1

    I2C Slave Address Issue

    Hi, I m trying to interface PIC with MAX44004 ALS Sensor (Slave Device) via I2C. The slave device has an address of 0x94 (when A0 is GND. see pg no. 13 of the attached datasheet). Since datasheet states that each word transmitted to the device is 8 bits long and is followed by an acknowledge clock pulse.

    Now i have to incorporate R/W bit alongwith the slave address which is 0x94 so please advise how can i do this within the same byte to be transmitted to slave device?

    •   AltAdvertisement

        
       

  2. #2
    Full Member level 6
    Points: 2,002, Level: 10

    Join Date
    May 2013
    Posts
    346
    Helped
    68 / 68
    Points
    2,002
    Level
    10

    Re: I2C Slave Address Issue

    Quote Originally Posted by Inam65 View Post
    Hi, I m trying to interface PIC with MAX44004 ALS Sensor (Slave Device) via I2C. The slave device has an address of 0x94 (when A0 is GND. see pg no. 13 of the attached datasheet). Since datasheet states that each word transmitted to the device is 8 bits long and is followed by an acknowledge clock pulse.

    Now i have to incorporate R/W bit alongwith the slave address which is 0x94 so please advise how can i do this within the same byte to be transmitted to slave device?
    in i2c address bit 0 of the device is used ad read/write bit...
    what you are reffering as A0 is the LSB of o 7 bit device adress,

    so 0x94
    is actually device address 1001010 - A0 is 0 (4A)
    and 0x96 is device address 1001011 - A1 is 1 (4B)


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  3. #3
    Newbie level 2
    Points: 19, Level: 1

    Join Date
    Sep 2013
    Posts
    2
    Helped
    0 / 0
    Points
    19
    Level
    1

    Re: I2C Slave Address Issue

    Quote Originally Posted by aruipksni View Post
    in i2c address bit 0 of the device is used ad read/write bit...
    what you are reffering as A0 is the LSB of o 7 bit device adress,

    so 0x94
    is actually device address 1001010 - A0 is 0 (4A)
    and 0x96 is device address 1001011 - A1 is 1 (4B)
    Thank you for your reply.



--[[ ]]--