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
Betreff:
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?