
CH32V003
Reference Manual
V1.3
163
2
CHSID
RO
Channel side. This flag is set by hardware and
reset by a software sequence.
1
:
Channel Right has to be transmitted or has
been received.
0
:
Channel Left has to be transmitted or has been
received.
0
1
TXE
RO
Transmit buffer empty.
1
:
Tx buffer empty.
0
:
Tx buffer not empty.
1
0
RXNE
RO
Receive buffer not empty.
1
:
Rx buffer not empty.
0
:
Rx buffer empty.
0
14.3.4 SPI Status register (SPI1_DATAR)
Offset address: 0x0C
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
DR
Bit
Name
Access
Description
Reset value
[15:0] DR
RW
Data register. The data registers are used to store
the received data or pre-store the data to be sent
out, so the reading and writing of the data registers
actually correspond to the operation of different
areas, where the read pairs use the receive buffer
and the write pairs correspond to the send buffer.
Data can be received and sent in 8 or 16 bits, and
it is necessary to determine how many bits of data
to use before transmission. When using 8 bits for
data transmission, only the lower 8 bits of the data
registers are used, and the higher 8 bits are forced
to 0 for reception. using a 16-bit data structure
causes all 16 bits of the data registers to be used.
0
14.3.5 SPI1 Polynomial register (SPI1_RCRCR)
Offset address: 0x10
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
CRCPOLY[15:0]
Bit
Name
Access
Description
Reset value
[15:0] CRCPOLY
RW
CRC polynomial.
This register contains the
polynomial for the CRC calculation.
7
14.3.6 SPI1 Receive CRC register (SPI1_TCRCR)
Offset address: 0x18
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
RXCRC
Bit
Name
Access
Description
Reset value
[15:0] RXCRC
RO Rx CRC.
Store the result of the calculated CRC
0