<?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 MPL3115A2 question: in Sensors</title>
    <link>https://community.nxp.com/t5/Sensors/MPL3115A2-question/m-p/266768#M468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;So the 20 bit altitude value consists of 2 bytes with a 2-s complement signed number,&amp;nbsp;&amp;nbsp; and 4 bits in the third byte representing fractions of a metre as an unsigned number.&lt;/TD&gt;&lt;TD&gt;So if I go to Death Valley and the first two bytes are -30 metres&amp;nbsp; and the fractional bits in the 3rd byte amount to 0.6 metres,&amp;nbsp;&amp;nbsp; does that make the total result to be -30.6 metres or -29.4 metres ?&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2026 21:25:51 GMT</pubDate>
    <dc:creator>rheal</dc:creator>
    <dc:date>2026-02-03T21:25:51Z</dc:date>
    <item>
      <title>MPL3115A2 question:</title>
      <link>https://community.nxp.com/t5/Sensors/MPL3115A2-question/m-p/266768#M468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;So the 20 bit altitude value consists of 2 bytes with a 2-s complement signed number,&amp;nbsp;&amp;nbsp; and 4 bits in the third byte representing fractions of a metre as an unsigned number.&lt;/TD&gt;&lt;TD&gt;So if I go to Death Valley and the first two bytes are -30 metres&amp;nbsp; and the fractional bits in the 3rd byte amount to 0.6 metres,&amp;nbsp;&amp;nbsp; does that make the total result to be -30.6 metres or -29.4 metres ?&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 21:25:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MPL3115A2-question/m-p/266768#M468</guid>
      <dc:creator>rheal</dc:creator>
      <dc:date>2026-02-03T21:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: MPL3115A2 question:</title>
      <link>https://community.nxp.com/t5/Sensors/MPL3115A2-question/m-p/266769#M469</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;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;The fractional component needs to be added to the integer component, so the result would be -29.4 meters.&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;Let’s consider another example:&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;OUT_P_MSB = 0xFF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;OUT_P_CSB = 0xFF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;OUT_P_LSB = 0xF0&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;The integer component is -1, the fractional component 0.9375 ((0xF0 &amp;gt;&amp;gt; 4) * 0.0625) and the resulting altitude -1 + 0.9375 = -0.0625 meters.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find a simple example code for the MPL3115A2 working in the Altimeter mode in &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-95378"&gt;this&lt;/A&gt; document. &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;Regards,&lt;/P&gt;&lt;P&gt;Tomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 09:06:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MPL3115A2-question/m-p/266769#M469</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2013-12-18T09:06:52Z</dc:date>
    </item>
  </channel>
</rss>

