<?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>topic Re: MPL115A1- Barometer Coefficient reading in Sensors</title>
    <link>https://community.nxp.com/t5/Sensors/MPL115A1-Barometer-Coefficient-reading/m-p/252869#M411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Your assumption is basically correct, but you need to take into consideration that the last two bits of the c12_LSB are zero as shown on page 5 of the data sheet:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;c12 MSB byte = c12[13:6] = [b13 , b12 , b11 , b10 , b9 , b8 , b7 , b6]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;c12 LSB byte = c12[5:0] &amp;amp; “00” = [b5 , b4 , b3 , b2 , b1 , b0 , 0 , 0]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;and the c12 coefficient is formatted as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;c12 = b13 0 . 000 000 000 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;So you are right that each fractional bit has the value of 1 / 2&lt;/SPAN&gt;&lt;SPAN lang="CS" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;^(9+13), but the 16-bit c12 value needs to be first right shifted by 2 (or divided by 4) to obtain 13 fractional bits.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="CS" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Considering our example, the 16-bit c12 = 0x38CC. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="CS" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Then b12 .. b0 = 0b011 1000 1100 11 = 3635&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="CS" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;and c12 = 3635 / 2^22 = 0.00086665 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="CS" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I hope it helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="CS" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="CS" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="CS" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Tomas&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Nov 2013 09:50:08 GMT</pubDate>
    <dc:creator>TomasVaverka</dc:creator>
    <dc:date>2013-11-04T09:50:08Z</dc:date>
    <item>
      <title>MPL115A1- Barometer Coefficient reading</title>
      <link>https://community.nxp.com/t5/Sensors/MPL115A1-Barometer-Coefficient-reading/m-p/252868#M410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having trouble figuring out the example in the data sheet for reading and calculating the c12 coefficient.&amp;nbsp; The data sheet indicates there are 13 fractional bits, plus a sign bit, and it has 9 decimal points of pad built in.&amp;nbsp; In the example reading and calculation it shows a raw reading of the MSB and LSB of the coefficient as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c12 coefficient MSB = 0x38&lt;/P&gt;&lt;P&gt;c12 coefficient LSB = 0xCC c12 coefficient = 0x38CC = 0.00086665&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, the 0x38CC value is 14 bits.&amp;nbsp; Even if you assume the 14th bit is actually the sign bit, then the value calculated should be negative.&lt;/P&gt;&lt;P&gt;From the description of 'dec point zero pad', I assume that means that each fractional bit actually has the resolution of 1/(2**(9 + 13))= 1/4194304.&lt;/P&gt;&lt;P&gt;If you take the straight 0x38cc= 14540, then c12= 14540/4194304 = 0.003466 (not quite the value in the example).&lt;/P&gt;&lt;P&gt;If you take 0x38cc and assume the 14th bit is the sign bit, then after the 2's compliment you get 0x733= 1843 for the absolute value.&amp;nbsp; This yields&lt;/P&gt;&lt;P&gt;c12= 1843/4194304 = 0.0004394 (about half of the example value- but the wrong sign).&amp;nbsp; So- what am I missing?&amp;nbsp; Or is the example incorrect?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 21:25:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MPL115A1-Barometer-Coefficient-reading/m-p/252868#M410</guid>
      <dc:creator>ttahut</dc:creator>
      <dc:date>2026-02-03T21:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: MPL115A1- Barometer Coefficient reading</title>
      <link>https://community.nxp.com/t5/Sensors/MPL115A1-Barometer-Coefficient-reading/m-p/252869#M411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Your assumption is basically correct, but you need to take into consideration that the last two bits of the c12_LSB are zero as shown on page 5 of the data sheet:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;c12 MSB byte = c12[13:6] = [b13 , b12 , b11 , b10 , b9 , b8 , b7 , b6]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;c12 LSB byte = c12[5:0] &amp;amp; “00” = [b5 , b4 , b3 , b2 , b1 , b0 , 0 , 0]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;and the c12 coefficient is formatted as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;c12 = b13 0 . 000 000 000 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;So you are right that each fractional bit has the value of 1 / 2&lt;/SPAN&gt;&lt;SPAN lang="CS" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;^(9+13), but the 16-bit c12 value needs to be first right shifted by 2 (or divided by 4) to obtain 13 fractional bits.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="CS" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Considering our example, the 16-bit c12 = 0x38CC. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="CS" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Then b12 .. b0 = 0b011 1000 1100 11 = 3635&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="CS" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;and c12 = 3635 / 2^22 = 0.00086665 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="CS" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I hope it helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="CS" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="CS" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="CS" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Tomas&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 09:50:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MPL115A1-Barometer-Coefficient-reading/m-p/252869#M411</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2013-11-04T09:50:08Z</dc:date>
    </item>
  </channel>
</rss>

