Skip to main content
Explorer
November 17, 2023
Question

1 bit SPI data sending - STM32F7

  • November 17, 2023
  • 1 reply
  • 2194 views

Hi all ! 

 

I want to transmit 1 bit on the SPI1 of my STM32F7.

I see that the minimum datasize to transmit is SPI_DATASIZE_4BIT. So I guess I can't send only 1 bit of data on my bus.  I am wrong ? 

My final goal is just to have 1 clock period on the SPI bus.

 

have you got any clue for that ?


Thank you for your help.

Best regards.

Remi

    This topic has been closed for replies.

    1 reply

    Super User
    November 17, 2023

    Hi,

    sorry, i see no sense .  spi = serial/parallel interface ; sending 1 bit frame is nonsense here. and impossible.

    explain, what you want to do - set some ws.. leds or whatever. then we can find a way to do it...(maybe)

    Remi99Author
    Explorer
    November 20, 2023

    Hi, 

    I work on a with a STM32F7 linked with a chip by a SPI bus (easy until now).
    Also, the STM32F7 and the chip are linked by a pin (ouptut for the STM32, input for the chip). When the pin goes high, the signal must be "validated" by a 1 spi SCLK period (there is no direct link between this pin and the spi).

    Remi99_0-1700480034007.png

    This behaviour is required by the chip...

    I hope you will be able to help.


    Super User
    November 20, 2023

    i cannot find my big blue glass sphere ...

    so maybe better, you say which chip we talk about.