cgeber24
Active member
The FreqCount library documentation states that for FreqCount.begin (GateInterval), the GateInterval is in milliseconds.
However, on my Teensy 4.1 it appears that this GateInterval is in microseconds - I am trying to specify a 100 millisecond GateInterval, and this code:
FreqCount.begin (100000);
if (FreqCount.available())
CHM_state.tachometer = FreqCount.read();
returns the expected value of 125 for a 1.25KHz input waveform.
Am I missing something here? Thanks!
However, on my Teensy 4.1 it appears that this GateInterval is in microseconds - I am trying to specify a 100 millisecond GateInterval, and this code:
FreqCount.begin (100000);
if (FreqCount.available())
CHM_state.tachometer = FreqCount.read();
returns the expected value of 125 for a 1.25KHz input waveform.
Am I missing something here? Thanks!