cancel
Showing results for 
Search instead for 
Did you mean: 

What does the STM8 TIM3_BKRConfig() function do?

PiSquared
Associate II

As a newbie I'm struggling to understand the following line of code:

TIM3_BKRConfig(TIM3_OSSIState_Enable,TIM3_LockLevel_1,TIM3_BreakState_Enable,TIM3_BreakPolarity_High,TIM3_AutomaticOutput_Enable);

Introductory material that I've found on timers/PWM doesn't go this far. What are the different arguments to this function? What is the function seeking to do?

Thanks in advance for any help.

1 REPLY 1
prain
Senior III

It is intended fore "Break Input" function. A pin is assigned to the timer -> when a configurable level was present on the break pin -> the timer outputs (for example pwm outputs) go to a configurable state

In STM8S reference manual, it is explained in section 17.5.8