It seems like you should be able to use the encoder as the clock
source hooked up to a timer (counter mode).  Each encoder count would
increment the counter.

TOS does use one timer (msp430 has timerA & timer B) so you should be
free to use the other for what you want.

This also might be helpful (also I would read the msp430 users guide on timers):
"MSP430 Timers In-Depth"
http://focus.ti.com/lit/ml/slap113/slap113.pdf

On Tue, Sep 15, 2009 at 5:50 AM, Jose Araujo <[email protected]> wrote:
> Dear All,
>
> I want to read an encoder that is connected to a motor rotating at a maximum
> speed of 4000RPM. I made the calculations and for a 4000RPM motor with a
> 1024 CountsPerRevolution encoder resolution I would need 68KHz frequency to
> be able to read the speed of the motor.
> Assuming this is right and that I would have the external 32KHz oscillator
> on my tmote sky, I would like to know if it would be possible to use the
> internal 8MHz oscillator, or if I need to place a higher external frequency
> oscillator. If I would place an external one, what would I need to change in
> terms of software?
>
> Thank you for the help,
> Jose Araujo
>
>
>
> _______________________________________________
> 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

Reply via email to