Software I2C bus, output pins

Jeroen.Vandezande
 
Avatar
 
Subject:

Software I2C bus, output pins

 · 
Posted: 28.11.2011 - 11:41  ·  #1
Hi,

I have an application where I need 2 or more separate I2C busses...
Is it possible to change the clock and data pins of the software i2c bus at runtime?
The busses never need to run at the same time...


Best Regards,

Jeroen Vandezande
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1408
Registered: 03 / 2005
Subject:

Re: Software I2C bus, output pins

 · 
Posted: 28.11.2011 - 13:15  ·  #2
Hi Jeroen. In the absence of a software solution there is always the hardware one. Parallel up the data lines and use an AND gate or similar on the clock lines to select the clock lines one at a time - a sort of slave select, using a free port pin as the other input to the AND gate.

Regards

Merlin.
Jeroen.Vandezande
 
Avatar
 
Subject:

Re: Software I2C bus, output pins

 · 
Posted: 28.11.2011 - 14:00  ·  #3
Thank you!
That is a great idea!
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 13   64   77 · Page-Gen-Time: 0.016644s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI