cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f373R8T6 spi time setting questions

cfc
Associate

II am using the SPI function in STM32F373R8T6. When I use the HAL_SPI_TransmitReceive function to send and receive data, I want the  to read the data from the slave immediately after sending. However, when using this function, the NSS pin pulls up for a period and then pull down  to read. How should I configure it? The timing I desire is as shown in the reference diagram below. thank You.

1716948329495.png

for reference, I pulled up nss pin because if no pull, nss pin remains low level.

ps: I tried to set

NSSPMode = SPI_NSS_PULSE_DISABLE
but when I do this, nss kept high level during the transmission.
0 REPLIES 0