dear friends i have completed the program for SPI communication between two PIC IC's... but i didn't get output... i have attached my coding with Proteus design please help me to complete my code.
You can do like this. Use INT0 pin of slave to detect external interrupt. Let RD0 send a 1 to INT0 of slave. After slave detects 1 at INT0 then it will start sending or receiving data to/from master. implement SPI send or read code of slave inside ISR.
Its my new receiver code.... till i have same problem..., i have searched for many example codes.. but all of them using the inbuilt SPI functions... but i want to do it using C18 Compiler without MicroC Functions.
Instead of spi receiver interrupt you could use external interrupt module .So external interrupt would monitor the chip select pin from master and you could get data in external interrupt service routine .