![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 386](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630386.webp)
www.geehy.com Page 385
SPI control register 2 (SPI_CTRL2)
Offset address: 0x04
Reset value: 0x0000
Field
Name
R/W
Description
0
RXDEN
R/W
Receive Buffer DMA Enable
When RXDEN=1, once RXBNEFLG flag is set, DMA request will be
issued.
0: Disable
1: Enable
1
TXDEN
R/W
Transmit Buffer DMA Enable
When this bit is set, once TXBEFLG flag is set, DMA request will be
issued.
0: Disable
1: Enable
2
SSOEN
R/W
SS Output Enable
SS output in master mode
0: SS output is disabled, and it can work in multi-master mode.
1: SS output is enabled, and it cannot work in multi-master mode.
Note: Not used in I2S mode.
3
Reserved
4
FRFCFG
R/W
Frame Format Configure
0: SPI Motorola mode
1: SPI TI mode
Note: Not available in I2S mode.
5
ERRIEN
R/W
Error interrupt Enable
0: Disable
1: Enable
When an error occurs, ERRIEN bit controls whether to generate the
interrupt.
6
RXBNEIEN
R/W
Receive Buffer Not Empty Interrupt Enable
0: Disable
1: Allowed
When RXBNEFLG flag bit is set to 1, an interrupt request will be
generated
7
TXBEIEN
R/W
Transmit Buffer Empty Interrupt Enable
0: Disable
1: Enable
When TXBEFLG fag bit is set to 1, an interrupt request will be
generated
15:8
Reserved
SPI state register (SPI_STS)
Offset address: 0x08
Reset value: 0x0002