2 Replies Latest reply on Mar 19, 2015 10:14 AM by davide.urbano

    How works global signal interrupt ?

    davide.urbano

      Hi at all,

         

      I'm working on PSoC5LP and I'm facing with a problem; I'm trying to get an interrupt from a global signal, setted on CTW:

         

         

      This is my very simple main:

         

      ==================================================

         

      uint8_t ctw_int_flag = 0u;

      int main()
      {

          /* Uncomment this line to enable global interrupts. */
          CyGlobalIntEnable;

          GSCTW_int_Start();       
          for(;;)
          {
              if(ctw_int_flag == 1u)
              {
                  ctw_int_flag = 0;
                  Pin_ctwSig_Write(~Pin_ctwSig_Read());           
              }
              else
              { }
          }
      }

         

      ==================================================

         

      and in the interrupt routine:

         

      CY_ISR(GSCTW_int_Interrupt)
      {
          /*  Place your Interrupt code here. */
          /* `#START GSCTW_int_Interrupt` */
          ctw_int_flag = 1u;
          /* `#END` */
      }

         

      Even if it's all very simple, the interrupt doesn't raising and I really do not know why...please, colud anyone help me ?

         

      Regards