Software I2C bus, output pins

Jeroen.Vandezande
 
Avatar
 
Betreff:

Software I2C bus, output pins

 · 
Gepostet: 28.11.2011 - 11:41 Uhr  ·  #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
Geschlecht:
Alter: 26
Beiträge: 1480
Dabei seit: 03 / 2005
Betreff:

Re: Software I2C bus, output pins

 · 
Gepostet: 28.11.2011 - 13:15 Uhr  ·  #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
 
Betreff:

Re: Software I2C bus, output pins

 · 
Gepostet: 28.11.2011 - 14:00 Uhr  ·  #3
Thank you!
That is a great idea!
Gewählte Zitate für Mehrfachzitierung:   0

Registrierte in diesem Topic

Aktuell kein registrierter in diesem Bereich

Die Statistik zeigt, wer in den letzten 5 Minuten online war. Erneuerung alle 90 Sekunden.
MySQL Queries: 15 · Cache Hits: 13   64   77 · Page-Gen-Time: 0.043079s · Speichernutzung: 2 MB · GZIP: ein · Viewport: SMXL-HiDPI