<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>SensorsのトピックMPL115A2 Coefficients</title>
    <link>https://community.nxp.com/t5/Sensors/MPL115A2-Coefficients/m-p/873472#M5529</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've just started experimenting with the MPL115A2 Digital Barometer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I’m having a bad day – but I can’t understand how to convert the Coefficient integers / binary values into numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data sheet doesn’t seem to make sense. For example a0 is defined as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;a0 Signed, Integer Bits = 12, Fractional Bits = 3 : Coeff a0 = S I&lt;SPAN style="font-size: 11px;"&gt;11&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;10&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;9&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;8&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;7&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;6&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;5&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;4&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;3&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;2&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;1&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;0&lt;/SPAN&gt; . F&lt;SPAN style="font-size: 11px;"&gt;2&lt;/SPAN&gt; F&lt;SPAN style="font-size: 11px;"&gt;1&lt;/SPAN&gt; F&lt;SPAN style="font-size: 11px;"&gt;0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later the data sheet uses the example a0 = 0x3ECE = 2009.75&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maskign out - bits I&lt;SPAN style="font-size: 11px;"&gt;11&lt;/SPAN&gt; to I&lt;SPAN style="color: #000000; font-size: 11px;"&gt;0&lt;/SPAN&gt; gives 2009 - but the last 3 bits (the fractional bits) are 0x06 - I can't see how that taken to be 0.75?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any examples of how to take these Coefficients in binary/hex form and convert them into actual numbers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2026 20:58:24 GMT</pubDate>
    <dc:creator>beng_</dc:creator>
    <dc:date>2026-02-03T20:58:24Z</dc:date>
    <item>
      <title>MPL115A2 Coefficients</title>
      <link>https://community.nxp.com/t5/Sensors/MPL115A2-Coefficients/m-p/873472#M5529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've just started experimenting with the MPL115A2 Digital Barometer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I’m having a bad day – but I can’t understand how to convert the Coefficient integers / binary values into numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data sheet doesn’t seem to make sense. For example a0 is defined as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;a0 Signed, Integer Bits = 12, Fractional Bits = 3 : Coeff a0 = S I&lt;SPAN style="font-size: 11px;"&gt;11&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;10&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;9&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;8&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;7&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;6&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;5&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;4&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;3&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;2&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;1&lt;/SPAN&gt; I&lt;SPAN style="font-size: 11px;"&gt;0&lt;/SPAN&gt; . F&lt;SPAN style="font-size: 11px;"&gt;2&lt;/SPAN&gt; F&lt;SPAN style="font-size: 11px;"&gt;1&lt;/SPAN&gt; F&lt;SPAN style="font-size: 11px;"&gt;0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later the data sheet uses the example a0 = 0x3ECE = 2009.75&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maskign out - bits I&lt;SPAN style="font-size: 11px;"&gt;11&lt;/SPAN&gt; to I&lt;SPAN style="color: #000000; font-size: 11px;"&gt;0&lt;/SPAN&gt; gives 2009 - but the last 3 bits (the fractional bits) are 0x06 - I can't see how that taken to be 0.75?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any examples of how to take these Coefficients in binary/hex form and convert them into actual numbers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 20:58:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MPL115A2-Coefficients/m-p/873472#M5529</guid>
      <dc:creator>beng_</dc:creator>
      <dc:date>2026-02-03T20:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: MPL115A2 Coefficients</title>
      <link>https://community.nxp.com/t5/Sensors/MPL115A2-Coefficients/m-p/873473#M5530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the fractional part, F2 = 0.5, F1 = 0.25 and F0 = 0.125.&lt;/P&gt;&lt;P&gt;Considering&amp;nbsp;our example, the fractional part is 0b110 = 1 x 0.5 + 1 x 0.25 + 0 x 0.125 = 0.75&lt;/P&gt;&lt;P&gt;You may find useful &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-335542"&gt;David's example&amp;nbsp;project&lt;/A&gt;, have a look at MPL115A1.c file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2019 14:04:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MPL115A2-Coefficients/m-p/873473#M5530</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2019-02-19T14:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: MPL115A2 Coefficients</title>
      <link>https://community.nxp.com/t5/Sensors/MPL115A2-Coefficients/m-p/873474#M5531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah ha - thanks - that makes sense!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 15:50:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MPL115A2-Coefficients/m-p/873474#M5531</guid>
      <dc:creator>beng_</dc:creator>
      <dc:date>2019-02-21T15:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: MPL115A2 Coefficients</title>
      <link>https://community.nxp.com/t5/Sensors/MPL115A2-Coefficients/m-p/873475#M5532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works for the first Co-effeicent a0 - but not the next one b1. In the data-sheet:&lt;/P&gt;&lt;P&gt;0xB3F9 = -2.37585&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0xB3F9 = &lt;STRONG&gt;&lt;SPAN style="color: #ff00ff;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;01&lt;/SPAN&gt;&lt;SPAN style="color: #339966;"&gt;1 0011 1111 1001&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;There's one sign bit -&amp;nbsp;&lt;STRONG style="color: #ff00ff; "&gt;1&lt;/STRONG&gt; - so the number is negative&lt;/P&gt;&lt;P&gt;Two Integer bits -&amp;nbsp;&lt;STRONG style="color: #000080; "&gt;01&lt;/STRONG&gt; - so the integer portion is 1 (not 2 according to the datasheet)&lt;/P&gt;&lt;P&gt;13 Fraction bits -&amp;nbsp;&lt;STRONG style="color: #339966; "&gt;1 0011 1111 1001&lt;/STRONG&gt; - (this is 0.5 + 0.0625 + 0.03125 + 0.015625 0.007815 etc...) so the integer portion is 0.62414551 (not 0.37585 according to the datasheet).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2019 12:12:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MPL115A2-Coefficients/m-p/873475#M5532</guid>
      <dc:creator>beng_</dc:creator>
      <dc:date>2019-02-22T12:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: MPL115A2 Coefficients</title>
      <link>https://community.nxp.com/t5/Sensors/MPL115A2-Coefficients/m-p/873476#M5533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never mind got it - there's a later note in the data sheets that says:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;NOTE&lt;/STRONG&gt;: Negative coefficients are coded in 2’s complement notation.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Taking the bit inverse of all bits gives me the correct answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2019 12:16:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MPL115A2-Coefficients/m-p/873476#M5533</guid>
      <dc:creator>beng_</dc:creator>
      <dc:date>2019-02-22T12:16:34Z</dc:date>
    </item>
  </channel>
</rss>

