using mikroC pro 2.15 while helping out in the forum it has recently come to my attention that the SPI CLK signal does not appear to be operating as an input during slave configuration.
this would also look to be the case with mikroC 8.2.
I have always used my own SPI library up until now hence never having seen the issue previously.
could you please check the clock is being set to input while the pic is in slave mode.
setting used
Code: Select all
SPI1_Init_Advanced(_SPI_SLAVE_SS_ENABLE, _SPI_DATA_SAMPLE_MIDDLE, _SPI_CLK_IDLE_LOW, _SPI_LOW_2_HIGH);