cancel
Showing results for 
Search instead for 
Did you mean: 

TIM_Input_Capture_Prescaler effect

Abdelmalek BELLOULA
Associate III
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

1 REPLY 1
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 Up vote any posts that you find helpful, it shows what's working..