Skip to main content
Visitor II
July 16, 2024
Question

Reading accelerometer measurement when there is shock in LSM6DSO32

  • July 16, 2024
  • 2 replies
  • 1200 views

Hi ST support,

We are using LSM6DSO32 accelerometer.

I configured Single tap shock event on interrupt.

Interrupt is getting generated when there is shock 

i want to read peak value of that shock.

 

how to read acceleration data OUTX_H_A, OUTX_L_A, OUTY_H_A, OUTY_L_A, OUTZ_H_A and OUTZ_L_A when there is shock ?

I want to read peak value of G when there is shock

 

Screenshot 2024-07-16 160606.png

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    July 30, 2024

    Hi @MSelv.3 ,

    You can read the output continuously (from register 22h to 2Dh) and in post processing get the maximum value.

    MSelv.3Author
    Visitor II
    August 2, 2024

    Thank you for your reply.

     

    I am using TI microcontroller TMS570LC43 I2C to read LSM6DSO32 accelerometer Data.

     

    In FIFO mode of LSM6DSO32, I want to read all the data at one go instead of reading all the FIFO_DATA_OUT (from 78h to 7Eh) registers for the number of times specified by the DIFF_FIFO_[9:0]

     

    is there any way to do that?

    Because if i read all the FIFO_DATA_OUT (from 78h to 7Eh) registers for the number of times specified by the DIFF_FIFO_[9:0], my I2C will be busy for long time.

     

    I am trying with I2C DMA to read all data of FIFO at one go for avoiding CPU load

    is there an other way to read all data of FIFO instead of reading all the FIFO_DATA_OUT (from 78h to 7Eh) registers for the number of times specified by the DIFF_FIFO_[9:0]?

     

    MSelv.3Author
    Visitor II
    August 2, 2024

    MSelv3_0-1722591734475.png

    What does it mean The wraparound function in the device?  The wraparound function in LSM6DSO32 or Master MCU?