![ARTERY AT32F435 Series Скачать руководство пользователя страница 668](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592668.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 668
Rev 2.03
Bit 25: 24 INSLEN
0x1
rw
Instruction code length
Instruction code is required for SPI Flash command
execution. The instruction code length varies from SPI
Flash supplier to SPI Flash supplier. Thus this register can
be used to program the desired instruction code length.
Typically, the instruction code is one-byte length. However,
if the user sets two-byte instruction code, the host
controller sends this instruction code twice.
00: No instruction code. It cannot be used until the
continuous read mode command is completed.
01: 1-byte instruction code
10: 2-byte instruction code (repeated instruction code)
11: Reserved
Bit 23: 16 DUM2
0x0
rw
Second dummy state cycle
The second dummy state is located between the address
and data status, excluding performance enhanced mode
status. The user can check there is a dummy state
between the address and data status in SPI Flash
specification. The host controller sends logic 1 in a dummy
cycle.
0: No second dummy state
1~32: 1 dummy second period~32 dummy second period
Bit 15: 3
Reserved
0x0
resd
Kept at its default value.
Bit 2: 0
ADRLEN
0x3
rw
SPI address length
This field defines the number of bytes of the SPI Flash
address, ranging from one to four bytes.
000: No address state
001: 1-byte address
010: 2-byte address
011: 3-byte address
100: 4-byte address
Others: Reserved
When the address length is 0, the second dummy state
period is not preset.
28.4.3 Command word 2 (CMD_W2)
No-wait states, accessible by bytes, half words and words.
Bit
Register
Reset value
Type
Description
Bit 31: 0
DCNT
0x0
rw
Read/Write data counter
This bit must be set to 0 when executing read status
command.
0: No read/write data
1~FFFFFFFF: 1~FFFFFFFF byte data
Note: This register must not be padded with 0 for data read
or write. However, for “read status” or “write enable”
instruction, this register must be set to 0.
28.4.4 Command word 3 (CMD_W3)
No-wait states, accessible by bytes, half words and words.
Bit
Register
Reset value
Type
Description
Bit 31: 24 INSC
0x00
rw
Instruction code
This code is set to enable SPI Flash command.
Bit 23: 16 PEMOPC
0x00
rw
Performance enhanced mode operation code
This field works with the PEMEN bit. This code can be
padded to execute performance enhanced mode. Follow
the corresponding Flash specification document to write
the corresponding value.