Hello,
I have the module configured on C6748 to generate PWM with variable frequency and duty cycle, from 10Hz to 1MHz, however changing frequencies we noticed some glitches on the scope, like for a short time it jumps to an intermediary frequency and then to the requested frequency. TBCTL has been configured to use shadow mode and I am writing into TBPRD and CMPA registers of EHRPWM_0 to update the new frequency and duty cycle and then reconfigure TBCTL with new CLKDIV and HSPCLKDIV, however I don't think TBCTL changing is shadowed, am I correct?
What would be the procedure to adjust any frequency for PWM on the fly, are there any examples available?
Best regards,
David.