![ARTERY AT32F435 Series Скачать руководство пользователя страница 669](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592669.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 669
Rev 2.03
Bit 15: 10 Reserved
0x0
resd
Kept at its default value.
Bit 7: 5
OPMODE
0x0
rw
SPI Operation mode
000: Serial mode
001: Dual mode
010: Quad mode
011: Dual I/O mode
100: Quad I/O mode
101: DPI mode
110: QPI mode
Others: Reserved
Bit 4
Reserved
0x0
resd
Kept at its default value.
Bit 3
RSTSC
0x0
rw
Read SPI status configuration
This bit is valid only when read state and write is enabled.
The user must send a SPI read state command.
0: Hardware read. The controller keeps polling until the
state is ready (not busy) and feedbacks to the status
register.
1: Software read. Read status ones and feedback to the
status register until the user is able to read it.
Bit 2
RSTSEN
0x0
rw
Read SPI status enable
This bit is valid when WEN =“0”, and the user must send
SPI read status command.
0: Read SPI status disabled
1: Read SPI status enabled
Bit 1
WEN
0x0
rw
Write data enable
This bit is used to enable SPI write data, excluding read
data or read status (read data return path); the user must
set write enable bit=1 for other SPI commands.
Note: Write enable must be set to 1 in data write or Flash
erase command. The write enable must be set to 0 only in
read data or read status command.
0: Disabled
1: Enabled
Bit 0
Reserved
0x0
resd
Kept at its default value.
28.4.5 Control register (CTRL)
No-wait states, accessible by bytes, half words and words.
Bit
Register
Reset value
Type
Description
Bit 31: 22 Reserved
0x000
resd
Kept at its default value.
Bit 21
KEYEN
0x0
rw
SPI data encryption key enable
0: SPI data encryption key enabled
1: SPI data encryption key disabled
When this bit is enabled, raw data is converted into
ciphertext and written into the QSPI peripheral through
QSPIKEY. While read, data is decrypted into plaintext
and sends to the CPU.
Bit 20
XIPSEL
0x1
rw
XIP port selection
Read SPI Flash data from the following ports:
0: Command slave port
1: XIP port
When this bit is switched, the ATQSPI020 sends
automatically an Abort signal. The user can send a
command only after the completion of Abort function.
Bit 19
XIPRCMDF
0x0
rw
XIP read command flush