PaulStoffregen / FreqMeasure

Measures the elapsed time during each cycle of an input frequency.
http://www.pjrc.com/teensy/td_libs_FreqMeasure.html
69 stars 31 forks source link

possible issue in capture_read() for Teensy LC #14

Closed manitou48 closed 6 years ago

manitou48 commented 6 years ago

By inspection only, i wonder if capture_read() in FreqMeasureCapture.h needs 2 more steps

FTM1_C1SC = 0; delayMicroseconds(1);

similar discussion https://forum.pjrc.com/threads/48812-FreqMeasure-frequencies-off-by-2X

manitou48 commented 6 years ago

Never mind. capture_read() on LC is fine. setting CHF bit on teensy LC does not require disable/delay