Skip to main content
PKied.1
Visitor II
February 17, 2022
Question

Hi, I would like to get some informations about using timer prescaler in encoder mode. Is it allowed practice or it shouldn't be used?

  • February 17, 2022
  • 1 reply
  • 634 views

First of all it works for me just as I wanted: Using prescaler "4" increments CNT every 4 encoder detections. It solves problem of CNT overflow in bigger resolution encoders. I know it could gain errors every motor direction change, but this is not a problem in application.

I found informations that this solution doesn't work for people and shouldn't be used.

What is STM's official position?

This topic has been closed for replies.

1 reply

waclawek.jan
Super User
February 17, 2022

What is STM's official position?

I don't know, I am not ST, but here is my take on this issue.

JW