Quote:
|
Originally Posted by Oznog I never understood how to use that Capture function of the CCP for the tachmeter I did. It doesn't reset the TMRx counter, so the captured value only has meaning if you manually compare it against the last captured value. |
Exactly! The timer is free running and every time you have an "event" on your input pin, it stores the current timer value. By comparing it to the time of your last "event" you can extract a lot of useful information. All you have to do is ensure that the time it takes for the timer to overflow is longer then the longest period of the "event" you are capturing otherwise your data will be useless.