Hi,
Trying to get this to work but having trouble.
I'm hoping to use pin 2 on teensy 3.2 (just next to the TX and RX pins), and have a good square wave input (see waveform pic attached, lower trace). The upper trace is a signal earlier in the circuit which is input to a comparator, then to a dual D flip flop for divide by 2 action. The output of the D flipflop in attached to pin 2 through 100 ohm resistor.
it would seem that the code doesn't see the input waveform, because FreqMeasure.available never comes true. So, nothing else happens.
I note that the example shows square wave input on teensy 2.0, pin 10. I was hoping the method could be extrapolated to a different digital IO if properly configured.
I don't see there is anything to do in the ISR, but it is there as a placeholder.
thanks in advance for your guidance.
tim
Trying to get this to work but having trouble.
I'm hoping to use pin 2 on teensy 3.2 (just next to the TX and RX pins), and have a good square wave input (see waveform pic attached, lower trace). The upper trace is a signal earlier in the circuit which is input to a comparator, then to a dual D flip flop for divide by 2 action. The output of the D flipflop in attached to pin 2 through 100 ohm resistor.
it would seem that the code doesn't see the input waveform, because FreqMeasure.available never comes true. So, nothing else happens.
I note that the example shows square wave input on teensy 2.0, pin 10. I was hoping the method could be extrapolated to a different digital IO if properly configured.
I don't see there is anything to do in the ISR, but it is there as a placeholder.
thanks in advance for your guidance.
tim