2021-06-21 11:22 AM
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?
I am not sure if there is a way to use if the counter is in overflow or underflow in order to achieve this.