I want to get some data from spi, but spi interrupt doesnt work. I get a message and a pause in proteus instead of a signal on LCD. How to fix this? My code:
void spi_init(){
DDRB = (1<<PINB4);
SPCR |= (1<<SPIE) | (1<<SPE);
}
ISR(SPI_STC_vect)//
{
str_lcd(" ");
setpos(0,0);
str_lcd("SPI"); //signal
setpos(0,0);
}
int main(void)
{
spi_init();
sei();
while(1){}
}