Hi Daniel,
To change the ActiveLow/High configuration for a PWM signal, the level element of the sctimer_pwm_signal_param_t structure is the one responsible for establishing which value is considered "TRUE" for the generated PWM signal.
The maximum frequency achievable using the PWM SCTIMER functions is around 800kHz, any more than that, and the signal could get really deformed or not be generated as intended.
To be able to change the frequency when the SCTIMER is already running, the timer first has to be stopped using the SCTIMER_StopTimer function, then the new frequency can be established by using the SCTIMER_SetupPwm again, and then starting the timer again, with the SCTIMER_StartTimer function, for example:
SCTIMER_StopTimer(SCT0, kSCTIMER_Counter_L);
SCTIMER_SetupPwm(SCT0, &pwmParam, kSCTIMER_CenterAlignedPwm, 30000U, sctimerClock, &eventNumberOutput4);
SCTIMER_StartTimer(SCT0, kSCTIMER_Counter_L);
Please let me know if you need any more information.
Best regards,
Sebastian