2024-11-21 05:55 PM
Hey
We have consider following part# for our induction cooker application and we have few queries for PWM duty cycle update as per below
1) STM32F302 and STM32F303
2) STM32G491
Can I update frequency and duty cycle on the fly from software/code written by me, without stopping PWM module? I don't want any gap/delay when I update frequency or duty cycle.
If we can do, than please answer my following queries:
PWM is running and I am updating the frequency or duty cycle on the fly, now I want to clarify the following points?
1)when the newly updated frequency or duty cycle actually applies?
- At immediately when I update it?
- After the end of the current running cycle means applicable with a new cycle?
- Can you please point out the reference related to this in the datasheet or user manual?
- May I have any reference example with images?
My requirement is that it must be applied at the end of the current cycle(applicable with the new cycle, the current cycle must not be disturbed)
Thanks.
Alpesh
2024-11-21 11:20 PM
All of this is thoroughly explained in Reference Manual, Timer chapter, Functional Description. You cannot design anything serious without reading and understanding it. So - start Reading The Fine Docs.