This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28388D: Use of eQEP for encoder without QEPB to know motor speed and angle (no direction)

Part Number: TMS320F28388D


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

  • Hi Pedro,

    I recommend you to go through our EQEP module within the C2000 Academy which features detailed module information in easily readable format as well as step-by-step guided lab example to help you better understand the EQEP module. Ex4 and Ex5 are both good to leverage for your application and there should not be a lot that needs to change to implement general speed calculation and revolution counting

    Regards,

    Peter