
CH32V003
Reference Manual
V1.3
161
mode.
1: Initiate CRC calculation.
0: CRC calculation is disabled.
12
CRCNEXT
RW
After the next data transfer, send the value of the
CRC register. This should be set immediately after
the last data is written to the data register.
1: Sending CRC checksum results.
0: Continue to send data from the data register.
0
11
DFF
RW
Data frame format bit, this bit can only be written
when SPE is 0.
1: Sending and receiving using 16-bit data length.
0: Use 8-bit data length for sending and receiving.
0
10
RXONLY
RW
The receive-only bit in two-wire mode is used in
conjunction with BIDIMODE. Setting this bit
allows the device to receive only and not transmit.
1: Receive only, simplex mode.
0: Full-duplex mode.
0
9
SSM
RW
Software slave management bit, this bit
determines whether the level of the NSS pin is
controlled by hardware or software.
1: Software control of the NSS pins.
0: Hardware control NSS pins.
0
8
SSI
RW
Internal slave select bit, with SSM set, this bit
determines the level of the NSS pin.
1: NSS is high.
0: NSS is low.
0
7
Reserved
RO Reserved
0
6
SPE
RW
SPI enable bit.
1: Enable SPI.
0: Disable SPI.
0
[5:3]
BR
RW
Baud rate setting field, this field cannot be
modified during communication.
000: FPCLK /2; 001: FPCLK /4.
010: FPCLK /8; 011: FPCLK /16.
100: FPCLK /32; 101: FPCLK /64.
110: FPCLK /128; 111: FPCLK /256.
0
2
MSTR
RW
Master-slave setting bit, this bit cannot be
modified during communication.
1: Configured as a master device.
0: Configured as a slave device.
0b
1
CPOL
RW
Clock polarity selection bit, this bit cannot be
modified during communication.
1: SCK is held high in idle state.
0: SCK is held low in idle state.
0
0
CPHA
RW
Clock phase setting bit, this bit cannot be modified
during communication.
1: Data sampling starts from the second clock
edge.
0: Data sampling starts from the first clock edge.
0
14.3.2 SPI Control register 2 (SPI1_CTLR2)
Offset address: 0x04
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
TXEI
E
RXN
E
IE
ERRI
E
Reserved SSOE
TXD
MA
EN
RXD
MA
EN