cancel
Showing results for 
Search instead for 
Did you mean: 

TIM1 Channel 6: Cannot configure asymmetric modes > 2

Frank_P
Associate

Hello,

I want to configure Channel 6 of TIM1 with asymmetric pwm mode 5 (or 6) but it's not possible.

But RM 31.3.14 says:
"For the asymmetric PWM modes 1 to 6, it is mandatory to have the same PWM mode for both channels."

 

Frank_P_0-1780487623775.png

Best regards,

Frank

 

1 REPLY 1
Juli1
ST Employee

Hello Frank,

It's not possible to configure the channel 6 with the asymmetric PWM mode 3 to 10 (cf. Asymmetric PWM modes table in the RM or TIM_CCMR3.OC6M bit-field description). The only possibilities are asymmetric PWM mode 1 and 2 for the channel 5 and 6.

If for example you want to configure the channel 1 with asymmetric PWM mode 5, the resulting oc1refc signal will be: oc1ref in the up-counting part of the counter and oc6ref in the down-counting part.
The output compare 1 mode will be programmed with the asymmetric PWM mode 5 and the output compare 6 mode must be programmed with the PWM mode 1 as said in the RM.
What you have to understand is that the output compare 1 mode will work as a PWM mode 1 but the output signal will be the result of the asymmetric PWM mode 5. This is what is intended to be explained in the RM with the phrase you mentioned and the PWM mode column of the Asymmetric PWM modes table.

BRs,
Julien