Skip to main content
Visitor II
June 11, 2017
Question

LIS2DS12 output data

  • June 11, 2017
  • 1 reply
  • 681 views
Posted on June 12, 2017 at 01:32

Dear sir/madam,

I'm confused how can we change register concatenation data (eg. OUTX_H&OUT_L: FD5Ch) into a 10-bit data (eg. X: -676*0.061=-41mg)? Where -676 comes from and why this number is negtive?  [page 16 of AN4748 Application note]

#lis2ds12-output-data
    This topic has been closed for replies.

    1 reply

    ST Employee
    June 12, 2017
    Posted on June 12, 2017 at 10:02

    Two's complement is used for signed number representation, please see this

    https://en.wikipedia.org/wiki/Two%27s_complement

     page.