LGTMCU / Larduino_HSP

Hardware support package for Larduino
MIT License
138 stars 68 forks source link

SPI Clear Interrupt Flag #13

Open WGR7 opened 3 years ago

WGR7 commented 3 years ago

Hi All,

I'm facing a strange problem. I'm writing some assembly code to LGR8F328P(SSOP20) as a SPI slave. The interface is working well sending some bytes, but when I'm using SPI interrupt I'm not getting a way to clear SPIF in SPSR. Have someone a working code C/Assembly to deal with SPI interrup and clear the SPIF flag?

Regards