[Tinyos-help] Tinyos 2.1.x wakeup via external Interrupt.
sallai at isis.vanderbilt.edu
Fri Apr 16 14:01:10 PDT 2010
As far as I recall, only int0-int3 can be used for wakeup, because low
level/edge detection is done asynchronously on the corresponding pins.
Int4-int7, on the other hand, require the IO clock for detecting
level/edge. Since the IO clock is turned off when the mcu goes to
sleep, int4-int7 cannot be used for wakeup.
On Fri, Apr 16, 2010 at 3:36 PM, Javier Almansa Sobrino
<jalso.devel at gmail.com> wrote:
> Hello everybody.
> I have some troubles when I try to execute some task when an external
> interrupt ocurrs into a GPIO pin.
> I'm using IRIS motes with Tinyos 2.1.0 and I've wrote a simple example
> that toggles a led when I change the state of INT4 GPIO pin. I have
> configured a interrupt handler using TEP117 described
> interfaces), configuring PortE 4 as input before enabling INT4 int. I
> can see that the led doesn't toggle when I make INT4 interrupts (the
> booted event only configures the interrupt pin and no other tasks are
> posted). If I post a task A that post itself (and the micro don't go to
> sleep) I can see the led toggles with interrupt in INT4, so I would
> like to know if it's possible to change the sleep mode to achieve this
> I was looking for this in the list history but I didn't find any
> A ver cuanto tarda el burofax:
> "There are two kinds of people:
> The ones who hate Ramoncín, and Ramoncín"
> Javier Almansa Sobrino.
> Ingeniero Técnico en Informática de Sistemas.
> FSF #7032 Member (www.fsf.com)
> Grupo de Investigación ARCo.
> Escuela Superior de Informática. Ciudad Real
> Tel: (+34)926 29 53 00 Ext: 3705
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
More information about the Tinyos-help