Tool/software: Code Composer Studio
How do you implement a jump from a background program to standard interrupt
I find "init_timer_interrupt " , Where is the underlying configuration ? Interupt breakpoints are not shown in the program ?
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.
Tool/software: Code Composer Studio
How do you implement a jump from a background program to standard interrupt
I find "init_timer_interrupt " , Where is the underlying configuration ? Interupt breakpoints are not shown in the program ?
Hi, Your question is not very clear. But from the below code, you can change how long the timer interrupts, and there is no need for breakpoint.
TimerRegs.T16PWM2CMP0DAT.all = 1587;
//Threshold to send the pwm high
TimerRegs.T16PWM2CMP1DAT.all = 0xFFFF;
//Enables compare 0 (reset) interrupt
TimerRegs.T16PWM2CMPCTRL.all = 2;
//PWM counter is running & enables PWM counter reset by compare action on compare 0
TimerRegs.T16PWM2CNTCTRL.all = 0x00C;
Regards,
Sean