I want to implement i2c on an multimaster/slave environment. This is the first time I implement i2c myself and I found that the application notes from Microchip doesn't show in a simple manner how to implement this on an 18F, they have a whole bunch of notes for 16F.
I thought to write routines that handle everything and that I would have only a few variables to worry about in the rest of the code.
set the i2caddr, i2cdata, bytes and call send poll the i2cstatus byte for a received byte and handle it
that should be almost everything I want in the main program. The PIC's will be in slave mode unless they're sending
There will (not yet) been asked to read a byte from an S-EEPROM. But there might be a global call (broadcast) to all devices.
Can anybody help me get some could tutorials or (example) code for this
ThanX,
Alexander ThanX