Skip to main content
raspdroid
Associate II
November 11, 2019
Question

Control 5 SPI devices with the STM32F722RET6

  • November 11, 2019
  • 2 replies
  • 1379 views

Hello,

It's possible to control 5 SPI devices with the STM32F722RET6? LQFP-64

Best regards

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
November 11, 2019

Do they actually need unique interfaces?

Some SPI can use a GPIO as CS (Chip Select), and disconnect MISO when inactive.

You might also be able to use a 3-to-8 decoder to save pins wrt CS for multiple devices.

You could walk the datasheet and see if you can instantiate 5 separate SPI, or use CubeMX.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
raspdroid
raspdroidAuthor
Associate II
November 11, 2019

Hello,

In one I can use UART.

But in the others I need to use SPI.

I have two SPI sensor mems and one dual/quad SPI and QPI flash memory and one SPI OSD.

Can I use any pin for the SS/CS selector chip?

0690X00000Arv2FQAR.png

Tesla DeLorean
Guru
November 11, 2019

QSPI has fixed/committed pins for NCS, common CLK between Bank1/Bank2

64-pin is quite limiting

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
raspdroid
raspdroidAuthor
Associate II
November 12, 2019

Good morning,

Thanks for the replies,

So I'm going to use so:

SPI1 for the two sensor mems and two gpio for the CS#

SPI2 for the SPI flash memory

SPI3 for the OSD

BR