Question about SPI Master IRQ behaviour

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

cross mob
Anonymous
Not applicable

I work with the SPi Master Version 2.40.

   

First I enable the internal IRQs for RX Fifo not empty and Tx Byte complete with the configuration tool (schematic view) and everything works fine, the IRQs are fired as I exspect it.

   

Then I use the API function SPIM_DisableRxInt() and start the test again, but the Rx IRQ still fires.

   

Then I use the API function SPIM_SetRxInterruptMode(0u) with the parameter 0 to disable the RX IRQs and as exspected the RX IRQ is disabled.

   

So my question is why the API function SPIM_DisableRxInt() does not disable the RX IRQs ?

   

 

   

Thank for your help.

0 Likes
4 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Consider posting your project, makes life easier to troubleshoot.

   

 

   

“File”                                                             Creator

   

“Create Workspace Bundle”

   

 

   

 

   

Regards, Dana.

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

The documentation says:

   

Disable internal Rx interrupt generation.

   

This means its for disabled the component-internal interrupts. This one is used only when the Rx buffer is larger than 4 bytes. This can be a bit misleading since there are actually two kinds of interrupts with the SPI component, and they should not be confused.

0 Likes
Anonymous
Not applicable

Hli,

   

thanks for your answer. So I will work with the Interrupt mode functions.

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

Or you can start and stop the ISR component.

0 Likes