cancel
Showing results for 
Search instead for 
Did you mean: 

When i configure a timer in inverting mode i.e. PWM Generation CH1CH1N than how can i configure the complementary PWM.

Abhishek Gupta
Associate III

I want to generate a pwm in complementary mode such that it has following specs:-

1.Non inverted pwm has to vary from 0 to 90% cycle

2.Inverted pwm reamins in 7% duty cycle

3.Inverted pwm and non inverted pwm does not match at any instant

4.Both wave does not come in a situation that the transition of high will be common

1 REPLY 1
  1. you ensure that by your software setting TIMx_CCR1 within 0-90% of period given by TIMx_ARR
  2. this should be ensured by 1 plus the deadtime being set max. 1.5% of the period
  3. and
  4. - set deadtime in TIMx_BDTR appropriately

Read the Complementary outputs and dead-time insertion sub-chapter of advanced timer chapter in the RM.