2024-04-04 11:08 PM - edited 2024-04-04 11:10 PM
Hi.
I am using STM32H735VG for SPI communication with external ADCs.
But I want to add external ADCs and I already used all 5 SPIs.
So I will use OCTOSPI, can OCTOSPI play the same role as classic SPI?
In menual, OCTOSPI in indirect operating mode works like a classical SPI interface.
If they play the same role, how I set the pin?
(I will use only one OCTOSPI.)
Thank you.
Solved! Go to Solution.
2024-04-05 12:20 AM - edited 2024-04-05 12:27 AM
Hello @giwonKIM and welcome to the Community :),
The OCTOSPI provides a flexible hardware interface, that enables the support of multiple hardware configurations: Single-SPI (legacy SPI), Dual-SPI, Quad-SPI, Dual-quad-SPI and Octo-SPI. Please take a look at FAQ: Does OctoSPI interface support QuadSPI memories?
To set and configure the OCTOSPI interface , I recommend you to refer to AN5050 precisely "6 OCTOSPI application examples" section.
Note that, the OctoSPI work only as a master, for that this interface supports the Single-SPI (legacy SPI).
For more information, I advise you to take a look at RM0468 section OCTOSPI regular-command protocol Section.
I think this discussion can help you.
I hope this answer your request!
Thank you
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-04-05 12:20 AM - edited 2024-04-05 12:27 AM
Hello @giwonKIM and welcome to the Community :),
The OCTOSPI provides a flexible hardware interface, that enables the support of multiple hardware configurations: Single-SPI (legacy SPI), Dual-SPI, Quad-SPI, Dual-quad-SPI and Octo-SPI. Please take a look at FAQ: Does OctoSPI interface support QuadSPI memories?
To set and configure the OCTOSPI interface , I recommend you to refer to AN5050 precisely "6 OCTOSPI application examples" section.
Note that, the OctoSPI work only as a master, for that this interface supports the Single-SPI (legacy SPI).
For more information, I advise you to take a look at RM0468 section OCTOSPI regular-command protocol Section.
I think this discussion can help you.
I hope this answer your request!
Thank you
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-04-05 12:56 AM
Thank you.
If Single-SPI of OCTOSPI works the same as the legacy SPI, do IO1, IO2 pins behave the same as MOSI and MISO pins?
2024-04-05 01:14 AM
Hi @giwonKIM ,
As mentioned in RM0468, if you want to use the OCTOSPI as SPI, the SO/IO0 signal will be used to output the data from STM32, then it is MOSI (master Output Salve Input). The IO1 (SI) signal will be used to receive data so it acts as MISO.
I suggest you to take a look at this post "Which OCTOSPI pins can be used as MOSI and MISO in single mode?"
Thank you for your contribution in STCommunity.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-04-05 01:33 AM
Thank you very much.
2024-04-05 04:26 PM
As long as you do not need a full-duplex SPI (MOSI and MISO in both direction at the same time - as a "regular" SPI is) - you can use OCTOSPI as "single SPI".
Bear in mind: STM calls it "single SPI" but not "regular SPI"!
It is NOT a full, regular SPI, not with full-duplex. OCTOSPI works only in "half-duplex" mode: Tx or Rx, but never both at the same time (not possible, see the commands you can configure, never READ + WRITE).