cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 output compare toggle - how to set initial state

kilian
Associate
Posted on December 02, 2014 at 08:29

Hello !

I am struggling to set the initial state from which the toggle mode of output compare (STM32F405, TIM1) starts. I tried to set OCM1 mode to '101 : force active level', '100 : force inactive level' respectively, first and then change to '011 : toggle' afterwards. But this has not the effect intended. For this reason my question: how could the intital state of the toggle mode be set? I very appreciate any help on this issue - many thanks in advance.

Best regards

Kilian
2 REPLIES 2
Posted on December 02, 2014 at 08:36

> I tried to set OCM1 mode to '101 : force active level', '100 : force inactive level' respectively, first and then change to '011 : toggle' afterwards.

> But this has not the effect intended.

And what was the observed behaviour?

JW

kilian
Associate
Posted on December 02, 2014 at 22:40

Thanks for the request for clarification - I double checked the behaviour and figured out that it is indeed as expected, i.e. the inital state can be set via ''force level'' settings. Please apologize the wrong statement in the original post.

Best regards

Kilian