Good afternoon fellow microcontroller users,
I have a question about how to raise a problem that has arisen when applying the EQEP module to my control loop. I explain you, I have a code where every 200us an interuption is executed (by Timer0) where ADC readings are made and a processing of the signals made by the ADC. The thing is that for this signal processing I need an Encoder signal that I must read by the EQEP module.
I have seen the example "eqep_ex4_freq_cal_interrupt" that fits quite well with the solution I have seen because the speed calculation is made by elapsed time (v=ΔX/T) being T fixed by the UTOUT. The time I had thought was 200us and thus to know how much the QPOSLAT has increased in the UTOUT interval. As I want to have the data of the frequency of the UTOUT before the interruption of Timer0, my question is as a query to know how you would raise it, because I do not want to interfere the two time interruptions.The ISR interrupt has a duration of 70us. The EQEP ISR would have a low time of duration (maybe 5us) that it calculates the frequency and the position respect to QEPI (mechanical degrees of the motor shaft).
