interrupt

Netmf SPI master to Pic18f4550 slave synchronization problem (C18)

A .NET Micro Framework device (ChipworkX in this case) sends a byte through the SPI interface to a Pic18f. Having PIE1bits.SSPIE enabled the following code is executed on interrrupt: void high_isr (void) { PIE1bits.SSPIE = 0; PIR1bits.SSPIF = 0;// Clear interrupt flag LATDbits.LATD5=1;//enables led for high interr...