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 Timer

Part Number: MSPM0G1505

I Use the compare mode example, the sys set rising and falling mode, but it can‘ enter the “cc0_UP”, and thepwmPeriod_1 =0 all the time.

I only want to achive the two edge(rising and falling) ,read the counter value.

void COMPARE_0_INST_IRQHandler(void)
{
switch (DL_TimerG_getPendingInterrupt(COMPARE_0_INST)) {
case DL_TIMER_IIDX_CC0_UP:
pwmPeriod_0 = DL_TimerG_getCaptureCompareValue(COMPARE_0_INST, DL_TIMER_CC_1_INDEX);//
__BKPT(0);
break;
case DL_TIMER_IIDX_CC0_DN:
pwmPeriod_1 = DL_TimerG_getCaptureCompareValue(COMPARE_0_INST, DL_TIMER_CC_1_INDEX);//
// __BKPT(0);
break;
default:
break;
}
}