cancel
Showing results for 
Search instead for 
Did you mean: 

In STM32G4 TIM, I am confused: how can software choose bypass Dead-time generator?

Matt.Dash
Associate II

HI experts ,

      May you have a nice day!

 

_20231025105725.png

this figure is in rm0440-STM32G4 Series Reference manual. STM32F4, STM32F3 have the same TIM.

now I have some question:

1. how can I configure the Modules in the red box, such as selecting x0, 01 or 11?

2. I find CC1E and CC1NE can only enable the OC1 and OC1N output. WHY there are two function position(red box) for CC1E and CC1NE bit? is it something wrong?

 

Looking forward to hearing from the experts!

1 ACCEPTED SOLUTION

Accepted Solutions

CC1E and CC1NE are bits in TIMx_CCER, see description of that register in TIM chapter of RM.

The above picture illustrates the following facts:

  • Dead time is generated only if both these bits are set.
  • Also, if CCxNE is set (CH1N is enabled) and CCxE bit is cleared (CH1 is disabled), CH1N is not inverted.

JW

View solution in original post

2 REPLIES 2

CC1E and CC1NE are bits in TIMx_CCER, see description of that register in TIM chapter of RM.

The above picture illustrates the following facts:

  • Dead time is generated only if both these bits are set.
  • Also, if CCxNE is set (CH1N is enabled) and CCxE bit is cleared (CH1 is disabled), CH1N is not inverted.

JW

thank you very much, this realy surprising!