Hi,
I am using the f28027 and facing the below problem :
when I enable the ADCINT at group1 and EPWM2_INT at group3
my program runs properly however when I place the ADCINT1 at group 10
I have only one EPWM2_INT interrupt and none ADCINT1 interrupts.
Is that normal ? (I want to place ADCINT at group 10 to give priority to EPWM int)
The EPWM interrupt is configured as :
1) up-down count
2)trigger at first event of TBCTR=TBTRD
The ADCINT interrup is configured as:
1) EOC12 triggers ADCINT1
2) ADCINT is in continues mode
interrupt void adc1_isr(void)
{
AdcRegs.ADCSOCFRC1.all=0x3FFF; //3FFF init SOC0-13
{******code******}
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1; //or PIEACK_GROUP10
}
interrupt void epwm2a_isr(void)
{
EPwm2Regs.ETCLR.bit.SOCA=1; //b1=clears the ETFLG[SOCA]flag bit
EPwm2Regs.ETCLR.bit.INT=1; //b1=clears the ETFL[INT] flag bit and enables further interrupts pulses to be //generated
PieCtrlRegs.PIEACK.all = PIEACK_GROUP3;
}