The problem is when I probe the output of SCLK pin of the PIC, it always operate in mode 2 ie. SCLK is always HIGH unless there's any spi-write happening. I am not able to get any mode 0 ...
Many thanks for your reply RLScott. Apologies for a minor mistake in the previous code. The SPI_SLAVE at the end of the code is suppose to be SPI_MASTER. I was doing some testing earlier and forgot to ...