Hi, I am a beginner in TinyOS and NesC. I am using a Mica2 mote with the Atmega128 micro-controller and TinyOS 2.x.
My requirement is quite simple - On the arrival of external hardware interrupt, the micro-controller and the radio must switch on, do some work and then the system should go back to sleep ( the lowest power mode possible). The external interrupt is a rising edge generated by an circuit that I have designed. The external interrupt is a DC signal. If necessary, the output of my circuit can be viewed as a digital signal as well. I have no clue which of the pins of the mica2 mote should be used as for external hardware interrupts. Should I be using the GPIO pins? So far, I have understood that that there is a power management module in TinyOS 2.x. But I am not sure how to use it. Moreover, I am not too sure how to write a program which responds to external hardware interrupts. All the literature that I have seen so far states that peripherals can wake up the processor, but unfortunately never show how! A bare minimum skeleton code would be very helpful... Please help! - Suresh _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
