Skip to main content
Visitor II
September 5, 2022
Question

Interfacing an ENDAT Encoder with Stm32

  • September 5, 2022
  • 1 reply
  • 1841 views

Hi,

I am interfacing an ENDAT Encoder with Stm32 microcontroller, Actually my board is controlling motor as well with timer interupts . So I need to ask My code is a function having for and while loops in main().
When Motor control side Interupts occur It prolongs my code execuetion which I dont want because I want to be precise in timing of reading and writing.

So, I want to ask how to overcome this and How can I manage my code if writing it in Interupt callback fucntion or some other solution.

For and while loops used to write and read data from Encoder and for delays as well.

Suggestions are higly appreciated.

 

    This topic has been closed for replies.

    1 reply

    Visitor II
    January 30, 2024

    Really interested to know how you interface with Endat with an stm32. Trying to do the same here but struggling to figure out how. I would really appreciate if you showed me your method or code!

    Visitor II
    March 11, 2025

    Hello. Have you found a solution to this issue? I am working on the same thing but I am having trouble understanding it. Can you please help?