Good afternoon,
I want to implement the following functionality with a TMS320F28388D microcontroller. I want it to do encoder readings with the eQEP module. I have read the part of the TRM that do the eQEP but it is not very clear to me how to use it.
The encoder I am going to use has QEPA and QEPB signal and the QEPI, however, we don't care about the motor direction so the QEPB signal would be set to pull-up or pull-down (we would not connect the QEPB of the encoder). What we want to do is to use QEPA to know the relative position of the motor (the angle) and the index to know when a motor revolution occurs. I don't know how to design the eQEP parameters of frequency to have a enough resolution of the speed of the motor. This motor is of 6 poles (3 pair poles) of 1000rpm. I would like to have accurate measure of speed.
The only thing we are interested in from the encoder is the shaft position and the angular velocity.
Reading the TRM I have seen that the Timer Unit Base could be used so that every X time it reads how much QEPA has varied and calculates the speed. I have read the ex4._frec_cal and it is not very clear to me the interrupt routine INT_myEQEP0_ISR() and if I wanted to know the angle that the motor has in each instant in which it enters the interrupt, how would it be done?
I expect you coud help me, I'am a rookie of microprocessors and I takes me time to understand some issues. I would appreciate if you could facilitate me too a document that could clarify how to design the eQEP more easily than the TRM.
Thank you in advance,
Pedro