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.

Xint3 is not working in TMS320F28027 like Xint1 or 2

Other Parts Discussed in Thread: TMS320F28027

Hi,

   I am using Xint1, Xint2, Xint3 in my project with TMS320F28027. Xint1 & Xint2 are working without any problem, whereas Xint3 is not working.  All interrupts are initialized the same way. Please help me to find out where I made the mistake.

In main program below three instructions are written.

InitXint3();

PIE_registerPieIntHandler(myPie, PIE_GroupNumber_12, PIE_SubGroupNumber_1, (intVec_t)&xint3_isr);

CPU_enableInt(myCpu, CPU_IntNumber_12);

 

Initialization is done as below.

void InitXint3()

{

 

 

PIE_enableInt(myPie, PIE_GroupNumber_12, PIE_InterruptSource_XINT_3);

 

 

GPIO_setQualification(myGpio, GPIO_Number_5, GPIO_Qual_ASync);

 

 

GPIO_setExtInt(myGpio, GPIO_Number_5, CPU_ExtIntNumber_3);

 

 

PIE_setExtIntPolarity(myPie, CPU_ExtIntNumber_3, PIE_ExtIntPolarity_RisingEdge);

 

 

PIE_enableExtInt(myPie, CPU_ExtIntNumber_3);

}

Interrupt subroutine is written as below.

 

interrupt void xint3_isr(void)

{

        if (d==0)

                     {

                      GPIO_setHigh(myGpio, GPIO_Number_6);

                      d=1;

                      }

             else if (d==1)

                        {

                        GPIO_setLow(myGpio, GPIO_Number_6);

                        d=0;

                        }

 

    // Acknowledge this interrupt to get more from group 12

    PIE_clearInt(myPie, PIE_GroupNumber_12);

}

Regards,

Mahesh K.R.