Table of Contents

SPI NOR Interface Modes: Single, Dual, Quad and QPI

SOIC-style memory on a controller PCB beside a larger processor.

Look at how the host sends the instruction. On the Infineon S25FL064L, Quad SPI reads such as 6Bh (1-1-4) and EBh (1-4-4) send the eight-bit opcode over one I/O line. With the flash in QPI (Quad Peripheral Interface), an initial EBh read sends the opcode over four lines. Both reads return data over four lines, so the data phase alone looks the same.

The three numbers give the line counts for the instruction, address and data, in that order. When configuring a controller or decoding a logic-analyzer capture, match each phase to the command diagram for the part. A host and flash that expect different instruction widths can interpret the same clock edges differently. Infineon S25FL064L datasheet, read commands

Reading the Instruction-Address-Data Width Table

A Quad-SPI controller can configure the instruction, address, alternate or mode bytes, dummy clocks, and data separately. The three-number shorthand covers the widths of the instruction, address and data phases. Check the address length, clock polarity and phase, and single or double data rate separately. STMicroelectronics AN4760, §3.1

These six examples are initial single-data-rate (SDR) read transactions on the S25FL064L. The two EBh rows use the same opcode in different flash states. Infineon S25FL064L, §8.4

Read transactionOpcodeBus width
Single read03h1-1-1
Dual output read3Bh1-1-2
Dual I/O readBBh1-2-2
Quad output read6Bh1-1-4
Quad I/O read in legacy SPIEBh1-4-4
Quad I/O read after entry into QPIEBh4-4-4
Instruction, address and data lane counts for six S25FL064L reads, from 1-1-1 through 4-4-4.
The same EBh opcode uses one instruction line in legacy Quad I/O and four when the S25FL064L is already in QPI.

When configuring EBh (1-4-4 or 4-4-4), keep mode bits and latency (dummy) clocks distinct from the address and data phases. On the S25FL064L, the mode bits immediately follow the address phase on the same four I/O lines (controlling continuous-read / XIP behavior), followed by the configured number of latency clocks before the flash drives valid data. Misaligning the mode byte or the dummy-cycle count can shift the first data byte the controller samples even when the x-y-z widths are correct.

One-Lane vs. Four-Lane Command and Address Clocks

To see why controller phase-width settings must match the flash state, consider the first transaction carrying an 8-bit opcode in SDR mode (one bit per active line per clock cycle).

  • Eight-bit instruction. Over a single lane (1-x-x), shifting 8 bits requires 8 clock cycles. Over four lanes (4-x-x), shifting the same 8-bit opcode requires 2 clock cycles (4 bits per clock).
  • Example with a 24-bit address. Where a 24-bit address is used in SDR, shifting it over a single lane (x-1-x) takes 24 clock cycles, whereas shifting it over four lanes (x-4-x) takes 6 clock cycles.

These counts cover only the instruction and address. Include mode bits, dummy clocks and the length of the data transfer to estimate the time for a complete read.

The eight bits of EBh occupy eight SDR clocks on one line or two on four lines, high nibble Eh followed by Bh.
Count only the instruction. A 4-4-4 read transfers EBh in two SDR clocks; the address, mode bits, latency and payload take additional clocks.

Quad Mode vs. QPI Transitions on the S25FL064L

On the S25FL064L, separate configuration bits control volatile Quad I/O operation and volatile QPI operation. Infineon S25FL064L, §§6.6.3–6.6.4

  • The Quad bit (CR1V[1]) enables Quad Output (6Bh) and Quad I/O (EBh in 1-4-4) when operating in legacy SPI instruction mode.
  • The QPI bit (CR2V[3]) places the device into QPI (4-4-4) mode. On the S25FL064L, QPI enables quad operation independently of CR1V[1]. Check the register definition and exit opcode for each candidate part.

The instruction width changes at the mode transition. Infineon S25FL064L, §§8.3.17–18, figures 63–64

  • Enter QPI. From legacy SPI, send 38h on one instruction lane. Allow the specified entry time (tQEN) before starting a QPI command.
  • Exit QPI. While the flash is in QPI, send F5h on four instruction lanes. Allow the specified exit time (tQEX) before starting the next SPI command.

Reset Scope and Known-Data Capture Verification

After a warm MCU reset, the external flash may still be in the mode used by the previous firmware stage. Check the board schematic and reset sequence to see whether the reset reached the flash. When the S25FL064L itself resets, its nonvolatile QPI setting (CR2NV[3]) determines which instruction width it expects next. Infineon S25FL064L, §8.3.17

Logic-analyzer leads attached to a development board test header.
Capture chip select, clock and the I/O lines together to see where the host changes bus width.

To verify interface alignment on the bench, read a known byte pattern and compare the expected bytes with the capture.

  • Connect the analyzer. Probe CS#, SCK and IO0–IO3 near the flash. Choose a memory region with known, non-blank contents, such as a fixed header.
  • Check the fields. Compare the opcode, instruction/address/data widths, address length, mode byte (for EBh), and dummy-clock count with the command diagram. Mark the clock at which you expect the first data byte.
  • Check the reset scope. If a read fails after a warm reset, inspect the first opcode. The flash may still be in QPI when the bootloader resumes single-line instructions.

A capture showing all FFh or 00h is inconclusive on its own. Compare it with the known contents and the observed instruction width. If the opcode and address decode correctly but the first returned byte is shifted, check where the controller stops sending mode bits and starts sampling data.

Reset pushbutton and USB connection on an embedded development board.
Identify which components a board reset actually reaches before interpreting the next flash transaction.

What to Specify When Sourcing SPI NOR Flash

When comparing alternative SPI NOR devices for a BOM, use the SPI NOR replacement checklist to flag differences in register bits, opcodes and QPI transitions. Browse NOR Flash families to narrow the options.

Carrier tape with packaged memory-style ICs beside a receiving document.
Record the complete ordering code and the read mode your controller requires when requesting a quote.

For a quote, include the full manufacturer part number and suffix, host controller, required read mode or opcode, supply voltage, package and quantity. These details let the sourcing team identify the exact ordering option you need. Send an inquiry

Hardware scenes are AI-generated illustrations. Technical diagrams are original illustrations based on the cited Infineon datasheet.