Closed FrankBoesing closed 5 years ago
A fix is to set:
FTM1_CNT =FTM1_CNT;
FTM1_MOD = pwmPeriod;
FTM1_SC = FTM_SC_CLKS(1) | clockSelectBits | (sc & FTM_SC_TOIE);
in setPeriod() See: https://forum.pjrc.com/threads/34936-TimerOne-setPeriod-not-working-inside-ISR-function-Teensy-3-2
A fix is to set:
FTM1_CNT =FTM1_CNT;
FTM1_MOD = pwmPeriod;
FTM1_SC = FTM_SC_CLKS(1) | clockSelectBits | (sc & FTM_SC_TOIE);
in setPeriod() See: https://forum.pjrc.com/threads/34936-TimerOne-setPeriod-not-working-inside-ISR-function-Teensy-3-2