Hi,
I want to run the timer in certain parts of the program. It needs to start from zero in every time it runs. I couldnt do it because we cannot write any value to the TRTni registers.
How can I reset 8bit interval timer counter regsiter or channel?
Hello Sar_i,
According to the User's Manual, "To clear the value, set a value for comparison in the TRTCMPni register again. After writing to the TRTCMPni register, the counter value is cleared after two cycles of the source for counting". So you just need to rewrite the TRTCMPni value to reset the timer.
Kind regards,
Sergey
If this response, or one provided by another user, answers your question, please verify the answer. Thank you!
Renesas Engineering Community Moderatorhttps://community.renesas.com/https://academy.renesas.com/https://en-support.renesas.com/knowledgeBase/