Using an Xmega chip, I want to have periodic interrupts and communicate with an SPI device inside the interrupt procedure. Is this OK? Do the SPI low-level drivers use interrupts?
the XMega SPI doesn't use or change interrupts.
So the SPI can be used within interrupts. But please note that the SPI driver
can not be reentrant, this means only in this interrupt this SPI can be used.
rolf
bgoolsby
Subject:
Re: Is it OK to do SPI inside an interrupt procedure?
I actually want to use 2 SPI devices. One is an SD card on, say, the SPI_C port. Could I still use SPI_D inside the interrupt procedure, since this is on a different port?
Note due to EU Cookie Law This page uses cookies to handle logins and unread markers. If you use this forum you allow that this page is storing cookies on your computer. To remove Cookies from this site just click on "Delete cookies of this forum" on the bottom of the page. You can find more infos in our Cookie Policy.