Hello Gaurav,
In the configuration file you need two components:
components HplMsp430GeneralIOC as Pins, HplMsp430InterruptC as IntPins;
The wiring:
App.Pin27 -> Pines.Port27;
App.IntPin27 -> IntPines.Port27;
The module:
...
uses interface HplMsp430GeneralIO as Pin27;
uses interface HplMsp430Interrupt as IntPin27;
...
event void Boot.booted()
{
call Pin27.makeInput();
call IntPin27.enable();
call IntPin27.edge( FALSE ); //You see the interface. Maybe you need to
change for TRUE
}
async event void IntPin27.fired()
{
call IntPin27.clear();
...
//Your code for the interruption
}
A greeting,
Juan Antonio.
----- Original Message -----
From: gaurav mathur
To: [email protected]
Sent: Sunday, April 20, 2008 9:50 PM
Subject: [Tinyos-help] Help about using HplMsp430InterruptC
Hi,
I am connecting external digital sensor on Tmote Sky. I want to use
HplMsp430InterruptC (tinyos-2.x )interface to connect sensor at port 27 of MSP
430. My code is not generating any interrupt. I need a sample code which uses
HplMsp430InterruptC interface.
Thanks
Gaurav Mathur
D-54 Karakoram Hostel
IIT Delhi
Ph. 9911809832
Email :
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help