[i2c] Using 2 identical chip i2c device in the same bus

Arnold abo_gwapo at yahoo.com
Wed Jan 10 03:20:07 CET 2007


Hi Jean,

I just want to Thank you for your time and effort to
help me. I really appreciate it. It seems that I could
communicate now with my i2c device.  :)


--- Jean Delvare <khali at linux-fr.org> wrote:

> Hi Arnold,
> 
> On Tue, 21 Nov 2006 17:56:28 -0800 (PST), Arnold
> wrote:
> > I've been stuck with the problem of having 2 i2c
> > device on 1 bus line. And I have learned that you
> can
> > not attach 2 same device to 1 bus line because of
> the
> > addressing. To solve this problem I attached a
> > 2-channel i2c multiplexer. 
> 
> This isn't entirely true. Many chips can be
> configured to use
> different addresses, by wiring one or more dedicated
> address pins to
> the ground, VCC, or left floating. For example, the
> LM83 has 2 3-state
> address pins, so you can wire up to 9 such chips on
> the same bus. Some
> chips don't have address pins but several variants
> can be purchased,
> each with a different address. For example there are
> two variants of
> the ADM1032 chip, one with address 0x4c and one with
> address 0x4d.
> 
> > Does anybody have used a PCA9540B 2-channel i2c
> > multiplexer? If yes, could you give me a hand on
> how
> > it works? or if you could share the steps on how
> to
> > configure this? 
> 
> There is a test driver in the lm_sensors source
> package
> (kernel/chips/pca9540.c), but proper support for
> multiplexed busses is
> still missing. So I strongly advise that you simply
> choose chips that
> can use different addresses and don't bother with
> multiplexing.
> 
> -- 
> Jean Delvare
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the i2c mailing list