The Teensy4.0 has far more timers than the 3.6 which enables some neat use cases I'm pursuing. However, I need to be able to resync the PWM phase (with respect to an external source) by restarting the timers for each pin. I've seen one other thread addressing this for 3.x. Based on that thread it seems at least one way to do this is to call pinmode with the same settings that pin already had and then call analogwrite again to reset the timer for that pin. Can anyone confirm how this will behave?

I need to be able to sync as many pins as possible as closely as possible, so if there are ways to directly manipulate registers etc to speed the process it would help out a lot. Are there reliable ways to do this easily? Any chance a bank of timers can be reset with one command?