Hi all, Are you familiar with CCS C compiler for PIC? I wrote a simple SPI slave code as below. Somehow, the interrupt happens every two transmitions from the master. The slave only gets interrupted after the second byte is sent from the master IC. The delay time between each byte of data is 1 second. Did I do something wrong? void InitSPI() { setup_spi(SPI_SLAVE | SPI_L_TO_H); enable_interrupts(INT_SSP); enable_interrupts(GLOBAL); } #INT_SSP SPI_ISR() { spiBuf3 = spiBuf2; spiBuf2 = spiBuf1; spiBuf1 = spi_read(0x55); } -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics