Skip to main content
Visitor II
May 29, 2024
Question

stm32f373R8T6 spi time setting questions

  • May 29, 2024
  • 0 replies
  • 576 views

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.
    This topic has been closed for replies.