Thanks Alan and MS,

I will try to see this. If anyone tried to do something like this before and
if something went wrong, please let me know!
I knew the msp430 is able to do this...the problem is that the constraint is
always the tinyOS drives for msp430 that do not cope fully with it... would
be great if somebody could give some feedback if they tried already.

Thanks a lot,
Jose

-----Original Message-----
From: Alan Marchiori [mailto:[email protected]] 
Sent: den 15 september 2009 20:13
To: Jose Araujo
Cc: [email protected]
Subject: Re: [Tinyos-help] Reading motor encoder with tmote: Need higher
frequency

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