- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Consider posting your project, makes life easier to troubleshoot.
“File” Creator
“Create Workspace Bundle”
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hli,
thanks for your answer. So I will work with the Interrupt mode functions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Or you can start and stop the ISR component.