Using an USART in SPI master mode, which pin should be the NSS?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-15 2:38 AM
When using an STM32L0 USART in SPI master mode, if the Slave needs a low level at the beginning of the frame and a high after the data byte, can I use any GPIO as NSS master to output this levels?
Solved! Go to Solution.
- Labels:
-
SPI
-
STM32L0 Series
-
UART-USART
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-15 3:41 AM
> can I use any GPIO as NSS
Yes.
> USART in SPI master mode
I wonder, where this confusing terminology came from. It's *synchronous* mode of the USART, that's why the S in USART...
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-15 3:25 AM
Hello @FBIZA.1​ ,
I recommend you to review the pins assignment in the datasheet related to your product.
Best Regards,
Imen
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-15 3:41 AM
> can I use any GPIO as NSS
Yes.
> USART in SPI master mode
I wonder, where this confusing terminology came from. It's *synchronous* mode of the USART, that's why the S in USART...
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-15 5:49 AM
I took this terminology from this ST presentation <USART used as SPI Master (page 14)>. But they don't specify anything about which pin should apply the NSS signs for the slave.
Thanks for your clarifying answer!
