cancel
Showing results for 
Search instead for 
Did you mean: 

Software SPI

Nico3
Senior

Hello friends, 

I need to connect thirdparty accelerometer SENSOR to STM32F4 series MCU via SPI. 

The Sensor Data sheet says:

1) Designed to support any MCU  that used software implemented SPI. It is not designed to support any particular hardware implemented SPI.

2) MISO: data bits are shifted out on falling edge of SCK

3) MOSI: each bit is sampled on the rising edge of SCK. 

4) Sensor supports full duplex communication

___________________________________________________________________

Please suggest how to implement. Can I use SPI peripheral of MCU? If yes, I am not sure about what should be CPHA for CPOL = 0. 

I need full duplex communication.

2 REPLIES 2
######
Senior II

Hello,

What is the part number / datasheet link for the sensor?

Thanks

Andrew Neil
Super User

@Nico3 wrote:

thirdparty accelerometer 


Why so secretive? Tell us the manufacturer and part number!

How to write your question to maximize your chances to find a solution

 


@Nico3 wrote:

The Sensor Data sheet says:

1) Designed to support any MCU  that used software implemented SPI..


That's an odd thing to say!

Please post a link to the datasheet - so that we can see exactly what they said, in context.

 

 

Have you tried an internet search for "STM32 + <sensor part number>" ?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.