cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable a PWM-Timer-Channel in STM32 mat/target for blockcommutation

RKell.3
Associate

Hello,

i am currently working on a sensorless motor control. Therefor I am using STM32 mat/target for generating code from simulink.

My goal is to use field oriented control in the low rpm range and switch to blockcommutation for higher revolutions.

Now I am wondering how to disable the PWM Channels for the time I would like to analyse my back emf on the passiv phase. I cannot find a checkbox to enable an input port for enable disable channels. Because I am currently using the CHx_N signal and dead time it is not possible to set the duty to zero. Of course it is possible to write the code by myself, but would love to automate it.

How am I supposed to realize this?

Thanks a lot!

1 REPLY 1
Cristiana SCARAMEL
ST Employee

Hi @RKell.3​ and welcome to the ST Community.

Since your question is about STM32 tool, I moved your thread from the topic Motor Control Hardware to "STM32 Tools".