Controlling multiple devices on i2c

Questions on control of serial busses
Post Reply
YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Controlling multiple devices on i2c

Post by YahooArchive »

Hi,

I have 2 EEPROM memory chips (24LC02B) each with slave address 0xAX. How do I
address these memory chips individually when on the same I2C bus? I can read
and write just fine when only 1 is on the line, but it gets confused when there
are 2.

Thanks,
Marc



YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: Controlling multiple devices on i2c

Post by YahooArchive »

Hi Marc,

even I could not solve my problem, however, this couple days I read alot of I2C
datasheet and understand your answer.

1) Please read the datasheet of 24LC02 first
http://www.datasheetcatalog.org/datashe ... Xrqzzy.pdf . the addressing
can be select by control the pin 1,2 and 3.
2) Read/Write command constructed by '1010'+'A2,A1,A0,'+'R/W' to form a 8 bit
command. 'Read=1, Write=0' so Both A0,A1,A2 don't connected, the write and read
command become '0xA0 and 0xA1', If this A0 pull up to high for the second
24LC02, The write and read command should become '0xA2 and 0xA3' respectively.

Hope this can solve your problem. but who else can help me. Arrrr....

Brian

Post Reply