What is the most common problem encountered when communicating with a PIC® MCU SPI module?
The most common problem encountered when using a PIC® MCUs for SPI is an incorrect MODE setting.
Most SPI slaves operate in MODE 0. The PIC MCU SPI peripherals default is MODE 1. Ensure the SPI master is configured to the correct mode to match the slave device.