Using I2C between two processors
Posted: Sun Mar 19, 2017 6:29 am
I have successfully used I2C to communicate between a μP and a RTC or an EEPROM, but I now need to talk between an ESP and a PIC18F2321. Both offer I2C capabilities but I'm a bit baffled about addresses.
In the case of EEPROM or RTC, they have defined addresses which I can use in the I2C setup. However, how do I assign an address to my 'slave' μP? There doesn't seem to be any command in the ESPbasic set to do this, and I can't find anything in the software I am using on the 18F2321 either.
The PIC will be the slave and the ESP the master.
What am I missing here?!
Phil
In the case of EEPROM or RTC, they have defined addresses which I can use in the I2C setup. However, how do I assign an address to my 'slave' μP? There doesn't seem to be any command in the ESPbasic set to do this, and I can't find anything in the software I am using on the 18F2321 either.
The PIC will be the slave and the ESP the master.
What am I missing here?!
Phil