i2c slave address limitation and multiple i2c?

Status
Not open for further replies.

glmclell

New Member
I want to control some I2C devices using a PIC, however, the I2C devices I've selected support a maxium of 4 such devices on an i2c bus (4 slave addresses).

so, can I get around this by using more pins on the PIC, to create multiple I2C buses?

for example, PORTC with 8 I/O lines ... can I use 0 & 1 for the first smbus, 2 & 3 for the second smbus, 4 & 5 for the third and 6 & 7 for the fourth?
 

Yes, that's fine, except you don't need to use two new wires for each bus, you could simply use a common data line for all the buses, and a seperate clock line for each bus.
 
Nigel Goodwin said:
...you don't need to use two new wires for each bus, you could simply use a common data line for all the buses, and a seperate clock line for each bus.

even better!

thank-you
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…