Part Number: TMS320F28379D
Tool/software:
Hi,
I am writing code to read motor position and speed info from an encoder on F28379D processor.
I would like to verify the functionality of the UPEVNT flag in the QEPSTS register.
I understand that this flag is set by the eQEP peripheral after a configurable number of QCLK events has occured, where a QCLK event means an edge has been detected on either of the encoder channels.
The description for the UPEVNT flag states:
Unit position event flag
Reset type: SYSRSn
0h (R/W) = No unit position event detected
1h (R/W) = Unit position event detected. Write 1 to clear.
This seems to imply that once set the UPEVNT flag will remain set until a 1 is written to this flag by the software to clear it.
However, in my current software, I do not write to this flag, but I can see by the debugger that it is routinely reset.
So my question is, what is resetting this flag?
Thanks.