I think you can wire your signal to any of the ATMEGA interrupt input pins,
looks like Port E, bits 5-7. See my pinout cheatsheat:
http://www.etantdonnes.com/Motes/ATMEGApins.txt
For programming advice search for
TOSH_INTERRUPT()
although that is the T1 construct and is probably totally different in T2.
MS
Suresh Mathew wrote:
> 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
--
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help