I need to run an isr on the PWM output in an LP3500. I can't find any example code.
the "rntVal" is coming back as 0 (invalid vector?)
I am using the following lines to set up the isr:
Code:
void isr_PWM(); //ISR function for PWM
void main ()
{
brdInit();
rtnVal = SetVectIntern(0x170, isr_PWM); //assigning interrupt vector to ISR function
.
.
.
}
nodebug root interrupt void isr_PWM() { //ISR function for PWM
flagPWMrun = 1; //use to start an action related to the PWM running
cntPWMcycles++; //increment the PWMcycle counter
}