Hello Friends.
1) Where can i get list of available ports with their name ?
I know there are 5 Digital IO ports out of them 4 are exclusive and
remaining are shared.
What name i shall use while calling them as interface , from
HplMsp430GeneralIOC . ?
ie I want to know there port number.
2) I already implemented a program to check status of 3 switches. The
program was as below.
-------------Component File------------------------------
components HplMsp430GeneralIOC as GIOpin;
App.CB1 -> GIOpin.ADC3;
App.CB2 -> GIOpin.ADC2;
App.CB3 -> GIOpin.SDA;
--------------Module File ----------------------------
uses interface HplMsp430GeneralIO as CB1;
uses interface HplMsp430GeneralIO as CB2;
uses interface HplMsp430GeneralIO as CB3;
if (call CB1.isInput() != TRUE)
call CB1.makeInput();
if (call CB2.isInput() != TRUE)
call CB1.makeInput();
if (call CB3.isInput() != TRUE)
call CB1.makeInput();
breaker_status[0] = call CB1.get();
breaker_status[1] = call CB1.get();
breaker_status[2] = call CB1.get();
>From port diagram i found out that. ADC2 ,ADC3 are exclusive Digital IO port
and STA is shared one . I used these names as i was not knowing port no.
But with this .. only ADC3 is working properly .. (Pin 10 of 10 port
connector)
SDA (pin 8) was coming 1 irrespective of status, ADC2 (Pin 9) was not
getting affected with switch status ..
Can i have any solution ?
--
With Best Regards
Himanshu Barve
M.Tech Electrical Engineering (Power System)
IIT Kharagpur , West Bengal , India
Ph: - +91 9775201181
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help