I work with atmega16, in both side master and slave.
I want to send a numbr between 100-999 b that entered by keypad to the slave.
Numbers are 16 bit ,and spdr register is 8 bit, so i send first lsb then msb bits. This works well.
But my problem is in slave side:
I enabled interupt spie in slave side so each spdr recived from master tooke as a interupt and goes to ISR function. But becouse of my number i want to take each 16 bit or two byte as a interupt. What should i do???
Please help me. Thanks.