This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Reset SPI in response of an external interrupt

Hello,

I'm using Delfino Dual,

I have this problem:

I periodically communicate to an external device via SPI peripheral

and  SPI has to stop immediately and be ready to communicate with another device

when an external interrupt trigger (even if SPI is transmitting/receiving a byte).

To perform this STOP & GO operation I Disable/Enable Clock on SPI and reconfigure it properly (see image below).

the code is

The question is: is there a way to reset SPI peripheral without Disable/Enable clock and reconfigure ?

If I use SPIRST bit in the register SPIFFTX (see page 1914 of SPRUHM8C) SPI behaves in a strange way (see image below).

Can some one explain how this strange behavior ?