Skip to main content
Ramdas Adav
Associate
May 22, 2019
Question

How to use QSPI as Single SPI mode?

  • May 22, 2019
  • 2 replies
  • 1230 views

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?

This topic has been closed for replies.

2 replies

Soup
Associate
May 22, 2019

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*/
/**

waclawek.jan
Super User
May 22, 2019

It's set in QUADSPI_CCR.DMODE.

JW