Part Number: TMS570LC4357
Tool/software: Code Composer Studio
Hello,
my goal is to trigger an interrupt, if a rising edge occurs on pin30.
In order to do this, I generated a PWM-Signal on pin4 with a frequency of 2,5 kHz first.
After this I used the ECNT-instruction as follows in the HET-file:
ECNT {next=L00, pin=30, event=RISE, reg=B, irq=ON, data=0}
I selected pin30 as input pin for Edge detection, enabled edge 0 interrupt and selected PSL for bit 30.
The main-function is very simple:
int main(void){
hetInit();
edgeEnableNotification(hetRAM1, edge0);
while(1){};
return 0;
}
I added a print-command to the edgeNotification-function implemented in the HL_notification.c-file to test, if a interrupt is caused.
I dont know why, but if I enable the edge notification, there is no PWM-Signal on pin4 and I get no interrupts.
Did I forgot something?
Best regards
Kenan