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.

SPI Reset

Hi,

          How to check that SPI is stop to working by using any bit of register.How to reset it.

Regards,

     

  • Hello,

    I'm not sure what you mean by "stop working." Do you have more details?

    To reset, there are a couple things you can do:

    1. There is the SPICCR.SPISWRESET bit that you can clear to cause the SPI operating flags to reset without changing any of the SPI configuration registers. You'll have to change it back to 1 before you can start transmitting data again.
    2. Your other option is using the SOFTPRES8 register in system control. You can set the bit for the SPI you're using to set all the peripheral registers back to their reset states. You'll need to manually clear the bit afterward.

    Thanks,

    Whitney