Thanks for your reply.
I had hoped there was another solution but looking at the way the CCS compiler references the initial code I can see there is not. I know exactly what you are saying regarding ...
No-one answered my question I posed before Christmas about changing between I2C Master and Slave modes at runtime.
Is it impossible, or does nobody know the answer?
I can't bel ...
I am using a PIC18F452 and for most of the time I want the PIC to act as a master on the i2c bus. Occassionally it needs to be a slave.
I initialise the i2c port with:
#use i2c(MASTER, sda=P ...