Thanks for looking Jim, I only show a small section of code... like I said: I know interrupts work because a timer interrupt works. I just found an appnote that says I should read both SPDR and SPSR to "Clear SPI Interrupt Flag by reading SPSR and SPDR" before sei. I don't think I did that... I thought SPIF in SPSR is clear to start with, and would get cleared again as it enters the ISR... And I didn't think I need to read the data buffer (SPDR) to make interrupts work... I might try tomorrow. Thanks, Cat -----Original Message----- From: Jim Wagner Sent: Wednesday, March 02, 2011 7:44 PM To: AVR-Chat@yahoogroups.com Subject: Re: [AVR-Chat] Can't get interrupt to work in SPI Slave mode. Sorry for the length. On Mar 2, 2011, at 9:39 AM, Cat C wrote: ... > Just the obvious: I don't see a global interrupt enable! Jim Wagner Oregon Research Electronics
Message
Re: [AVR-Chat] Can't get interrupt to work in SPI Slave mode. Sorry for the length.
2011-03-03 by Cat