Skip to main content
Abhishek Gupta
Associate II
August 11, 2018
Question

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

  • August 11, 2018
  • 1 reply
  • 631 views

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

This topic has been closed for replies.

1 reply

waclawek.jan
Super User
August 11, 2018
  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.