<?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: How to fix my DMIC interface data ? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-fix-my-DMIC-interface-data/m-p/895305#M35894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning, Xiangjun,&lt;/P&gt;&lt;P&gt;Indeed, that was the problem. Based on the original values, I thought it may have been some sort of roll-over problem. I wrote some code to handle the Two's-complement case and everything is as it should be - Thanks !&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Apr 2019 23:43:36 GMT</pubDate>
    <dc:creator>jameswhitney</dc:creator>
    <dc:date>2019-04-17T23:43:36Z</dc:date>
    <item>
      <title>How to fix my DMIC interface data ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-fix-my-DMIC-interface-data/m-p/895303#M35892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;I now have a DMIC project running on a LPCXpresso54114 *without* the MAO shield, i.e., I go directly into the DMIC interface. I am able to capture and store data. The problem is the data will go from i.e., very low values during silence to almost 'FFFF' (its decimal equivalent) instantaneously *STILL DURING SILENCE*.&lt;/P&gt;&lt;P&gt;2 &lt;BR /&gt; 4 &lt;BR /&gt; 5 &lt;BR /&gt; 3 &lt;BR /&gt; 3 &lt;BR /&gt; 0 &lt;BR /&gt; 65533 &lt;BR /&gt; 65530 &lt;BR /&gt; 65530 &lt;BR /&gt; 65530 &lt;BR /&gt; 65531 &lt;BR /&gt; 65530&lt;/P&gt;&lt;P&gt;65533 &lt;BR /&gt; 65535 &lt;BR /&gt; 0 &lt;BR /&gt; 1 &lt;BR /&gt; 1 &lt;BR /&gt; 2 &lt;BR /&gt; 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'true' values seem to reflect the conditions of the acquisition environment, i.e., during silence (DMIC covered with several layers of absorber) the values are very small single/double digits. During, i.e., speech can see higher amplitude values and some modulation.&lt;/P&gt;&lt;P&gt;Would like to get some insight on what might be causing this, and how to fix it.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2019 15:17:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-fix-my-DMIC-interface-data/m-p/895303#M35892</guid>
      <dc:creator>jameswhitney</dc:creator>
      <dc:date>2019-04-15T15:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix my DMIC interface data ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-fix-my-DMIC-interface-data/m-p/895304#M35893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, James,&lt;/P&gt;&lt;P&gt;Regarding your question, I think the PCM data is in complementary format, pls refer to the following diagram in UM10914.pdf.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/79506i2627D17AE70499D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In 16 bits complementary, for the positive data, it is from 0, 1,2... to 0x7FFF, the 0x7FFF is the maximum. For negative value, it is from 0xFFFF, 0xFFFE, 0xFFFD...0x8000, the 0xFFFF approaches to zero, 0x8000 is the minimum value.&lt;/P&gt;&lt;P&gt;This is the complementary data format description:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/79401iF7810924C41C828A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I conclusion, I think it is okay the PCM data is from 0~5 or 65530~65535 in silent environment.&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 06:50:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-fix-my-DMIC-interface-data/m-p/895304#M35893</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2019-04-16T06:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix my DMIC interface data ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-fix-my-DMIC-interface-data/m-p/895305#M35894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning, Xiangjun,&lt;/P&gt;&lt;P&gt;Indeed, that was the problem. Based on the original values, I thought it may have been some sort of roll-over problem. I wrote some code to handle the Two's-complement case and everything is as it should be - Thanks !&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2019 23:43:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-fix-my-DMIC-interface-data/m-p/895305#M35894</guid>
      <dc:creator>jameswhitney</dc:creator>
      <dc:date>2019-04-17T23:43:36Z</dc:date>
    </item>
  </channel>
</rss>

