BAT32G1x9 user manual | Chapter 21 Serial interface SPI
824 / 1149
Rev.1.02
21.3.7
The SPI pin functions the control register
When using SPI, the control registers (PMxx, P MCxx) must be set for port functions that are multiplexed
with the SPI input and output pins. For details, please refer to "2.3.1 Port Mode Register (PMxx)".
When using the multiplex port of the SPI pin as the output of S CK/SO/MO, the position of the port mode
register (PMxx, PMCxx) corresponding to each port must be "0". When using the multiplexing port of the SPI
pin as an input to SCK/SI/MI, the bits "1", P MCxx of the port mode register (PMxx) corresponding to each
port must be used Position "0". At this point, the bit of the port register (Pxx) can be "0" or "1". For details,
please refer to "2.5 Register Settings When Using the Multiplexing Function".