cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to use Hall sensor mode(x3 CH) and PWM function(x1 CH) at the same time in the timer?

monbot
Associate

I use TIM2 in Hall Sensor Mode and
I want to use the unused channel 4 for PWM generation.
There are no conflicts in CubeMX configuration.

Are there any problems with the actual operation?

monbot_0-1694137139766.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Issamos
Lead II

Hello @monbot 

all Channels are independent. Then, you can use the  Ch4 for PWM generation.

Best regards.

II

View solution in original post

2 REPLIES 2
Issamos
Lead II

Hello @monbot 

all Channels are independent. Then, you can use the  Ch4 for PWM generation.

Best regards.

II

All 4 channels of timer are mutually independent, except they work out of the same single counter. So, as long as you don't change anything in the counter's setup (including prescaler and source of clock/slave-mode controller setup), the fourth channel works as intended regardless of the other 3 channel's setup.

JW