Hi guys, I need to implement a comunication between two avr in different period of time.
The first avr send data to other avr, that after elaborate resend to the first.
I would to implement the comunication with interrupt.
First i think assign at the first avr the role of MASTER and when the second avr need to send its data, wake the master using an external interrupt.
I am mandatory to use external interrupt.
But if i use the SS port as input and connect another port of the second avr, and use all of avr as master?
When a master recieve a low level on SS input port, it became slave.
SCK - SCK
MISO - MISO
MOSI - MOSI
SS - PORTB1
PORTB1 - SS
Can this work? Can i wake up the other avr when i need to send data?
In the future i post the code.
thanks a lot