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

cross mob
SaGa_4641021
Level 4
Level 4
50 replies posted 100 sign-ins 50 sign-ins

Hi

I am using the SPI as slave with external interrupt source.

The ISR does not return even if I clear the RxBuffer:

Cy_SCB_SPI_ClearRxFifo(sSPI_HW);
Cy_SCB_SPI_ClearRxFifoStatus(sSPI_HW, CY_SCB_SPI_RX_INTR_MASK); //CY_SCB_SPI_RX_NOT_EMPTY);

how should I properly clear the interrupt for the SPI ?

thanks

0 Likes
1 Solution
Hari
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi @SaGa_4641021 

 

Please make sure that you are calling the Cy_SCB_SPI_Interrupt  API inside the user-defined ISR. You can take a look at the PDL documentation or the PSoC 4 Code example that uses the PDL functions for SPI transactions.

 

Best regards, 
Hari

View solution in original post

1 Reply
Hari
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi @SaGa_4641021 

 

Please make sure that you are calling the Cy_SCB_SPI_Interrupt  API inside the user-defined ISR. You can take a look at the PDL documentation or the PSoC 4 Code example that uses the PDL functions for SPI transactions.

 

Best regards, 
Hari