cancel
Showing results for 
Search instead for 
Did you mean: 

lsm6ds3 SPI code

suresh
Associate II
Posted on July 27, 2016 at 23:17

Hello, We are using lsm6ds3 sensor by connecting to STM32F103 controller through I2C communication. Over I2C to read both X and G Raw data taking around 800uSeconds over 400K speed.

In one of my new project, needed both X&G raw values for every millisecond.

For fast reading, thinking to use SPI communication instead of I2C communication. Provided examples with in X-CUBE-MEMS1 are based off I2C, is there example any examples for SPI connection?

Regards,

Jim

#lsm6ds3 #stm32f10x #4-wired-spi
1 REPLY 1
Petr S
ST Employee
Posted on July 29, 2016 at 09:11

Hello Tim,

Unfortunatelly X-CUBE-MEMS1 package uses the IKS01A1 MEMS Shield expansion board which does not support SPI at all so therefore there is no sample code for SPI.

Best regards,

Petr