cancel
Showing results for 
Search instead for 
Did you mean: 

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().

SRehm.2
Associate

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.

1 REPLY 1
azaimis
Associate

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!