Skip to main content
Abdelmalek BELLOULA
Associate III
June 26, 2017
Question

TIM_Input_Capture_Prescaler effect

  • June 26, 2017
  • 1 reply
  • 474 views
Posted on June 26, 2017 at 22:15

What is the effect of TIM_Input_Capture_Prescaler on the value of the CNT counter in the encoder mode, even if I change this value between TIM_ICPSC_DIV4 or TIM_ICPSC_DIV1 the reading of the CNT is the same

I use nucleo l476

Thank you

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    June 26, 2017
    Posted on June 26, 2017 at 22:30

    My expectation is that it would decimate the count.

    Why don't you set up a simple experiment, either with GPIO or another timer, and prove to yourself what it achieves in encoder mode, and that it handles forward/backward transitions as you would expect.

    I've used them for Input Capture, where I can measure 4 or 8 cycles, rather than one. Not sure I'd use it in Encode mode.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..