Good day eveyone,

   I've just started working on a quadrature encoder program for a mica2
mote, and I'm having some trouble figuring out how to access the individual
external pins.  It looks like I should be using the Get interface to get the
value of (I think) Port A pins 4&5, which I will sample at a fairly high
rate using one of the timers.

   Two questions:

   (1) How do I wire the external pins so that I can sample them with a Get
(or similar) command? (example code would be helpful here)

   (2) Is it possible to make this more general than just the mica2, or
even atm chips?  I figure I won't be the last guy to do this, so I'd rather
do it right the first time.

Many thanks,

-tba
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to