<?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>Kinetis Microcontrollers中的主题 afe resolution of MKM34Z256**</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/afe-resolution-of-MKM34Z256/m-p/646590#M39234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I need for a measurement application the 24bit ADC of the&amp;nbsp;MKM34Z256. I use for the first steps the demo code "afe_qtimer" on a TWR-KM34Z EVM - and are a bit confused about the resolution of the ADC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I disabled the PGA and connected SDADP with the SDADM Pin of the used channel have put the polling of the ADC into a&amp;nbsp; loop and looked to the results.&lt;/P&gt;&lt;P&gt;Decimator Oersampling Ratio is set to 2048 - Startupcount like the demo 80U.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ADC results looks like the least 8..9 bits are noise? That means, that from 24 bits only 15..16 bits are usable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the reasons?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Manfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2016 19:22:08 GMT</pubDate>
    <dc:creator>manfredeggersdo</dc:creator>
    <dc:date>2016-10-18T19:22:08Z</dc:date>
    <item>
      <title>afe resolution of MKM34Z256**</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/afe-resolution-of-MKM34Z256/m-p/646590#M39234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I need for a measurement application the 24bit ADC of the&amp;nbsp;MKM34Z256. I use for the first steps the demo code "afe_qtimer" on a TWR-KM34Z EVM - and are a bit confused about the resolution of the ADC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I disabled the PGA and connected SDADP with the SDADM Pin of the used channel have put the polling of the ADC into a&amp;nbsp; loop and looked to the results.&lt;/P&gt;&lt;P&gt;Decimator Oersampling Ratio is set to 2048 - Startupcount like the demo 80U.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ADC results looks like the least 8..9 bits are noise? That means, that from 24 bits only 15..16 bits are usable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the reasons?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Manfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 19:22:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/afe-resolution-of-MKM34Z256/m-p/646590#M39234</guid>
      <dc:creator>manfredeggersdo</dc:creator>
      <dc:date>2016-10-18T19:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: afe resolution of MKM34Z256**</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/afe-resolution-of-MKM34Z256/m-p/646591#M39235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Manfred,&lt;/P&gt;&lt;P&gt;The&amp;nbsp; AFE resolution is&amp;nbsp; 1.0V/0x7FFFFF=1V/8388607=1.192*10**(-7)V.&lt;/P&gt;&lt;P&gt;Assume the sample is 0x1FF or 512, it is 0.06mV.&amp;nbsp; 512*1.192*10**(-7)V=0.06mV.&lt;/P&gt;&lt;P&gt;You can connect b oth&amp;nbsp; the SDADPx and SDADMx to GND to test the noise or offset.&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>Wed, 19 Oct 2016 03:00:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/afe-resolution-of-MKM34Z256/m-p/646591#M39235</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2016-10-19T03:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: afe resolution of MKM34Z256**</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/afe-resolution-of-MKM34Z256/m-p/646592#M39236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Xiangjun&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;The resolution is fine - i will need for the project approx 18 "real stable bits" resolution.&lt;/P&gt;&lt;P&gt;But - if I do connect the SDADPx and the SDADMx to GND and run the demo in a loop i get values like:&lt;/P&gt;&lt;P&gt;0xffffffe0, 0xfffffbb3, 0xfffffe72, 0xfffffa77, 0xfffffd6f...&lt;/P&gt;&lt;P&gt;In my eyes it looks like the least 8..10 bits are noise and not stable.&lt;/P&gt;&lt;P&gt;Am I wrong?&lt;/P&gt;&lt;P&gt;What could it be? How I can improve that?&lt;/P&gt;&lt;P&gt;With best regards&lt;/P&gt;&lt;P&gt;Manfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 06:32:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/afe-resolution-of-MKM34Z256/m-p/646592#M39236</guid>
      <dc:creator>manfredeggersdo</dc:creator>
      <dc:date>2016-10-19T06:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: afe resolution of MKM34Z256**</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/afe-resolution-of-MKM34Z256/m-p/646593#M39237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manfred,&lt;/P&gt;&lt;P&gt;device datasheet provides typical SNR of 90dB with PGA disabled, 3000 sps output data rate and 500mVp-p input signal range. This translates to around 15&amp;nbsp;stable bits &lt;SPAN&gt;(ENOB)&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Do you need full 500 mVp-p input signal range?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If lower input signal range is needed engage PGA to get better ENOB for given lower input signal range.&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Do you need full 3000 sps output sample rate?&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If slower output sample rate is fine then perform&amp;nbsp;additional software averaging. For example, if 50sps would be enough then you gain additional ~3 bits of ENOB.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If measured data are processed by algorithm that is based on accumulation and/or filtering then always averaging comes into play and will be the source for further improving resolution of computed results. We can look on your application more and do some additional math if you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Martin M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 07:23:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/afe-resolution-of-MKM34Z256/m-p/646593#M39237</guid>
      <dc:creator>MarMi</dc:creator>
      <dc:date>2016-10-20T07:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: afe resolution of MKM34Z256**</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/afe-resolution-of-MKM34Z256/m-p/646594#M39238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Martin, &lt;/P&gt;&lt;P&gt;I don't want do tell to much about the project in a community like this, but let me decribe this as following:&lt;/P&gt;&lt;P&gt;I need a result with min 18 stable bits - approx every 20ms.&lt;/P&gt;&lt;P&gt;So, I have time for a slower sample rate and software averaging.&lt;/P&gt;&lt;P&gt;I tried a slower sample rate - with a different Value for the register clockDivider =&amp;nbsp; kAFE_ClockDivider256&amp;nbsp; but it seems to make mor worse results than better.&lt;/P&gt;&lt;P&gt;I tried a simple filter too - like (pseudocode):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// make a unsigned long with space for bit-shifting (Channel 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; afe_result = (uint32_t)((AFE_GetChannelConversionValue(AFE, 0)&amp;amp; 0xFFFFFF)+0x7FFFFF);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// simple digital filter function&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; u32filter_reg = u32filter_reg - u32filter_reg &amp;gt;&amp;gt; AFEFILTERFACTOR) + afe_result;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; u32filtered_result =&amp;nbsp; (uint32_t)(u32filter_reg&amp;gt;&amp;gt;AFEFILTERFACTOR);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with bit-shift-factor AFE4FILTERFACTOR of 4.&lt;/P&gt;&lt;P&gt;So it looks like I got approx 16..17 stable bits - but I need 1, 2 bits more...&lt;/P&gt;&lt;P&gt;Do you got a hint for a better way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Manfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 12:48:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/afe-resolution-of-MKM34Z256/m-p/646594#M39238</guid>
      <dc:creator>manfredeggersdo</dc:creator>
      <dc:date>2016-10-21T12:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: afe resolution of MKM34Z256**</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/afe-resolution-of-MKM34Z256/m-p/646595#M39239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hello Manfred,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;keep AFE setting to output 3000 sps (AFE clocked by 6.144 MHz generated by PLL, OSR set to 2048). Accumulate 60 subsequent measurements and after final accumulation divide sum by 60 - such results will be obtained 50 times per second. Try to look on the number of stable bits of results averaged this way. &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;My e-mail address is: &lt;A href="mailto:martin.mienkina@nxp.com"&gt;martin.mienkina@nxp.com&lt;/A&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Martin M. &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 13:18:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/afe-resolution-of-MKM34Z256/m-p/646595#M39239</guid>
      <dc:creator>MarMi</dc:creator>
      <dc:date>2016-10-21T13:18:53Z</dc:date>
    </item>
  </channel>
</rss>

