Quantcast
Channel: 蓝牙论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 7485

CC2650 Timer定时器问题

$
0
0

各位大牛好,我在调试CC2650timer定时器时,做如下配置:

Power_setDependency(PowerCC26XX_PERIPH_GPT0);
Power_setConstraint(PowerCC26XX_SB_DISALLOW);
TimerConfigure(GPT0_BASE, TIMER_CFG_SPLIT_PAIR | TIMER_CFG_A_PERIODIC);
TimerLoadSet(GPT0_BASE, TIMER_A, TIMER_LOADSET);

TimerIntEnable(GPT0_BASE, TIMER_TIMA_TIMEOUT);
TimerIntRegister(GPT0_BASE, TIMER_A, &timer_handler);

当启动定时器时,能够正常产生中断,但是我在中断中翻转IO看波形,产生中断的时间不对,而且,时间不是确定的一个时间

而是两个时间交替。请大牛帮我看下这个配置有什么不对的地方吗?


Viewing all articles
Browse latest Browse all 7485

Trending Articles