Part Number: TMS320F280039C
Other Parts Discussed in Thread: C2000WARE
I have a program (for F280039C) that has 3 interrupt routines.
Timer1 interrupt in 100KHz (generating tripzone signals low 10us every 1ms)
PWM1 interrupt in 10KHz (simply set PWM duty cycle)
PWM tripzone interrupt in cycle by cycle
When I run this program, the program only enters tripzone interrupt again and again but doesn't enter the other interrupt routines.
I have writen a similar program in F280049, it works fine.
Here is the code in tripzone interrupt routine:
interrupt void Task_2()
{
IER &= 1;
asm(" nop;");
EINT;
CPU_PIEACK |= 2;
PieCtrlRegs.PIEACK.all = 2;
...
EALLOW;
EPwmRegs.TZCLR.all = 3; // clear TZCLR.CBC and TZCLR.INT
EDIS;
}
Is there a sample program that performs the same fuction?
