How to clear Output Compare Timer pin set to mode "Active Level on Match"
Hi,
If you set a timer in Output Compare in Mode "Toggle" and assing a Chanel to a pin of your uC you can make it toggle when CCRx == CNT. That works just fine, as expected.
My question is: when you configure the Mode of that Channel to “Active on Match�?, how can you clear that pin to low again? It keeps allways Active. To clear the pin I tried:
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_1, 0) inside the callback void HAL_TIM_OC_DelayElapsedCallback , and also in the main(), but it does not work. Is there any way?
The same aplies for the mode “Inactive Level on Match�?.
Thanks a lot guys,

