Frequency Counter Library. Only for mbed LPC1768, mbed LPC1114FN28, Nucleo-F401 and Nucleo-F411. No way to change pin assign.
Dependents: Frequency_Counter Frequency_wind_speed_measure Frequency_counter_wind_speed
Please refer following page.
http://developer.mbed.org/users/kenjiArai/notebook/simple-frequency-counter/
Diff: freq_counter.h
- Revision:
- 2:54c05b0a117a
- Parent:
- 1:fd2e1c853ab6
- Child:
- 3:61bea8bfe404
diff -r fd2e1c853ab6 -r 54c05b0a117a freq_counter.h --- a/freq_counter.h Tue Oct 21 03:44:46 2014 +0000 +++ b/freq_counter.h Tue Oct 21 11:19:54 2014 +0000 @@ -22,14 +22,17 @@ /** Frequency Counter * - * CAUTION: Direct access to the CPU Timer module!! - * No way to change pin assign and timer module + * CAUTION: Direct access to the CPU Timer module!! \\ + * No way to change pin assign and timer module, \\ + * mbed LPC1768 -> p30, \\ + * Nucleo F401RE & Nucleo F411RE -> PA_0/A0 \\ * * @code * #include "mbed.h" * #include "freq_counter.h" * - * F_COUNTER fc(p30); + * F_COUNTER fc(p30); // for LPC1768 + * //F_COUNTER fc(PA_0); // for F401 & F411 * * int main() { * uint32_t frequency = 0;