1 Reply Latest reply on Feb 14, 2017 4:30 AM by user_411084576

    Interrupt for buried component pin

    robert.shaw

      For my design i'm using a SCB SPI slave component and need to generate a interrupt from slave select. This pin is hidden from the top level schematic so i cant simply place a ISR component on this I/O line. 

      I need the steps for enabling the interrupt at the GPIO pin and all other steps up to the ISR service function. I have so far determined these steps but dont have the complete solution: 

      Create ISR prototype 
           CY_ISR_PROTO(SPIS_nSS_Isr); 
      Create function 
           CY_ISR(SPIS_nSS_Isr) 
      Link function to interrupt vector??? I believe port 5 is connected to IRQ5 
          CyIntSetSysVector(5,SPIS_nSS_Isr); 

      Enable interrupt vector??? 

      Enable Pin interrupt 
           SPI_SLAVE_ss_s_SetInterruptMode(SPI_SLAVE_ss_s_INTR_ALL,SPI_SLAVE_ss_s_INTR_RISING);