looking for the best way to measure freq DSPIC33EP512MU814
Posted: Tue Aug 26, 2014 4:42 pm
hi
i start a little project with DSPIC33EP512MU814.
and I'm looking for the best way to measure frequency
i tried to use the interrupt on setup_capture and count every rise edge
in one second.
and my results are not so good ...
the freq that i try to measure is between 0hz - 400hz
You would have to convert the method used in these threads
to use PCD-compatible functions. I can't easily do it because
I don't have the PCD compiler.
Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
Posted: Wed Aug 27, 2014 7:38 am
For low frequencies you are usually better off measuring the period of one (or several) cycles, then doing the maths.
I showed a method for PIC16-18s some time ago which worked well for high frequencies.
The process was very portable, maybe you could modify it.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum