I am designing hardware using STM32H7. I would like to connect three power monitor devices to SPI4 of MCU as slave devices, but SPI4 has only one NSS(slave select) pin. How should I connect these multi slave devices to SPI4 of MCU?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-14 8:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-14 10:20 PM
Use other GPIOs for NSS, pull them low before each SPI transaction, back to high again when done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-15 4:26 PM
Thank you very much for the prompt reply. Can I use any of the I/O pins for NSS or is there any particular GPIO pins for the same?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-15 4:28 PM
I have one more question that, once I connected the GPIO pins as NSS, later I should control these pins using software. Am I right or not?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-15 11:26 PM
Yes, you have to control these pins "manually":
GPIO LOW
do SPI stuff
GPIO HIGH
