Skip to main content
Tejashree
Associate III
November 30, 2021
Solved

How to control complementary pwm output ?

I am using 3 Channels to generate 6 pwm using complementary pwm by timer 1.I want to control output of CH1 and CH1N seperatly.

0693W00000GZRJOQA5.pngI tried configuring according to this table:

TIM1->CCER &= (uint16_t) ~TIM_CCER_CC1NE; // Disabling compl pwm

HAL_Delay(15000);

 TIM1->CCER|=TIM_CCER_CC1NE; // Enabling compl pwm

Enabling compl output again does not work.The output is disabled and never get enabled again.

can someone help to configure bits.I am doing something wrong.How to configure bits to enable and disable output over fly ?

This topic has been closed for replies.
Tejashree
TejashreeBest answer
Associate III
November 30, 2021

solved

2 replies

Tejashree
TejashreeAuthorBest answer
Associate III
November 30, 2021

solved

TDK
November 30, 2021

> solved

Perhaps not?

https://community.st.com/s/question/0D53W00001EErHiSAL/complementary-output-is-active-high-when-disabled

The forum works best if you provide your solution to the problem rather than simply say "solved." The forum exists to help others.

"If you feel a post has answered your question, please click ""Accept as Solution""."