| Author |
Message |
krunal_299
Joined: 24 Jan 2008 Posts: 58
|
03 Nov 2009 11:44 I2C / TWI slave device addressing |
|
|
|
|
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...
|
|
| Back to top |
|
 |
pauloynski
Joined: 06 Oct 2004 Posts: 277 Helped: 34 Location: Brazil
|
03 Nov 2009 16:55 Re: I2C / TWI slave device addressing |
|
|
|
|
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.
|
|
| Back to top |
|
 |
Google AdSense

|
03 Nov 2009 16:55 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
GetDeviceInfo
Joined: 30 Mar 2009 Posts: 103
|
04 Nov 2009 15:44 Re: I2C / TWI slave device addressing |
|
|
|
|
| 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.
|
|
| Back to top |
|
 |