I would like to have an interrupt which triggers when an SPI transfer is complete. The code I have written keeps triggering the ISR preventing the code from proceeding. I would appreciate it if you could take a look at the code or give me some pointers.