Created Sun, 08 Jul 2012 21:08:13 +0000 by maszkows
Sun, 08 Jul 2012 21:08:13 +0000
Hello,
I am new in chipkit and I need you advise. My task is to measure period of signal which is 0-50kHz and i need to measure 4 sources of this signals independently.
I know that PIC32 has 5 timers/counters but so far still don't get possible modes and its usage.
I was thinking that to make easier for processor pulses could be divided before triggering interrupt but i don't know if it is with in capabilities of PIC32. because i would need to divide each signal individually.
can any user advice/explain and share his experience in this subject and may be some useful example for analysis/understand.
br Dan
Mon, 09 Jul 2012 01:18:47 +0000
#include <plib.h>
void setup()
{
Serial.begin(115200);
Serial.println(ReadCoreTimer(),DEC);
}
void loop()
{
}
I would use CoreTimer (40 counts/microsecond) and interrupts to measure frequency.
Sat, 14 Jul 2012 02:20:54 +0000
Ditto,I agree with your opinion, thank you!If anyone is there a better idea, saying that out and share,tkx!
Sat, 14 Jul 2012 22:06:07 +0000
The PONTECH UAV100 (which is mostly based on the Uno32) code has some examples of using change notice interrupts for timing servo pulses. We are timing 8 servo inputs.
https://github.com/pontech/uav100
http://pontech.com/details/138
Jacob
Wed, 18 Jul 2012 02:07:05 +0000
Have you devise a better way to a solution to your problem?
Tue, 27 Aug 2013 11:05:19 +0000
Hello, I am new in chipkit and I need you advise. My task is to measure period of signal which is 0-50kHz and i need to measure 4 sources of this signals independently. I know that PIC32 has 5 timers/counters but so far still don't get possible modes and its usage.
hello friend is your project completed? I am working on similar task so can you provide vital information to help me?Please reply thanks in advance:)