Skip to main content
somkid
Associate II
November 18, 2022
Question

timer How to detect a signal I useSTM32CubeMX 6.6.1 and STM32CubeIDE 1.8.0 I'm using a microcontroller.stm32f103c6 I need a way to capture the signal. to calculate the speed of rotation Can someone give me some advice, thanks.

  • November 18, 2022
  • 1 reply
  • 1758 views

..

    This topic has been closed for replies.

    1 reply

    AScha.3
    Super User
    November 18, 2022

    timer can capture full hi/lo pulse , just see my IR-receiver input:

    0693W00000WIqQPQA1.pngi choose the timer5 clk+ prescaler, to get 1us tics; so on timer5 INT i get us count for hi and lo time of every incoming pulse.

    perfect... right?

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    somkid
    somkidAuthor
    Associate II
    November 18, 2022

    What microcode do you use?

    Piranha
    Principal III
    November 18, 2022

    https://en.wikipedia.org/wiki/Microcode

    Totally unrelated...

    The advice was given. If you do not understand how timers work, open the reference manual and start learning!