cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F1 SPI MOSI default pin level

taraben
Senior
Posted on December 15, 2015 at 01:42

Hello,

I want to use SPI to create a NRZ Style pattern. Everything is ok, except that I need MOSI to be low in between transmissions.

Currently MOSI goes high after last byte shiftet out.

I created a CubeMx project to configure and use HAL_SPI_Transmit() to send data.

How can I set MOSI default pin level?

Regards, Adib.

--

#stm32-spi-mosi
3 REPLIES 3
mailbox
Associate II
Posted on March 11, 2016 at 14:55

Hello

have the same problem, did u solve this issue?

andrewbmcclain
Associate II
Posted on March 11, 2016 at 19:53

You can't really get that functionality with the SPI peripheral.  You'd have to disable it, and use the MOSI pin as GPIO.

Are you using the SPI clock for synchronization?

mailbox
Associate II
Posted on March 11, 2016 at 21:33

Hello

i'm trying to control ws2812b led strip with SPI mosi line, without clock

the protocol is: ''0'' of ws2812 is ''100'' of SPI mosi

''1'' of ws2802 is ''110'' of spi mosi,

ws2812b requires logic low after transfer and on idle