GD32W51x User Manual
717
21.4.1.
SQPI Initial Register (SQPI_INIT
)
Address offset: 0x00
Reset Value: 0x1801 0004
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
PL
IDLEN[1:0]
ADDRBIT[4:0]
CLKDIV[5:0]
CMDBIT[1:0]
rw
rw
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
Bits
Fields
Descriptions
31
PL
Read data sample polarity.
0: Sample data at rising edge(default)
1: Sample data at falling edge.
30:29
IDLEN[1:0]
SQPI controller external memory ID length.
00:64-bit
01:32-bit
10:16-bit
11:8-bit
28:24
ADDRBIT[4:0]
Bit number of SPI PSRAM address phase.
Default
:
24
23:18
CLKDIV[5:0]
Clock divider for SQPI output clock.
0x0 is invalid.
Output clock frequency is f
hclk
/(1)
Note: When CLKDIV field is even number, the output clock high level time has 1
HCLK period more than low level time.
17:16
CMDBIT[1:0]
Bit number of SQPI controller command phase
00: 4 bit
01: 8 bit (default)
10: 16 bit
11: Reserved
15:0
Reserved
Must be kept at reset value.
21.4.2.
SQPI Read Command Register (SQPI_RCMD
)
Address offset: 0x04
Reset value: 0x0010 0000