Hi,

I have a problem related to external interrupt.
I have a sensor, which has one interrupt pin. I configured the sensor to 
generate an interrupt when some even happens.
For the hardwire wiring, I did two experiments: one is I wired the sensor INT 
pin to micaz PE4/INT5; another PE5/INT5.
The following is the tinyos code:

In SensorAppC, I have
        SensorC.IO4 -> HplAtm128GeneralIOC.PortE4;
        SensorC.SensorINT4-> HplAtm128InterruptC.Int4;  

        SensorC.IO5 -> HplAtm128GeneralIOC.PortE5;
        SensorC.SensorINT5-> HplAtm128InterruptC.Int5;  

In SensorC, I have

module SensorC @safe() {
        uses {
                    ...
        interface HplAtm128Interrupt as SensorINT4;
        interface GeneralIO as IO4;
        interface HplAtm128Interrupt as SensorINT5;
        interface GeneralIO as IO5;
                    ...

        event void Boot.booted() {

                call IO4.makeInput();
                call IO4.set();
                call SensorINT4.disable();
                call SensorINT4.clear();
                call SensorINT4.edge(TRUE);
                call SensorINT4.enable();
                call IO5.makeInput();
                call IO5.set();
                call SensorINT5.disable();
                call SensorINT5.clear();
                call SensorINT5.edge(TRUE);
                call SensorINT5.enable();
                   ...
My problem is never SensorINT4.fired trigger, but SensorINT5.fired always 
trigger.

Can any expert give some comments?

Institute for Infocomm Research disclaimer:  "This email is confidential and 
may be privileged. If you are not the intended recipient, please delete it and 
notify us immediately. Please do not copy or use it for any purpose, or 
disclose its contents to any other person. Thank you."

_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to