- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.