Skip to main content
Associate
September 12, 2024
Question

How generate Douple Pulse PWM for SiC MOSFET using STM32G474RET6?

..

This topic has been closed for replies.

5 replies

waclawek.jan
Super User
September 12, 2024

What is "Douple (Double?) Pulse PWM"?

Any link to explanatory text, timing diagram, etc?

JW

Associate
September 12, 2024

Arul_Surya_0-1726125924313.png

 

Associate
September 12, 2024

A double pulse test involves generating two consecutive PWM pulses with a defined time interval.

waclawek.jan
Super User
September 12, 2024

Repeatedly, like this?

waclawekjan_0-1726127085511.png

One way to generate such waveform involves using DMA to change the period+duty. While examples generate complex waveforms from many PWM periods to generate e.g. a sinewave, you'd need only two PWM periods, but DMA would need to change both period (TIMx_ARR) and duty (TIMx_CCR) in one cycle, using the TIMx_DMAR/DCR mechanism (in Cube it's called "burst"). This example may be a good point to start; you'd need to modify it so that the DMA is circular, and that there are two sets of values in the array from which DMA transfers them to TIMx registers.

JW