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.

TMS570LC4357: Edge interrupt doesn't occur

Part Number: TMS570LC4357

Hello,

My Problem: I get no interrupts if a rising edge occurs.

I have generated a PWM-signal on pin 4 (2.5 kHz) and have configured pin 30 as an edge counter via HET IDE:

L00 CNT { reg=A,max=374,data=0};
L01 MCMP {en_pin_action=ON, pin=4, order=REG_GE_DATA, action= PULSELO, reg=A, data=0xBB, hr_data=0x40}
L02 ECNT { next = L00 , pin=30 , event = RISE , reg= B, irq=ON , data =0}

Pin 4 and Pin 30 are connected.

I have successfully measured the PWM-signal and have printed the value of the edge counter in a while loop, which increments.

I have configured Edge0 in HCG as follows:

My main-function:

int main(void)
{
/* USER CODE BEGIN (3) */
    volatile uint32 EdgeCounter=0;
   //_enable_IRQ();
   hetInit();
   edgeEnableNotification(hetREG1, edge0);

   while(1){
       EdgeCounter=edgeGetCounter(hetRAM1, 0);
       printf("Edges:%d\n",EdgeCounter);
   };
/* USER CODE END */

    return 0;
}

I set breakpoints in the edgeNotification- and hetNotification-functions, but my program never lands there.

Did i forget something to configure in HCG?

Best regards

Kenan