Re: I2C slave
A master control using 18F6720 is to send and receive data from up to 12 slave pics
(possibly 18F252) located up to 5 meters from the master using I2C.
Each slave is located in a seperate enclosure and will be opto isolated.
With PBPs I2C Routines your PIC acts as a Master, you would have to write your own Routines to make the PIC act as I2C-Slave
Can the master control have more than one I2C bus?
one for on board accessories RTC,eeprom,etc,
and a second buffered i2c bus to talk to the slave modules.
No Problem,
I use two I2C buses on several of my projects, one "internal" for RTC, EEPROM, etc. and one "external" bus for I2C I/O Expanders (PCF8574)
would RS485 or other be a better choice?
Well, for PIC2PIC communication with more than 2 PICs sharing the same bus
I would prefer RS485 due to it's robustness.
regards
Ralph
_______________________________________________
There are only 10 types of people:
Those who understand binary, and those who don't ...
_______________________________________________
Bookmarks