Part Number: TMS320F28377S
Hello,
I'm using an F28337 to control a BLDC motor with QEP feedback.
The QEP Hw is configured to Reset the counter on Index Event?
Like the TI exemple IDDK, We have a Timer Interrupt every 100µs.
In it, we check the flag QFLG.IEL
On the fisrt start, the QEP counter cross the Index event at any hasardous value (depending of the motor position at power on)
Then this value is latched to the QPOSILAT and counter should be set to 0 or QPOSMAX.
But on 100µs interrupt, when I get the IEL flag to 1, I get the counter value. I'm expecting this value is near to 0 or QPOSMax (according motor distance run between the Hardware Index event and the 100µs interrupt.)
But it is not the case, the Counter value is always near to the value when Topz is crossed (then near QPOSILAT).
Why, when I get the IEL flag set, the CNT is not yet Reset?