Pages: 1 [2]   Go Down
Author Topic: Running 2 i2c instances simaltaneusly  (Read 9460 times)
0 Members and 1 Guest are viewing this topic.
London
Offline Offline
Tesla Member
***
Karma: 10
Posts: 6255
Have fun!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The post from eastons made me realize that only the SDA line needs to be switched. The CLK lines can go to both i2c devices. So you only need to connect the two SDA lines to the 4052 .

Looking forward to reading about how you get on.

BTW, I would think the circuit in eastons link would work with BJT transistors. If so, that solution may be cheaper.
Logged

Dallas, Texas
Offline Offline
God Member
*****
Karma: 0
Posts: 861
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What you need is an I2C address spoofer.  smiley-grin

It has an SCL pass-through and an SDA in and an SDA out. A register inside holds the address of the device that has duplicate addresses and the spoofer itself has A0-A3 sub-address pins and a base address that puts it out of the way of most things. Then it's a simple matter for the spoofer to insert the register address at the correct time and pass the other data through unchanged when it's appropriate.

 8-) 8-) 8-)
Logged

0
Offline Offline
Faraday Member
**
Karma: 8
Posts: 2526
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
What you need is an I2C address spoofer.  
Got a part number?

We keep ours in the cabinet next to the cable stretchers and spare bit buckets.  smiley

-j
Logged

Dallas, Texas
Offline Offline
God Member
*****
Karma: 0
Posts: 861
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

 I can never remember that number but mine are in the same drawer with the round tuits. smiley-wink
« Last Edit: July 21, 2009, 08:07:24 pm by EmilyJane » Logged

Pages: 1 [2]   Go Up
Jump to: