cancel
Showing results for 
Search instead for 
Did you mean: 

PWM duty cycke update

alpesh_ST
Visitor

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

1 REPLY 1
gbm
Lead III

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.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice