Part Number: TMS320F28034
Hi Expert,
My customer are using F28034 for motor control with QEP, they find an issue that work unexpected.
when the motor run at a certain speed because of inertia at the beginning, power on F28034, QEP QPOSCNT counter did not reset when match with QPOSMAX.
as below waveform of data log by GUI, QPOSCNT increase and reset only when reach 0xFFFF, not reset at QPOSMAX which is 2500.

in customer code, they will initialize QPOSMAX to 0xFFFF first, then after run about 0.125s later, will initialize QPOSMAX again to real value which is 2500, then do the motor control.
Below is the code: initialize QPOSMAX to 0xFFFF first

initialize QPOSMAX to 2500 after run about 0.125s later.

customer have method to fix this issue, for example, they initialize QPOSMAX to a small value like 2, then there will not have the issue.
but can not explain why set QPOSMAX to 0xFFFF at the beginning will have the issue, could you help explain for this?