Under communications, an I2C section.
In the communications portion of the forum, I2C is mentioned as being part of that section, but there's no particular I2C forum.
Here's my I2C question:
On the PIC 18F4550, pins 33 and 34 are the SDA and SCL pins for I2C communication. They work fine. Can I implement another I2C device on another set of pins, say RC2 and RD7, as long as I specify those pins in the I2CRead and I2CWrite commands?
Why more than one I2C bus?
Blaine,
Part of I2C's features is 2 lines (SCL & SDA) creating a bus which can handle multiple slaves & masters.
Also, I know Phillips (as well as others certainly) makes a number of chips which enhance the protocal and extend the bus in many ways? Capacitance on the lines needs to be taken into account, but there are ways to deal with that too.
So, what are you trying to do that requires more than one bus? Do you really need it? It could save a few pins if you don't have to have a second bus.
Steve
Do I really need multiple I2C Busses?
Possibly not.
The 24LC16B memory chip doesn't appear to allow you to use multiple chips. I would be using this chip, or some other memory chip, as message queues to external systems. If I can't have more than one memory chip on this bus, then multiple busses is an option.
Here's a scenario that it might make sense: I have two different chips sharing memory, say a PIC and an Ethernet chip. While the Ethernet chip is writing to memory, the bus is busy, so the PIC can't access it, or anything else on that bus. If there were a second bus, say a RTC and one or more sensors, the PIC could access that bus and get info at the same time the Ethernet chip is writing to the memory.
This project is in its early design phases, and I'm trying to keep my options open while I explore the pros and cons.
A part # on the bus enhancement chip(s) would be useful for my research.
Thanks for your input!
bcf