GD32W51x User Manual
701
When the transfer is managed by DMA, CRC value is transferred by hardw are. This bit
should be cleared.
In full-duplex or transmit-only mode, set this bit after the last data is w ritten to SPI_DA TA
register. In receive-only mode, set this bit after the second last data is received.
11
FF16
Data frame format
0: 8-bit data frame format
1: 16-bit data frame format
10
RO
Receive only mode
When BDEN is cleared, this bit determines the direction of transfer.
0: Full-duplex mode
1: Receive-only mode
9
SWNSSEN
NSS softw are mode enable
0: NSS hardw are mode. The NSS level depends on NSS pin.
1: NSS softw are mode. The NSS level depends on SWNSS bit.
This bit has no meaning in SPI TI mode.
8
SWNSS
NSS pin selection in NSS softw are mode
0: NSS pin is pulled low
1: NSS pin is pulled high
This bit effects only w hen the SWNSSEN bit is set.
This bit has no meaning in SPI TI mode.
7
LF
LSB first mode
0: Transmit MSB first
1: Transmit LSB first
This bit has no meaning in SPI TI mode.
6
SPIEN
SPI enable
0: SPI peripheral is disabled
1: SPI peripheral is enabled
5:3
PSC[2:0]
Master clock prescaler selection
000: PCLK/2 100: PCLK/32
001: PCLK/4 101: PCLK/64
010: PCLK/8 110: PCLK/128
011: PCLK/16 111: PCLK/256
PCLK means PCLK2 w hen using SPI0 or PCLK1 w hen using SPI1
2
MSTMOD
Master mode enable
0: Slave mode
1: Master mode
1
CKPL
Clock polarity selection
0: CLK pin is pulled low w hen SPI is idle
1: CLK pin is pulled high w hen SPI is idle