Got it solved. Since SPI wasn't working in master mode (v4.105) used #use_spi in software mode instead.
I think there's quite a few bugs with in spi in the current version.
Hello, I'm trying to use the PIC18F26J50 to collect "long int" from a dsPIC and send it to PC via USB.
The problem is that when the 18F is set to slave mode SPI, the USB interrupts cause pr ...