Hi,
One possible way could be init the CTN register by shifted value when PWM generators are disabled.
The CNT register is writtable in eMIOS GPIO mode. Assuming you are in GPIO mode the steps could be
- Disable Global Prescaler
- Disable Channel Prescaler
- Write initial value at internal counter
- Set A/B register
- Set channel to OPWFMB mode
- Set prescaler ratio
- Enable Channel Prescaler
- Enable Global Prescaler
BR, Petr