cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure HRTIM in Up-Down Counting Mode

CWatt.1
Associate

I am using STM32 G474RE with STM32CubeIDE 1.6.1 with HAL configurations. I would like to use HRTIM1: Timer A with TA1 and TA2 enabled. My goal is to control TA1 PWM on the Up counting of Center Aligned counting (up-down counting), and control TA2 PWM on the Down counting of Center Aligned Counting. Is there a way for the HRTIM1 compares to only look at the Up counting or Down counting within the CubeMX configuration built into the IDE?

0693W00000BbapmQAB.jpg0693W00000BbaqVQAR.jpg0693W00000BafcMQAR.jpg0693W00000Bbar4QAB.jpg0693W00000BbarsQAB.jpg 

I am not sure if there is a way to use if the counter is in overflow or underflow in order to achieve this.

0693W00000BbasRQAR.jpg 

0 REPLIES 0