GD32F20x User Manual
572
21.11.
Register definition
SPI0 start address: 0x4001 3000
SPI1 start address: 0x4000 3800
SPI2 start address: 0x4000 3C00
21.11.1.
Control register 0 (SPI_CTL0)
Address offset: 0x00
Reset value: 0x0000
This register has to be accessed by word (32-bit)
This register has no meaning in I2S mode.
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
BDEN
BDOEN CRCEN
CRCNT
FF16
RO
SWNSSEN
SWNSS
LF
SPIEN
PSC [2:0]
MSTMOD
CKPL
CKPH
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31:16
Reserved
Must be kept at reset value
15
BDEN
Bidirectional enable
0: 2 line unidirectional transmit mode
1: 1 line bidirectional transmit mode. The information transfers between the MOSI
pin in master and the MISO pin in slave.
14
BDOEN
Bidirectional Transmit Output Enable
When BDEN is set, this bit determines the direction of transfer.
0: Work in receive-only mode
1: Work in transmit-only mode
13
CRCEN
CRC Calculation Enable
0: CRC calculation is disabled
1: CRC calculation is enabled.
12
CRCNT
CRC Next Transfer
0: Next transfer is Data
1: Next transfer is CRC value (TCR)
When the transfer is managed by DMA, CRC value is transferred by hardware.
This bit should be cleared.
In full-duplex or transmit-only mode, set this bit after the last data is written to
SPI_DATA register. In receive only mode, set this bit after the second last data is
Содержание GD32F20 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F20x ARM Cortex M3 32 bit MCU User Manual Revision 2 2 Oct 2019 ...
Страница 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Страница 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Страница 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Страница 385: ...GD32F20x User Manual 385 ...
Страница 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...