SDAA529 September   2026 MSPM33C321A

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Detailed Description
    1. 2.1 QSPI Controller Overview
    2. 2.2 Hardware Connection to External NOR Flash
    3. 2.3 Software Configuration
      1. 2.3.1 Driver Initialization and Flash Identification
      2. 2.3.2 Enabling Quad Mode and Programming the Flash
      3. 2.3.3 DMA-Based Quad Read
    4. 2.4 Measured Performance: Flash Read With SPI Streaming
    5. 2.5 Application Use Cases
      1. 2.5.1 Optical Modules
      2. 2.5.2 Display Applications
      3. 2.5.3 Audio Storage and Playback
  6. 3Summary
  7. 4References

Hardware Connection to External NOR Flash

The LP-MSPM33C321A LaunchPad development kit includes a Macronix MX25L12833F external NOR flash connected to the QSPI interface and is used as the reference hardware for this document. The MX25L12833F is a 128Mbit (16MB) 3V serial NOR flash with a 256-byte page size, addressable entirely with 3-byte (24-bit) addressing, so QSPIADDRMODE remains in its 3-byte setting for the full array. The device exposes a Quad Enable (QE) bit in its status register, which must be set before any quad-lane operation. Table 2 lists the signal mapping between the NOR flash and the LaunchPad pins.

Table 2-2 External NOR Flash to QSPI Pin Mapping (LP-MSPM33C321A)
NOR Flash Pin Pin Function LaunchPad Pin QSPI Signal
1 CS PC0 QSPI_CS0
2 IO1 PA14 QSPI_IO1
3 IO2 PA13 QSPI_IO2
4 GND — —
5 IO0 PA12 QSPI_IO0
6 SCLK PB16 QSPI_CLK
7 IO3 PB15 QSPI_IO3
8 VCC — —

Two board-level details are worth noting when working with the LaunchPad. First, the external NOR flash is powered through jumper J12, which must be populated to supply the 3.3V rail to the memory. Second, to route the QSPI signals to an external connection through header J11, five 0-ohm resistors (R77 through R81) on the back of the board must be soldered; these are left unpopulated by default to avoid noise on the QSPI signals.

Table 2-3 summarizes the QSPI frame formats supported by the MX25L12833F for program and read operations, as validated on the LaunchPad. The device supports all four read formats, including full QQQ (QPI) operation; for programming, page program is available in SSS, SQQ, and QQQ formats, while SSQ page program is not supported. The measurements and software flow in this document use QPI (QQQ) mode for both program and read.

Table 2-3 MX25L12833F Supported QSPI Frame Formats
Frame Format Page Program Read
SSS ✓ ✓
SSQ ✗ ✓
SQQ ✓ ✓
QQQ (QPI) ✓ ✓

For a custom board design, keep the QSPI signal traces short and length-matched, and note that the maximum QSPI clock frequency depends on the supply voltage: 40MHz requires VDD ≥ 2.7V, while operation from 1.71V limits the clock to 20MHz. The datasheet QSPI timing parameters (input setup/hold and output valid/hold times) should be checked against the selected flash device across the intended voltage and temperature range.