Measuring tach signal in pic 18f672x

Status
Not open for further replies.

ahmet2004

Member level 3
Joined
Jan 1, 2004
Messages
63
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
383
I need to measure a tach signal. I have it wired to C2, which is a ECCP input. I think I should be able to use that to get counts but I'm not sure how to do that.

I get the impression that I need to set up the ECCP to count mode, reset the timer, come back after a known period of time, and read the counter, then reset the timer and do it again.

Am I on the right track. Is there any demo code of either doing what I described or doing the right thing if I'm not on the right track...
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…