joepasquariello
Well-known member
Background is I'm working on a project where Teensy 4.1 is plugged into a socket on a custom PCB. Two low-res tachometer signals are input to two FlexPWM channels (pins 6,9) with an instance of FreqMeasureMulti for each. The input circuit on the custom PCB results in slow rise times to the Teensy pins. Originally the rise time was very slow (150 us), and a resistor was changed to reduce rise time to ~15 us. Even with 15-us rise time, a single edge into FlexPWM channel can result in multiple triggers. We have worked around the problem for now by configuring the pins as GPIO (INPUT_PULLUP), which adds both 47K pull-up and a schmitt trigger, and we now get only 1 interrupt per edge, but we don't have the advantage of the input capture in hardware.
Is it possible to configure T4.1 to include the pull-up and schmitt trigger in the input circuit for FlexPWM?
I searched cores\Teensy4 and found that PUE/PUS/HYS flags are used for GPIO inputs as a function of the argument to pinMode(), and always for HardwareSerial RX pins. I see some things in the IOMUX chapters of the processor manual to think it might be possible to enable these features for other inputs.
Is it possible to configure T4.1 to include the pull-up and schmitt trigger in the input circuit for FlexPWM?
I searched cores\Teensy4 and found that PUE/PUS/HYS flags are used for GPIO inputs as a function of the argument to pinMode(), and always for HardwareSerial RX pins. I see some things in the IOMUX chapters of the processor manual to think it might be possible to enable these features for other inputs.