Skip to main content
FBIZA.1
Associate II
April 15, 2020
Solved

Using an USART in SPI master mode, which pin should be the NSS?

  • April 15, 2020
  • 2 replies
  • 1174 views

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?

This topic has been closed for replies.
Best answer by waclawek.jan

>  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

2 replies

Technical Moderator
April 15, 2020

Hello @FBIZA.1​ ,

I recommend you to review the pins assignment in the datasheet related to your product.

Best Regards,

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
waclawek.jan
waclawek.janBest answer
Super User
April 15, 2020

>  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

FBIZA.1
FBIZA.1Author
Associate II
April 15, 2020

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.

0693W000000VrLiQAK.png

Thanks for your clarifying answer!