<?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>MQX Software Solutions中的主题 Re: Possible bug on ADC</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Possible-bug-on-ADC/m-p/174477#M2195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Teckna,&lt;/P&gt;&lt;P&gt;I think you are right and I will consult with our MQX Development team.&lt;/P&gt;&lt;P&gt;I think we need a 32-bit accumulator.&lt;/P&gt;&lt;P&gt;I will update post when I hear back from MQX Development team.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jun 2012 22:37:53 GMT</pubDate>
    <dc:creator>DavidS</dc:creator>
    <dc:date>2012-06-22T22:37:53Z</dc:date>
    <item>
      <title>Possible bug on ADC</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Possible-bug-on-ADC/m-p/174476#M2194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using MQX 3.8, CW 10.2 and a custom board based on K60N512.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I open&amp;nbsp;the ADC channel with the ADC_CHANNEL_ACCUMULATE attribute set, the driver accumulate all samples from one sequence into one value.&lt;/P&gt;&lt;P&gt;The problem is that the buffer is accumulated in a buffer (result)&amp;nbsp;defined as ADC_VALUE_TYPE, that is defined as uint_16 (16 bits wide)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;adc_ch-&amp;gt;g.buffer_driver-&amp;gt;result += adc_ptr-&amp;gt;R[ch_num]; (file adc_kadc.c, line 635)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Kinetis ADC module is 16 bits wide, than&amp;nbsp;the values&amp;nbsp;cannot be accumulated otherwise an overflow error can occur.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Teckna&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 20:38:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Possible-bug-on-ADC/m-p/174476#M2194</guid>
      <dc:creator>Teckna</dc:creator>
      <dc:date>2012-06-22T20:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug on ADC</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Possible-bug-on-ADC/m-p/174477#M2195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Teckna,&lt;/P&gt;&lt;P&gt;I think you are right and I will consult with our MQX Development team.&lt;/P&gt;&lt;P&gt;I think we need a 32-bit accumulator.&lt;/P&gt;&lt;P&gt;I will update post when I hear back from MQX Development team.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 22:37:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Possible-bug-on-ADC/m-p/174477#M2195</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2012-06-22T22:37:53Z</dc:date>
    </item>
  </channel>
</rss>

