<?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: Unable to read ADC values using processor expert in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Unable-to-read-ADC-values-using-processor-expert/m-p/632396#M5427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mahendra,&lt;/P&gt;&lt;P&gt;Thanks for contacting us !&lt;/P&gt;&lt;P&gt;I have checked your question , your ADC component configuration lack of one step about&lt;/P&gt;&lt;P&gt;the "A/D samples":&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/5227i2523868B9CD6BF42/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;&lt;/P&gt;&lt;P&gt;After you configure this , you can use the function of "AD1_GetValue" to read ADC result :&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/5314iC45A718C1991139D/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;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Sep 2016 04:23:53 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2016-09-20T04:23:53Z</dc:date>
    <item>
      <title>Unable to read ADC values using processor expert</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Unable-to-read-ADC-values-using-processor-expert/m-p/632395#M5426</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 have a question regarding the ADC block in Processor expert. I am using CodeWarrior version 10.6.4 and the microcontroller is part of the MC9S12ZVC&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;family&amp;nbsp;and I&amp;nbsp;am using a&amp;nbsp;USB multilink universal debugger to communicate with the same. In the processor expert it gives me an option to get all the values for the channels configured and store it in an array or read a specific channel. But it looks like only 1 channel is read every single time, when I step&amp;nbsp;into the function it doesn't look like it is even checking for the channel number.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Here is the configuration I am using for my ADC.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="164710_164710.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122247i6FE24004D1A9C521/image-size/large?v=v2&amp;amp;px=999" role="button" title="164710_164710.png" alt="164710_164710.png" /&gt;&lt;/span&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/5803i0DBA1AD6234848CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Below is the code generated by processor expert when I use the AD1_GetChanValue16() function -&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="164717_164717.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122248i5D352D444D3ACB1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="164717_164717.png" alt="164717_164717.png" /&gt;&lt;/span&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/5848i041FF516890AC02A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;As mentioned it does not seem to use the channel number variable, which leads to me getting the same&amp;nbsp;value no matter what variable I pass.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am calling the AD1_MeasureChan(0) function before calling the Get chan function in polling mode. Am I using the wrong function to read the ADC's ? Also, are there any particular register's that I need to enable for this to work ?&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would deeply appreciate it if someone could throw some light on this matter.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Mahendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 21:03:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Unable-to-read-ADC-values-using-processor-expert/m-p/632395#M5426</guid>
      <dc:creator>jmu</dc:creator>
      <dc:date>2016-09-19T21:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read ADC values using processor expert</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Unable-to-read-ADC-values-using-processor-expert/m-p/632396#M5427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mahendra,&lt;/P&gt;&lt;P&gt;Thanks for contacting us !&lt;/P&gt;&lt;P&gt;I have checked your question , your ADC component configuration lack of one step about&lt;/P&gt;&lt;P&gt;the "A/D samples":&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/5227i2523868B9CD6BF42/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;&lt;/P&gt;&lt;P&gt;After you configure this , you can use the function of "AD1_GetValue" to read ADC result :&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/5314iC45A718C1991139D/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;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 04:23:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Unable-to-read-ADC-values-using-processor-expert/m-p/632396#M5427</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-09-20T04:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read ADC values using processor expert</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Unable-to-read-ADC-values-using-processor-expert/m-p/632397#M5428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Alice! That solved my problem straight away.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 21:42:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Unable-to-read-ADC-values-using-processor-expert/m-p/632397#M5428</guid>
      <dc:creator>jmu</dc:creator>
      <dc:date>2016-09-20T21:42:09Z</dc:date>
    </item>
  </channel>
</rss>

