BAT32G1x9 user manual | Chapter 21 Serial interface SPI
836 / 1149
Rev.1.02
Figure 21-19 Abort step of Slave reception
Note: n=0,1
Start of abort
setting i
End i of the abort
setting
SPTFn=0?
No
Yes
Set the PER2
register
If there is data being
transferred, wait for the
transfer to end
Place the SPIEn at the
position "0" to stop the
operation of the SPI
To use deep sleep mode, stop
the clock of the SPI unit and
set the reset state
The penultimate (m-1)
reads out the data
Note 1
Write the SPIMn register
Note 1: In receive-only mode, the
SPI
transmission is triggered by reading
the value of the
SDRIn
register. If the SPI is not aborted in time, there may be
a redundant transmission
after
the
last read
of
SDRIn.
If you want to avoid the last redundant transmission, you can turn off SPIE N
after waiting for an
SCK
cycle after
the penultimate data readout
. The transfer of the SPI will be aborted after the
last data transfer is complete.