Skip to main content
FBIZA.1
Associate II
Apr 15, 2020 9:38 AM UTC
Solved

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

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.
waclawek.jan
waclawek.janBest answer
Super User
Apr 15, 2020 10:41 AM UTC

>  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

3 replies

ST Technical Moderator
Apr 15, 2020 10:25 AM UTC

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
Apr 15, 2020 10:41 AM UTC

>  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
Apr 15, 2020 12:49 PM UTC

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!