actionjais 0 Posted December 4, 2012 Share Posted December 4, 2012 I need to measure the speed of a encoder, which creates pulses approx. 4 times per second. I'm not sure whether the timer can do that, or how to code it. The encoder is connected to the MSP, and i get signals in the 'coolterm' for testing purposes, but i need to figure out a way to get the timer to measure the time (ms) between each pulse. Thanks in advance Jais Quote Link to post Share on other sites
CorB 64 Posted December 4, 2012 Share Posted December 4, 2012 There are several ways to "time" signals, you could use the Watchdog timer at its shortest interval of 0.064ms or you can use timer A. It will take some time and some reading but you will see that the MSP is capable of this kind of timing-work. regards CorB A few links: "http://justinstech.org/2010/08/msp430-basic-codingprograming-part-2-wdt/ " "http://www.element14.com/community/groups/msp430-ultra-low-power-microcontrollers/blog/2011/06/08/using-wdt-as-interval-timer" "http://mspsci.blogspot.nl/2010/08/tutorial-09-timers.html" . actionjais 1 Quote Link to post Share on other sites
PentiumPC 119 Posted December 4, 2012 Share Posted December 4, 2012 I have a working Tachometer that measures RPM, 1 pulse per revolution, you can modify to do 4 easily. you can find code, video and example here. http://forum.43oh.com/topic/2916-msp430-launchpad-tachometer/ bluehash 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.