High resolution encoder and UART
Posted: Mon Mar 09, 2020 2:49 pm
Quick Questions
If I am looking to use a high speed/high resolution dual channel quadrature encoder, (say 1024ppr), this will give me 1024x2x2 = 4096cpr. I am looking to run say a max speed of 10K RPM so I will be getting an interupt every 1.5us (approx).
I will be looking to run the interput to trigger lookup table (8bit values are fine), them change a PWM duty cycle with the updated variable.
1 - How fast would the micro controller need to run in order to relaibly change hte PWM at this frequency?
2 - I am also looking to use the UART hardare interface. Will the UART buffer read the data relaibly enough with the encoder interupt also working? I am guessing I would need to use the UART interupt, and somehow run it on a different timer?
I am looking to use a dsPIC33EP (up to 120Mhz), but can change to something else if I need to.
Thanks
If I am looking to use a high speed/high resolution dual channel quadrature encoder, (say 1024ppr), this will give me 1024x2x2 = 4096cpr. I am looking to run say a max speed of 10K RPM so I will be getting an interupt every 1.5us (approx).
I will be looking to run the interput to trigger lookup table (8bit values are fine), them change a PWM duty cycle with the updated variable.
1 - How fast would the micro controller need to run in order to relaibly change hte PWM at this frequency?
2 - I am also looking to use the UART hardare interface. Will the UART buffer read the data relaibly enough with the encoder interupt also working? I am guessing I would need to use the UART interupt, and somehow run it on a different timer?
I am looking to use a dsPIC33EP (up to 120Mhz), but can change to something else if I need to.
Thanks