Interrupt for buried component pin

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
RoSh_301801
Level 1
Level 1
First reply posted First question asked Welcome!

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);

0 Likes
1 Reply
EmHo_296241
Level 5
Level 5
10 solutions authored 50 replies posted 25 replies posted

Hi robshaw,

Why exactly are you using slave select for interrupt ? What are trying to achieve ? 

The problem you are facing can be solved by defining one additional pin. You can connect ISR to that pin. Finally in the hardware you can short it with slave select line. So you can define your ISR normally.
 

0 Likes