2025-09-18 12:18 AM - edited 2025-09-18 12:18 AM
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.
2025-09-18 1:15 AM - edited 2025-09-18 1:19 AM
Hello,
What is the part number / datasheet link for the sensor?
Thanks
2025-09-18 1:27 AM
@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>" ?