
Rev. 1.00
430 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
20 Serial Peripheral Interface (SPI)
20 Serial Peripheral Interface (SPI)
Bits
Field
Descriptions
[4]
SSELC
Software Slave Select Control
0: Set the SEL output to an inactive state
1: Set the SEL output to an active state
The application software can setup the SEL output to an active or inactive state by
configuring the SSELC bit. The active level is configured by the SELAP bit in the
SPICR1 register. Note that the SSELC bit is only available when the SELOEN bit
is set to 1 for enabling the SEL output meanwhile the SELM bit is cleared to 0 for
controlling the SEL signal by software. Otherwise, the SSELC bit has no effect.
[3]
SELOEN
Slave Select Output Enable
0: Set the SEL signal to the input mode for multi-master mode
1: Set the SEL signal to the output mode for slave select
The SELOEN is only available in the master mode to setup the SEL signal as an
input or output signal. When the SEL signal is configured to operate in the output
mode, it is used as a slave select signal in either the hardware or software mode
according to the SELM bit setting in the SPICR1 register. The SEL signal is used
for mode fault detection in the multi-master environment when it is configured to
operate in the input mode.
[0]
SPIEN
SPI Enable
0: SPI interface is disabled
1: SPI interface is enabled