我用了TimerIntClear(),清除不了啊?
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.
Yunkun
该函数是用来清除中断标志位的。
你说的清除定时器的值是指清除counter寄存器的值吗?该寄存器是不可进行write操作的。
谢谢,是这样的!这段话说的很明白了
When the timer is counting down and it reaches the timeout event (0x0), the timer reloads its start
value from the GPTMTnILR and the GPTMTnPR registers on the next cycle. When the timer is
counting up and it reaches the timeout event (the value in the GPTMTnILR and the optional
GPTMTnPR registers), the timer reloads with 0x0.
我以前设置为向上计数了,所以不对。如果向上计数的话,计数范围就是0到load的值~