Cannot restart Output Compare
I am using output compare with TIM3 on a STM32H755
I am able to use Output Compare to generate a single pulse on pin PC7 using TIM3, Channel 2.
I am using Active Level on Match.
- I call HAL_TIM_OC_Start(&htim3, TIM_CHANNEL_2) once
- After 0.5s, it detects a match (which is good), and my pin drops and stays low (I have negative polarity set).
However, I can find no way to restart the process.
I have tried resetting the timer calling HAL_TIM_OC_Stop(&htim3, TIM_CHANNEL_2) and HAL_TIM_OC_Start(&htim3, TIM_CHANNEL_2), but the pin remains low. I've even tried calling the initialisation code again.
I assume I am missing something fundamental here?
Settings: (see screen shot attached )
Auto-reload preload: Disable
Mode: Active Level on Match
Output Compare Preload: Disable
CH Polarity: Low
