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.

[参考译文] MSPM0G1505:mspm0g1505计时器

Guru**** 2031750 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1335683/mspm0g1505-mspm0g1505-timer

器件型号:MSPM0G1505

我,比较模式示例,系统集上升和下降模式‘、但它始终可以进入"cC0_UP"且 pwmPeriod_1 =0。

我只想达到两个边沿(上升和下降)、读取计数器值。

void compare_0_INST_IRQHandler (void)
{
开关(DL_TimerG_getPendingInterrupt (COMPARE_0_INST)){
案例 DL_TIMER_IIDX_CC0_UP:
pwmPeriod_0 = DL_TimerG_getCaptureCompareValue (COMPARE_0_INST、DL_TIMER_CC_1_INDEX);//
__BKPT (0);
中断;
案例 DL_TIMER_IIDX_CC0_DN:
pwmPeriod_1 = DL_TimerG_getCaptureCompareValue (COMPARE_0_INST、DL_TIMER_CC_1_INDEX);//
//__BKPT (0);
中断;
默认值:
中断;