GD32W51x User Manual
724
(QSPI_TCFG register) defines the alternate bytes phase mode (no alternate bytes, 1-line, 2-
lines, or 4-lines).
Dummy phase
In this phase, 0-31 cycles, as specified by DUMYC field (QSPI_TCFG register), are given
without any data being transferred for external flash, in order to wait flash prepare data.
DATAMOD field (QSPI_TCFG register) defines the dummy phase mode (1-line, 2-lines, or
which is used in Data phase.
Data phase
In this phase, any number of bytes can be transferred between the external flash memory
and the QSPI interface.
In indirect mode, DTLEN field (QSPI_DTLEN register) defines the number of bytes to be
sent/received. In write operation, data to be sent should be written to the DATA register, while
in read operation, received data is obtained by reading DATA register.
In memory-mapped mode, the number of bytes to be transmitted is specified as single AHB
bus access operation, these could be 8, 16 or 32 read/write access, corresponding to 1, 2, or
4 bytes. Also when the TZEN is set, QSPI in memory-mapped mode will check that if the
haddr with the CPU secure status is an accessable transfer. If not, qspi will generate a hard-
fault.
DATAMOD filed (QSPI_TCFG register) defines the data phrase mode (no data, 1-line, 2-lines,
or 4-lines), and the configuration of DATAMOD = 00 must only be used in indirect write mode.
22.3.3.
QSPI signal line modes
Each of the instruction, address, alternate-byte, or data phase can be configured separately
into signal line modes by setting IMOD/ ADDRMOD/ ALTEMOD/ DATAMOD
Table 22-2. QSPI singnal line modes
Signal line m odes
Single m ode
Dual m ode
Quad m ode
Config
filed
IMOD
01 or 00
10 or 00
11 or 00
ADDRMOD
ALTEMOD
DATAMOD