2020-08-25 01:16 PM
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.
2020-09-02 12:44 AM
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