器件型号:MSP432P401R
G'Day、
Timer32模块偶尔会以非常短的顺序(相隔几十微秒)提供两个中断、这有什么原因吗?
我使用的是 SimpleLink 1.4 (尚未升级到 v1.6)、我按照下面的代码片段所述设置 Timer32模块(我基本上将其设置为每10mSec 给我一次中断)
uint32_t tickCnt = 0; void timer32_hwi (uintptr_t arg) { map_Timer32_clearInterruptFlag (timer_1_base); tickCnt++; } void timer32_init (void) { //为 Timer32模块设置 HWI hwi_handle ;t2 part_params (nwi_params = 0xt2);parhnwi_params = 0xt2;params (params) timer32_hwi、¶ms、NULL); //设置 Timer32模块-不知道用于 Timer32的 SimpleLink 驱动程序、因此请使用 driverlib map_Timer32_haltTimer (timer_1_base); map_Timer32_initModule (timer_1_base、TIMER32_calpreser_1、TIMER32_32位、TIMER32位、TIMER32位、TIMER32位周期模式);TIMER32位 MAP_Timer32_setCount (timer_1_base、480000); MAP_Timer32_clearInterruptFlag (timer_1_base); MAP_Timer32_enableInterrupt (timer_1_base); MAP_Timer32_startTimer (timer_1_base、 false); tickCnt = 0; }

