<?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: Need ADC demo guidelines  in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Need-ADC-demo-guidelines/m-p/441921#M14775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on CodeWarrior v10.6 and of MQX v4.0. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2015 04:28:40 GMT</pubDate>
    <dc:creator>garimaparashar</dc:creator>
    <dc:date>2015-07-07T04:28:40Z</dc:date>
    <item>
      <title>Need ADC demo guidelines</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Need-ADC-demo-guidelines/m-p/441917#M14771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am beginner in ADC.&lt;/P&gt;&lt;P&gt;I am working with demo project of ADC. It is working perfectly but I want some information about ADC demo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. What is Sample need to trigger event in ADC_INIT_CHANNEL_STRUCT?? If I am increasing it then reading of ADC output seems fast...!! I dont understand that logic.&lt;/P&gt;&lt;P&gt;2. Why Event is required? &lt;/P&gt;&lt;P&gt;3. What is the purpose of Circular buffer size? Is it doing some kind of averaging?? What I need to do to get average output (..Not Manually).&lt;/P&gt;&lt;P&gt;4. If reference voltage is 3.31V (I measured with Multimeter) then is it possible to give more that 3.31V as input say 10V.&lt;/P&gt;&lt;P&gt;5. What is Formula that is converting Analog input Voltage into 16bit Digital output ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- I read that Max Rang of Vin is (VREFH * 31/32) from K60P144M120SF3.pdf (SnapShot attached).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I am trying to figure it out. I read MQXIOUG, TWR‐K60D100M, K60P144M120SF3.&amp;nbsp; But I am helpless. Cant get brief idea. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me to sort this out. I am so much confused..:smileysad:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 07:35:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Need-ADC-demo-guidelines/m-p/441917#M14771</guid>
      <dc:creator>garimaparashar</dc:creator>
      <dc:date>2015-06-30T07:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need ADC demo guidelines</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Need-ADC-demo-guidelines/m-p/441918#M14772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know about the rest questions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But In response to do averaging, I read &lt;A href="https://community.nxp.com/message/70709"&gt;ADC_CHANNEL_ACCUMULATE&lt;/A&gt; and I tried some trial and error and found that, by setting &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;ADC_CHANNEL_ACCUMULATE &lt;/SPAN&gt;flag in ADC_INIT_CHANNEL_STRUCT, it will do sum of all number_samples( Not averaging ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wait for _lweven then reading output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And to do average I will divide &lt;STRONG&gt;data.result&lt;/STRONG&gt; (that is a sum of&amp;nbsp; sampled outputs) by&amp;nbsp; number_samples. And I get Average ADC output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know whether this is a right method or wrong...but what I am facing is, whether I am waiting for events or not, it will take a same conversion time..!! Why ? If my code works fine without _lwevent then why I need to wait for Event (seen from&amp;nbsp; &lt;A href="https://community.nxp.com/message/70709"&gt;ADC_CHANNEL_ACCUMULATE&lt;/A&gt; )&amp;nbsp; ?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is there any other method to do averaging? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;How to set&amp;nbsp; ADC peripheral in ADC IP integrate HW arithmetic averaging? &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Any Idea&lt;/SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Please help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Utsavi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 07:17:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Need-ADC-demo-guidelines/m-p/441918#M14772</guid>
      <dc:creator>utsavikalpesh</dc:creator>
      <dc:date>2015-07-01T07:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need ADC demo guidelines</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Need-ADC-demo-guidelines/m-p/441919#M14773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Garima, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let me know the MQX version you are using??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 19:36:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Need-ADC-demo-guidelines/m-p/441919#M14773</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2015-07-06T19:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need ADC demo guidelines</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Need-ADC-demo-guidelines/m-p/441920#M14774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Garima, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your questions 4 and 5:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 4. For proper conversion, the input voltage must fall between the reference voltages: VREFH and VREFL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;If the input is equal to or exceeds VREFH, the converter circuit converts the signal to 0xFFF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides, the VREF must not exceed the VDDA value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. As an example, if the ADC resolution is 3, the Less Significant Bit is set as follow:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="adc.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52241i5586993A965CF836/image-size/large?v=v2&amp;amp;px=999" role="button" title="adc.JPG" alt="adc.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the figure, depends of the analog input, there is a corresponding digital output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to get more information about the ADC, please refer to the following link:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-103932"&gt;https://community.freescale.com/docs/DOC-103932&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information will be useful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day.&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 20:35:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Need-ADC-demo-guidelines/m-p/441920#M14774</guid>
      <dc:creator>david_diaz</dc:creator>
      <dc:date>2015-07-06T20:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need ADC demo guidelines</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Need-ADC-demo-guidelines/m-p/441921#M14775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on CodeWarrior v10.6 and of MQX v4.0. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 04:28:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Need-ADC-demo-guidelines/m-p/441921#M14775</guid>
      <dc:creator>garimaparashar</dc:creator>
      <dc:date>2015-07-07T04:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need ADC demo guidelines</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Need-ADC-demo-guidelines/m-p/441922#M14776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for giving brief idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one more question I want to ask. If my input voltage is say 5V (beyond the range of Vdda) then how to input this?&lt;/P&gt;&lt;P&gt;Is there any Idea? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Garima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 04:35:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Need-ADC-demo-guidelines/m-p/441922#M14776</guid>
      <dc:creator>garimaparashar</dc:creator>
      <dc:date>2015-07-07T04:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need ADC demo guidelines</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Need-ADC-demo-guidelines/m-p/441923#M14777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Garima,&lt;/P&gt;&lt;P&gt;Use a voltage divider to reduce 5V to 3.3V.&lt;/P&gt;&lt;P&gt;Reference:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.sparkfun.com/tutorials/voltage-dividers/all?print=1" title="https://learn.sparkfun.com/tutorials/voltage-dividers/all?print=1"&gt;Voltage Dividers - learn.sparkfun.com&lt;/A&gt; &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>Tue, 07 Jul 2015 13:57:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Need-ADC-demo-guidelines/m-p/441923#M14777</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-07-07T13:57:31Z</dc:date>
    </item>
  </channel>
</rss>

