cancel
Showing results for 
Search instead for 
Did you mean: 

How to use QSPI as Single SPI mode?

Ramdas Adav
Associate II

I am using STM32F779BI for my custom board. I am using TFT LCD Display connected to QSPI, but I want to use QSPI in single SPI Mode. Like simple SPI ( CLK, MOSI, MISO).

How to initialize QSPI in Single SPI Mode?

2 REPLIES 2
Soup
Associate II

if you are using the HAL QSPI Generic Driver then you can specify this in the "QSPI_CommandTypeDef" struct

/** @defgroup QSPI_InstructionMode QSPI Instruction Mode
* @{
*/
#define QSPI_INSTRUCTION_NONE          ((uint32_t)0x00000000U)          /*!<No instruction*/
#define QSPI_INSTRUCTION_1_LINE        ((uint32_t)QUADSPI_CCR_IMODE_0) /*!<Instruction on a single line*/
#define QSPI_INSTRUCTION_2_LINES       ((uint32_t)QUADSPI_CCR_IMODE_1) /*!<Instruction on two lines*/
#define QSPI_INSTRUCTION_4_LINES       ((uint32_t)QUADSPI_CCR_IMODE)   /*!<Instruction on four lines*/
/**

It's set in QUADSPI_CCR.DMODE.

JW