cancel
Showing results for 
Search instead for 
Did you mean: 

How generate Douple Pulse PWM for SiC MOSFET using STM32G474RET6?

Arul_Surya
Associate II
 
5 REPLIES 5

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

Any link to explanatory text, timing diagram, etc?

JW

Arul_Surya_0-1726125924313.png

 

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

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

HRTIM is able to generate double pulse, there are 4 CMP units per channel. Search AP Note from ST devoted programming arbitrary waveform using HRTIM