Interfacing an ENDAT Encoder with Stm32
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.
