I2C / TWI slave device addressing

Status
Not open for further replies.

krunal_299

Member level 4
Joined
Jan 24, 2008
Messages
68
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,288
Activity points
1,800
Hi to every being!!!
I am confused with I2C interface use with multi-slave mode.

How to determine the address of individual slave device....is it predefined by manufacturer of the slave devices or arbitrarily determine by the user?
Pls clearify this issue if possible with an example....

I want to interface 5 temperature sensor equipped with I2C feature.

Regards...
 

If you intend to use a temperature sensor like the LM75, part of the address is constant (1001) plus 3 aditional bits that can be connected to either ground or Vcc (pins A0,A1 and A2) to form up to 8 different combinations.
Therefore, the complete slave address is: 1 0 0 1 A2 A1 A0
If you intend to use another type of sensor please let us know.
 

I2C does use an address assignment based on the Philips protocol. Similar devices typically have low bits available for sequential addressing within the group. TWI as a protocol does not specify addressing.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…