This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to address 16 bit address using I2C registers ( I2DAT)

Hi all
i wanted the FX2 to receive a 16 bit address (used to interface with labview)one eg is E012(one of the addressing i need to use), i am using the two registers I2CS and I2DAT. As u all know I2DAT is an 8 bit register as i am oso not sure wheather it is the correct step to write to I2DAT a 16 bit address when I2DAT only holds 8 bit. Or is there any other step, I wanted I2C to to write or read from (in my case labview) Please enlighten me thanks

Parents
  • What Are you addressing? How Many slaves are on the Bus?
    Thousands? After you address a device what you send after that is up to you. If you send two bytes the "FX" (assuming what? an 8052FX?) will have interpret what that means.
    Since I2C Hardware address are 7 bits how can Labveiw expect more? What is Labveiw using to talk to the I2C device? I assume you have some type of converter

    The 8052 Hardware after recognizing its address will return data 8bits at a time. You can combine the bytes as 16, 24, or 32 bit numbers as you like.

Reply
  • What Are you addressing? How Many slaves are on the Bus?
    Thousands? After you address a device what you send after that is up to you. If you send two bytes the "FX" (assuming what? an 8052FX?) will have interpret what that means.
    Since I2C Hardware address are 7 bits how can Labveiw expect more? What is Labveiw using to talk to the I2C device? I assume you have some type of converter

    The 8052 Hardware after recognizing its address will return data 8bits at a time. You can combine the bytes as 16, 24, or 32 bit numbers as you like.

Children