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.

TMS320F28055: Interrupts are not always triggered when it supposed to

Part Number: TMS320F28055

Hi TI members,

  I am sending in same command to trigger my interrupts ISR. But my interrupts ISR is not always triggered.

I have to send 3-4 times until my interrupts ISR is able to capture.

I want my interrupt ISR be able to capture the falling edge every time I send in the command. 

How can I do so? What can cause my problem? Please help, thank you!

  • Here is my setting for my interrupts:

       EALLOW;	
       PieVectTable.XINT3 = &xint3CS_isr; 
       EDIS;
      
       EALLOW;
       PieCtrlRegs.PIEIER12.bit.INTx1 = 1;         // Enable PIE Group 12 INT1
       IER |= M_INT12;                            // Enable CPU INT12
       EINT;        
    
    
      EALLOW;
    
       //GPIO10 is input XINT3 - CS
       GpioCtrlRegs.GPAPUD.bit.GPIO10 = 0;        // Enable pullup on GPIO10
       GpioCtrlRegs.GPAMUX1.bit.GPIO10 = 0;       // GPIO10
       GpioCtrlRegs.GPAQSEL1.bit.GPIO10 = 3; 	  // asynch input
    
       EDIS;
    
    // GPIO10 is XINT3
       EALLOW;
       GpioIntRegs.GPIOXINT3SEL.bit.GPIOSEL = 10;  // XINT3 is GPIO10
       EDIS;
    
    // Configure XINT3
       XIntruptRegs.XINT3CR.bit.POLARITY = 0;      // Falling edge interrupt
    
    // Enable XINT3
       XIntruptRegs.XINT3CR.bit.ENABLE = 1;        // Enable XINT3
    
    interrupt void xint3CS_isr(void)
    {
    	Xint3CS_Count++;
    	PieCtrlRegs.PIEACK.all = PIEACK_GROUP12;
    }

  • Hi Qiang,

    Have you measured the pulse width of the GPIO signal you are driving from outside. Is this same all the time (in working and non working case)?

    Regards,

    Vivek Singh

  • From the oscilloscope diagram, it has the same pulse width every time when it received
  • Hi Vivek,
    Problem solved, something wrong with my external signal source. Thanks for your help!