BAT32G1x9 user manual | Chapter 21 Serial interface SPI
829 / 1149
Rev.1.02
21.4.2
The reception of the master
If bit 6 (TRMDn) of the serial operating mode register (SPIMn) is 0, only data can be received. When data is read
from the receive buffer register (SDRIn), the reception begins.
(
1
)
Procedure
Figure 21-11 Initial setup steps for master reception
Note: n=0,1
The start of the
initial setting i
Set the PER2
register
Set the SPICn register
Set the SPIMn register
Set the port
The end of the
initial setting i
Removes the reset state of
the Universal Serial Unit and
begins clock provision
Sets the serial clock
Set the operating mode
Sets the port mode register
Ends initial setup
If data is read from the SDRIn
register, communication begins