Skip to main content
Kefei Yao
Associate III
Mar 20, 2018 6:43 AM UTC
Solved

[lis3dx] What should the FSS[4:0] be valued when the fifo is full

Posted on March 20, 2018 at 07:43

FSS[4:0] contains the unread samples stored in the FIFO. So when the EMPTY is 1, the FSS[4:0] is 0. But when the OVRN_FIFO is 1, the FSS[4:0] should be 32 but it can't. So when 

FSS[4:0] is 31 we should check the OVRN_FIFO flag to judge the real unread sample number. Is that correct?

0690X0000060AAPQA2.png
This topic has been closed for replies.
Winfred LU
Winfred LUBest answer
ST Employee
Mar 20, 2018 8:39 AM UTC
Posted on March 20, 2018 at 09:39

Hi Kefei,

Correct. Reference the below table:

  • OVRN=0, FSS=11111  --> Unread FIFO samples = 31
  • OVRN=1, FSS=11111  -->

     Unread FIFO samples = 32

     

Best Regards,

Winfred

2 replies

Winfred LU
Winfred LUBest answer
ST Employee
Mar 20, 2018 8:39 AM UTC
Posted on March 20, 2018 at 09:39

Hi Kefei,

Correct. Reference the below table:

  • OVRN=0, FSS=11111  --> Unread FIFO samples = 31
  • OVRN=1, FSS=11111  -->

     Unread FIFO samples = 32

     

Best Regards,

Winfred

Kefei Yao
Kefei YaoAuthor
Associate III
Mar 20, 2018 9:48 AM UTC
Posted on March 20, 2018 at 09:48

Thank you very much.