Dear Friend,
I'm working with PMSM Motor Control project.
I've edited/added some instructions in HVPM sensored project code, from Control-suit.
I want to convert an incremental Encoder into an absolute Encoder for more than 2 revolution. for that I've to add number of pulses at every revolution (of course, detected by Index Pulse of Encoder).
I've tried with the line of instructions as mentioned below (In BUILDLEVEL4):
if (EQep1Regs.QFLG.bit.IEL==1) // Check the index occurrence
{
counter = counter + Number of total count of encoder;
}
But sometimes, the index flag skip to recognized, hence my motor complete more than N revolution, where N is the number of skipped revolution.
How can I recognized an Index pulse for every revolution?