Skip to main content
MSipo
Senior II
November 23, 2022
Solved

Can the timer be used to divide incomming pulses and send the result out?

  • November 23, 2022
  • 1 reply
  • 911 views

Is it possible to configure 1 or more timers to divide incomming pulses on a pin by a factor (for example 8) and send out the result on another pin?

Like this:

0693W00000WJKegQAH.pngThat way I would not need to implement the counter in software.

    This topic has been closed for replies.
    Best answer by Peter BENSCH

    This should be possible with the timers, e.g. with the function Output Compare Toggle. Details can be found in AN4013 or in the respective reference manual, section Output compare mode.

    Regards

    /Peter

    1 reply

    Peter BENSCH
    Peter BENSCHBest answer
    ST Technical Moderator
    November 23, 2022

    This should be possible with the timers, e.g. with the function Output Compare Toggle. Details can be found in AN4013 or in the respective reference manual, section Output compare mode.

    Regards

    /Peter

    In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.