2019-12-20 04:57 AM
Hello community,
I am having a trouble with the initial state of using Output compare mode. I will explain what I want to do. I want my pin which is assigned to Timer 2 Channel 1 to work in output compare mode. The pin initial state must be RESET all the time. for example, once the timer start counting, I want the pin to be inactive until my timer reach CCR1 and then be active until I shut down my timer, and so on, repeating like this. For me, Only the 1st time the pin state is inactive, then it become active directly as soon as I start my timer. Is there a way to make sure that the initial state is inactive of the timer pin.
Thank you very much for your help.