GD32W51x User Manual
721
22.
Quad-SPI interface (QSPI)
22.1.
Overview
The QSPI is a specialized interface that communicate with Flash memories. This interface
support single, dual or quad SPI FLASH. It can operate in any of the 4 following modes:
indirect mode(address extend): all operations are performed depends on QSPI registers
status polling mode: the values of status registers in external Flash memory are
periodically read and check
memory-mapped mode: the external Flash memory is mapped to the microcontroller
address space(0x9000 0000 - 0x97FF FFFF) and is accessed as an internal memory
FMC mode: the external Flash memory
(0x0800 0000/0x0C00 0000) is accessed as an
internal memory by flash controller for extensions
22.2.
Characteristics
Four functional modes: indirect(address extend), status -polling, memory-mapped and
FMC mode
Fully programmable command format for both indirect and memory mapped mode
Integrated FIFO for transmission/reception
8, 16, or 32-bit data accesses
DMA channel for indirect mode
Interrupt generation on FIFO threshold, status match, timeout, transfer complete, and
access error
Support TrustZone architecture to isolate the secure area and non-secure area
22.3.
Function overview
22.3.1.
QSPI block diagram
Module QSPI mainly has a connection with TZPCU, AHB, FMC and PAD. 6 signals are used
to interface with an external flash memory,The specific signal description is showed as follow
table.
TZPCU provides essential information related to trustzone for QSPI. QSPI TrustZone mode
can be configured TrustZone -aware or securable. In TrustZone -aware mode, QSPI will get
TZEN and watermarked address range through TZPCU. In securable mode, QSPI will get
TZEN, watermarked address range and security properties through TZPCU.
The connection between QSPI and FMC is used in QSPI FMC mode. QSPI can accomplish
program start with external flash through FMC interface.