2025-08-20 1:08 AM
Hello,
I am currently working with HSO for motor control and would like to clarify whether DPWM (Discontinuous PWM, 2-Phase PWM) is supported.
In the Observer + PLL method, it seems possible to select discontinuous PWM by setting the modulation flag.
However, I noticed that such an option does not appear to be available in HSO.
Thank you in advance!
Solved! Go to Solution.
2025-08-20 7:42 AM
Hello Wow,
You are absolutely right, the modulation option available in the STO-PLL configuration does not currently appear in the Workbench interface for the HSO case.
This feature is planned to be added in upcoming MCSDK releases.
For testing purposes, it is possible to modify the modulation mode through the register interface using the ST Motor Pilot GUI, as illustrated in the figures below:
If this meets your requirements, you can update the default modulation mode directly in the firmware code (mc_config.c) by modifying:
.modulationMode = FOC_MODULATIONMODE_Centered,
to either:
.modulationMode = FOC_MODULATIONMODE_MinLow,
or
.modulationMode = FOC_MODULATIONMODE_MaxHigh,
for your information the supported modulation modes are:
FOC_MODULATIONMODE_Sine
FOC_MODULATIONMODE_Centered
FOC_MODULATIONMODE_ShiftedCenter
FOC_MODULATIONMODE_MinLow
FOC_MODULATIONMODE_MaxHigh
FOC_MODULATIONMODE_UpDown
Regards,
Fouad
2025-08-20 7:42 AM
Hello Wow,
You are absolutely right, the modulation option available in the STO-PLL configuration does not currently appear in the Workbench interface for the HSO case.
This feature is planned to be added in upcoming MCSDK releases.
For testing purposes, it is possible to modify the modulation mode through the register interface using the ST Motor Pilot GUI, as illustrated in the figures below:
If this meets your requirements, you can update the default modulation mode directly in the firmware code (mc_config.c) by modifying:
.modulationMode = FOC_MODULATIONMODE_Centered,
to either:
.modulationMode = FOC_MODULATIONMODE_MinLow,
or
.modulationMode = FOC_MODULATIONMODE_MaxHigh,
for your information the supported modulation modes are:
FOC_MODULATIONMODE_Sine
FOC_MODULATIONMODE_Centered
FOC_MODULATIONMODE_ShiftedCenter
FOC_MODULATIONMODE_MinLow
FOC_MODULATIONMODE_MaxHigh
FOC_MODULATIONMODE_UpDown
Regards,
Fouad
2025-08-20 6:00 PM
Hello Fouad,
Thank you very much for your detailed and helpful response.
This will be very useful for our ongoing work with HSO.
Thanks again for your support and for sharing such a clear and comprehensive answer!