2 Replies Latest reply on Feb 27, 2018 1:29 AM by vsrs

    Pin Driven Interrupt Issues.  Is this a valid implementation?

    user_476468517

      I am currently trying to get 8 digital pins to fire their own interrupts when a push button changes state; for now toggling an LED.
      PSOC appears to allow this, but judging by what I have read in some places of the documentation I'm not entirely conviced.  I am using a PSOC-049.

       

      I have included a picture of the schematic and pin assignemnents for reference.

       

      Attachments


      If it is possible, what is wrong with my code?

       

      (outside of any other functions) I have tried using clearpending and using a read function to clear the status?


           CY_ISR_PROTO(Digital_ISR_0_Handler); // Interrupt Prototype Macro

       

           CY_ISR(Digital_ISR_0_Handler)

           {

               //Digital_ISR_0_ClearPending();

               LED_Extern_0_Write(Pin_D_0_Read());

               //digitalPortCheck(); 

           }

       

       

       

      (Called within another function)
      Digital_ISR_0_StartEx(Digital_ISR_0_Handler);