I need to conect a quadrature rotary encoder to an iMX8M-Plus processor (Cortex-M core), so that I can detect the position from an electric motor.
I downloaded the reference manual, and I see that there isn't a dedicated hardware peripheral.
Which is the best peripheral to use for this purpose?
GPT, PWM or GPIOs?
Is there any application note or reference design for this?
Thanks