[Tinyos-help] capture a digital output from 6-pin expansion connector

Michael Schippling schip at santafe.edu
Mon Jun 8 09:15:07 PDT 2009


I'm a little confused. I think you want to use a pin in output mode
to switch something else on and off? Or do you want to "capture"
(read) the value of an input pin?

In either case, for low speeds and resolutions -- say 10ms -- GeneralIO
with a Timer is probably the easy solution. Look at the existing code
for usage examples. You basically config the pin to output and then
toggle it on and off. Just make sure no other bit of your program is
trying to use it.

IF you need faster, or don't want to do everything in software, look
into the Capture/Compare/PWM features of the controller chip itself.
I believe these have not been implemented in TOS, and I've only done
a bit for the micas, but it shouldn't be too hard.

MS

Paola Di Palma wrote:
> Hy,
> I need help. I want to capture a digital output from 6-pin expansion
> connector (U28) of my Telosb (with MSP430 f1611 processor). I would
> like this digital signal had a duty cycle set by me: I want to expose
> it to an hardware component
> to control the switching on and the switching off of an electronic circuit. 	
> Is this possible?
> 	
> I would like to know what should be considered. How do I program the
> telosb? Can be useful interfaces
> tos.chips.msp430.pins.HplMsp430GeneralIO? if yes, how? How can I
> determine via software the output pin?
> 
> Thanks for the help and.
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


More information about the Tinyos-help mailing list