Hi everyone,
I have a program running on an F28035, acting as an SPI slave (the word length is 16 bits).
I would like to erase the SPIDAT register every time the chipselect signal goes high. I thought it could be done automatically but it doesn't seem to be the case.
I would like to manually "erase" the SPIDAT at some point, i.e to discard any incomplete word received. How should I proceed?
- Could it work using the SPICCR[SPISWRESET] bit?
- What about switching off the SPI clock by clearing the PCLKCR0[SPIAENCLX] bit?
- What is the effect of writing a new value to SPIDAT when in slave mode?
--
Best regards,
Pierre