PFA images of registers dump of Pwm.
I have configured PWM1_AH and PWM1_AL to produce output.
But cross over is not happening, please guide me in this.
Sorry forgot to attach image.
PFA images of register dumps.
So what is the problem that you are facing here. How do you decide that crossover is not happening?
I have configured PWM1_AH with 50% duty cycle and I have disabled PWM1_AL. Now I have enabled cross over function. So now cross over should happen i.e 50% duty cycle should occur on PWM1_AL and PWM1_AH should get disabled due to cross over.But it's not happening.
I have one more query. i.e whenever I have configured PWM channels and if I have enabled all channels and global enable bit is on. Later if I am passing new set of dutycycle in application, it will not update with new values of duty cycle. So in application should I disable all Pwm channels and global enable bit and then should i pass new set of duty cycle values?
Thanks in advance.
If you are seeing AL still as disabled, then that is expected behavior because the output disable is applied after crossover is done as I posted the function precedence order in other thread.
Updating of duty cycle should happen on the fly, the new duty value passed will be applied in new duty period. There is no need to disable the PWM in between
Thanks for the useful answer.
Retrieving data ...