Control 5 SPI devices with the STM32F722RET6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-11-11 11:55 AM
Hello,
It's possible to control 5 SPI devices with the STM32F722RET6? LQFP-64
Best regards
- Labels:
-
SPI
-
STM32F7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-11-11 12:38 PM
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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-11-11 1:27 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-11-11 2:14 PM
QSPI has fixed/committed pins for NCS, common CLK between Bank1/Bank2
64-pin is quite limiting
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-11-11 8:17 PM
Yes, any GPIO pin can be used as CS#/NSS (for normal SPI, not QPI), and one SPI controller can serve as many peripherals as you want this way. Don't enable the Hardware NSS Signal.
Be careful at the end of the transmission, don't set the pin high too early. Read the Procedure for disabling the SPI section in the reference manual on when it's safe to do it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-11-11 11:04 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-11-11 11:06 PM
Yes, I have not space, 20x20 mm board
I'm going to use SPI, not QSPI
