请教一下, 我用cc3200 timer_cc 这个例子, 在pin4 接入了 红外接收模块, 但都不进中断, 我不知道为什么?
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.
通过Timer CC (Pin04)捕获的程序详见附件,我通过CC3200产生的PWM引脚用Timer的捕获引脚进行脉宽的测试,主程序如下(详见附件):
MAP_TimerIntDisable(TIMERA2_BASE,TIMER_A); //禁止定时器 临界代码保护
Report("Period: %03dms",(65536 + g_ulSamples[0]-g_ulSamples[2])/400);
Report("Width: %03dms",(65536 + g_ulSamples[0]-g_ulSamples[1])/400);
g_ulFreq=0;
MAP_UtilsDelay(80000000/5);
MAP_TimerIntEnable(TIMERA2_BASE,TIMER_A);