Counts signal transitions on p30(CAP2.0) or p29(CAP2.1) for LPC1768 target. Can detecte rising, falling or both signal edge. Return the signal edge count during a period in seconds. In theory (Shannon's theorem) input signal frequency can up to 48 MHz with 96 MHz CCLK. But only tested with frequencys up to 20 MHz and it work.
Files at revision 5:b5e68cd91f09
Name | Size | Actions |
---|---|---|
[up] | ||
lib_ClockCounter.cpp | 5465 | Revisions Annotate |
lib_ClockCounter.h | 2563 | Revisions Annotate |