Are you using Oshonsoft Basic functions SpiSend, SpiReceive in the master?
You could make a simple test to check the communication between master and slave.
In the slave disable interrupts, setup the slave and make a loop that blinks a led.
Check the pins and their directions, master SDO is output and goes to slave SDI input, master clock is output and goes to slave clock input... etc.
The master program:
Code:
SPICSOn
for a=1 to 10
SPISend a
SPIReceive b
Hserout #b
next a
You should get 1,2...,10 in the terminal.