GD32F20x User Manual
574
21.11.2.
Control register 1 (SPI_CTL1)
Address offset: 0x04
Reset value: 0x0000
This register has to be accessed by word (32-bit)
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
Reserved
TBEIE
RBNEIE
ERRIE
Reserved
NSSDRV DMATEN DMAREN
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31:8
Reserved
Must be kept at reset value.
7
TBEIE
Transmit Buffer Empty Interrupt Enable
0: TBE interrupt is disabled.
1: TBE interrupt is enabled. An interrupt is generated when the TBE bit is set
6
RBNEIE
Receive Buffer Not Empty Interrupt Enable
0: RBNE interrupt is disabled.
1: RBNE interrupt is enabled. An interrupt is generated when the RBNE bit is set
5
ERRIE
Errors Interrupt Enable.
0: Error interrupt is disabled.
1: Error interrupt is enabled. An interrupt is generated when the CRCERR bit or the
CONFERR bit or the RXORERR bit or the TXURERR bit is set.
4:3
Reserved
Must be kept at reset value.
2
NSSDRV
Drive NSS Output
0: NSS output is disabled.
1: NSS output is enabled.
If the NSS pin is configured as output, the NSS pin is pulled low in master mode
when SPI is enabled.
If the NSS pin is configured as input, the NSS pin should be pulled high in master
mode, and this bit has no effect.
1
DMATEN
Transmit Buffer DMA Enable
0: Transmit buffer DMA is disabled
1: Transmit buffer DMA is enabled, when the TBE bit in SPI_STAT is set, it will be
a DMA request at corresponding DMA channel.
0
DMAREN
Receive Buffer DMA Enable
0: Receive buffer DMA is disabled
1: Receive buffer DMA is enabled, when the RBNE bit in SPI_STAT is set, it will be
Содержание 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 ...