cancel
Showing results for 
Search instead for 
Did you mean: 

How to control complementary pwm output ?

Tejashree
Associate III

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 ?

1 ACCEPTED SOLUTION

Accepted Solutions
Tejashree
Associate III
2 REPLIES 2
Tejashree
Associate III

solved

TDK
Guru

> 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".