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.
Dear team:
My customer wants to know how to clear the QCTMR register to 0 after UTIME is enabled?
Best regards
Hi,
QCTMR is R/W register, so you can just write "0" to it if you want to clear. Also it clears on SYSRSn (reset).
Best Regards,
Nirav
Though QCTMR is R/W register,write "0" to it doesn't take effect. The QCTMR is still run from the Register monitoring interface. Here is the source code.
EQEP_Test(); //just configure EQEP1,such as configure CTCU and enable EPEQ1
while (1)
{
HWREGH(EQEP1_BASE + EQEP_O_QCTMR) &= 0U;
}
Yes, when the counter is running writes to this register are blocked to prevent unexpected behavior. Can you please explain why you are trying to write to this register in middle of the application running?
Best Regards,
Nirav
A special algorithm may need this action.
When the counter is running ,how to make it stopped, and then write to this register