Skip to main content
Visitor II
August 25, 2020
Question

What does the STM8 TIM3_BKRConfig() function do?

  • August 25, 2020
  • 1 reply
  • 1072 views

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.

    This topic has been closed for replies.

    1 reply

    Visitor II
    September 2, 2020

    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