Jump to content
43oh

Recommended Posts

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

Link to post
Share on other sites

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"

 

.

 

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...