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;
}
}