cancel
Showing results for 
Search instead for 
Did you mean: 

LIS2HH12 : FIFO multiple reads (burst)

Alexandre T
Associate II
Posted on October 13, 2017 at 17:25

According to chapter 5.3.8 in LIS2HH12

http://www.st.com/content/ccc/resource/technical/document/datasheet/c9/16/f2/79/ca/31/47/89/DM00096789.pdf/files/DM00096789.pdf/jcr:content/translations/en.DM00096789.pdf

, multiple reads seem possible but I don't know how  (by using DMA ?) ?

It could be really useful to avoid data loss.

Any idea ?

#lis2hh12 #multiple #accelerometer #fifo
1 ACCEPTED SOLUTION

Accepted Solutions
Miroslav BATEK
ST Employee
Posted on October 16, 2017 at 15:20

It is a question of your microcontroller, you have to use a SPI transaction which is able to read more than one byte. DMA is not mandatory.

You can first read a register FIFO_SRC to get number of items in FIFO and then read all the bytes from FIFO in one SPI transaction.

View solution in original post

1 REPLY 1
Miroslav BATEK
ST Employee
Posted on October 16, 2017 at 15:20

It is a question of your microcontroller, you have to use a SPI transaction which is able to read more than one byte. DMA is not mandatory.

You can first read a register FIFO_SRC to get number of items in FIFO and then read all the bytes from FIFO in one SPI transaction.