Using a PIC18F2585.
The project is getting quite bust forthe little PIC, UART, CAN, i2C and SPI (MOSI only). Where possible i tend to use hardware periferals as I assume this is more robust/efficient for the PIC than bitbanging.
The i2C and SPI only share a common clock Pin. The SPI is to a display and currently only uses MOSI and not MISO. Which is good as the I2C Dat uses the pin shared with MISO.
I have 33ohm series resisistors and 3.5K pull-up on the i2C lines. Both i2C and SPI seem happy enough this this. The clock line at rest is pulled High. The display seems fine with this.
However I think I'm getting a clash somewhere, If I initialise the i2C anywhere in the flowcode the SPI display stops.
...I am toggle the SPI CS before and after the i2C. !

Is there a straightforward way to get these two protocols to share the same pins or would it be simplier to just move one of them to Software bitbang version. If so which is best to move? Thanks, J.