cancel
Showing results for 
Search instead for 
Did you mean: 

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

FBIZA.1
Associate II

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?

1 ACCEPTED SOLUTION

Accepted Solutions

>  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

View solution in original post

3 REPLIES 3
Imen.D
ST Employee

Hello @FBIZA.1​ ,

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

Best Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

>  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

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!