I have read some useful articles about interrupts and how we use them to wake up microcontrollers but i would like to know if my projects' approach is right.I have a cordinator(arduino uno) and 2 end devices(Atmega328p) with zigbees each of one and my goal is that cordinator wakes up the end device ,my end device start to take measures such as temp,humidity and then go to sleep. My algorithm goes something like this. 1.Setting end device zigbee's firmware d0 output high 2.Cordinator send RemoteAtCommand to end device zigbee's firmware d0 output low 3.Connect zigbee's end device d0 to digital pin2 atmega328p 4.Wake up atmega328p send measures to cordinator and sleep 5.Cordinator send RemoteAtCommand to end device zigbee's firmware d0 output high
Setting an external interrupt for atmega328p at low that means that the signal from d0 output zigbee must me enough that the controller will understand this interrupt and less than the time that end device needs to take measures and send them?So if this is mandatory its better to send an atcommand at pin2interrupt function at local end device's zigbee d0 to high rather than a remoteatcommand from cordinator?
Thanks in advance