[Tinyos-help] Atmega1281 sleep and active time analysis
Janos Sallai
sallai at isis.vanderbilt.edu
Tue Jun 16 08:02:31 PDT 2009
> I meant that if derectly set the pin in the beginning of each ISR,that would
> cause a problem : if an interrupt happened when the MCU is just active,
> and the pin would be set ,but it was really not a wake up situation.
Assuming that
- Initially, you set the pin.
- You clear the pin when the MCU goes to sleep.
- You set the pin in the beginning of each ISR.
Regarding your question: if an interrupt happened when the MCU is
active, you will observe no change on the pin. It will stay on.
Janos
More information about the Tinyos-help
mailing list