GPTimer定时器记录的上升沿和下降沿的计数值存放的在哪个寄存器?
是否是存放在GPT:TnR寄存器中?
每个上升沿或下降沿都会产生一次中断吗?
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.
GPTimer定时器记录的上升沿和下降沿的计数值存放的在哪个寄存器?
是否是存放在GPT:TnR寄存器中?
每个上升沿或下降沿都会产生一次中断吗?
如果我使用的是TimerB 是否我可以像Ti中的GPTimerCC26XX.c中一样
/*!
* @brief Retrieve the current value of timer
* This returns the value of the timer in all modes except for
* input edge count and input edge time mode.
* In edge count mode, this register contains the number of edges that
* have occurred. In input edge time, this register contains the
* timer value at which the last edge event took place.
* In 16-bit modes the function will return a 24-bit word where the
* 8-bit prescaler value is included.
*/
GPTimerCC26XX_Value GPTimerCC26XX_getValue(GPTimerCC26XX_Handle handle)
{
return GPTimerCC26XX_getTimerValue(handle, GPT_O_TAR);
}