Mulitple IC2IN/OUT?
CRussell
Posts: 15
Was reading through the manual online and noticed that the IC2IN/OUT commands use 2 pins (figured that much).· However, it says, in the facts sheet at least, that it uses either pin 0/1 or pins 8/9.· I'm not sure if I'm reading that right.· The question is, if I have 4 devices that I want to send IC2IN/OUT commands to, can I set them up on multiple pins?· IE, can I use IC2IN/OUT on pins 0+1, 2+3, 4+5, and 6+7?· I know I could connect all 4 I2C devies to the same lines and just give the different address, but my chips all have the SAME address!· Hence the need for seperate pins on the BS2p40 for each device.· Can the STAMP do this?· Or am I limited to only 2 I2C devices as the manual somewhat implies?
Comments
FWIW, watch for two things on your I2C devices:
1) Address pins with which you can specify different addresses (e.g. MCP23016 I/O extender).
2) I2C commands that let you change the devices address (e.g. BlinkM "smart" LED).
With the latter you'd put each device on the I2C bus and change its address, one at a time.
Afterwards, everyone can ride the same bus.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Rusty-
--
Rusty Haddock <=> AE5AE
**Out yonder in the Van Alstyne (TX) Metropolitan Area**
Microsoft is to software what McDonalds is to gourmet cooking
A 74xx77 wouldn't work in this circuit because it's not trying to latch any data -- just switch one data
stream (SDA) to one of four devices, the LTC1695's.
Personally, I think I'd use something like half of a 74xx155 1-of-4 decoder/demultipler to reduce the
pins needed from the Stamp to SDA, SCL, and two bits for selection. There might be a slightly better
part but I don't have my TTL Data Book handy to browse through.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Rusty-
--
Rusty Haddock <=> AE5AE
**Out yonder in the Van Alstyne (TX) Metropolitan Area**
Microsoft is to software what McDonalds is to gourmet cooking
I figured the latches could be used as enable lines--only unlatch the channel you want to use and have the inputs tied together like the 4066, but as Mike pointed out, I forgot about the SDA needing to be bi-directional anyway.
EDIT: My fault--when I first looked at the 74LS75/77 I thought each latch had its own enable pin, but I see they are shared 2 x 2.
Post Edited (Andy Fox) : 8/4/2008 11:15:56 PM GMT
That's what I git for posting before midnight. :-\
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Rusty-
--
Rusty Haddock <=> AE5AE
**Out yonder in the Van Alstyne (TX) Metropolitan Area**
Microsoft is to software what McDonalds is to gourmet cooking
And on a very side segway, I was noticing the schematics available for the BS2p40 on the site. Is that diagram sufficient enough to create the BS2p40 with surface mount parts instead of the manufactured version via OEM parts? All I need is the EEPROM, the interpreter, and the set of other items (resonator, resistors, etc) in the diagram? It would make life easier for us out here if I could scrap the very large DIP-40 package this thing comes in for the very small surface mount variety. Or is there something else that I need to take into consideration with that diagram?