<?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 get ADC working on KDSK1.2+PEx in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-get-ADC-working-on-KDSK1-2-PEx/m-p/396598#M1309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yaran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Does the channel is right ?&lt;/P&gt;&lt;P&gt;- I recommend you use the latest version of KSDK1.3 , you can download it here :&lt;/P&gt;&lt;P&gt;&lt;A href="https://freescale.flexnetoperations.com/control/frse/product?child_plneID=695287" title="https://freescale.flexnetoperations.com/control/frse/product?child_plneID=695287"&gt;https://freescale.flexnetoperations.com/control/frse/product?child_plneID=695287&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Under the ksdk1.3 install directory , there is a adc16 demo , i have test the demo on &lt;/P&gt;&lt;P&gt;TWRK21D50m board , i think it is the same with your chip, you can refer to .&lt;/P&gt;&lt;P&gt;The demo is here :&amp;nbsp; KSDK_1.3.0\examples\twrk21d50m\driver_examples\adc16 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Nov 2015 04:50:29 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2015-11-11T04:50:29Z</dc:date>
    <item>
      <title>How to get ADC working on KDSK1.2+PEx</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-get-ADC-working-on-KDSK1-2-PEx/m-p/396597#M1308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to read ADC value from a pot. &lt;/P&gt;&lt;P&gt;The chip configuration is MK20DX256VLL10 and software i used KDS3.0+ KSDK1.2+PEx.&lt;/P&gt;&lt;P&gt;I am sure there is no problem with hardware since it works in my old code with KDS2.0+PEx.&lt;/P&gt;&lt;P&gt;So I am thinking my ADC configuration and code sequence might went wrong. I checked &lt;/P&gt;&lt;P&gt;example code and couldnt figure out what went wrong. &lt;/P&gt;&lt;P&gt;Every time i run the code, the ADC value jumped from 255 to 0. It made no difference when I plug and &lt;/P&gt;&lt;P&gt;unplug pot. I have attached my code project and configuration screen shot. &lt;/P&gt;&lt;P&gt;Could someone help? Thanks in advance. &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yaran&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="99150_99150.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120787i21EF275BD34EFDDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="99150_99150.JPG" alt="99150_99150.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="adc_capture.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5976iFE316B1EC75C03A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="adc_capture.JPG" alt="adc_capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="99151_99151.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120788i1A54E74E129B4EEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="99151_99151.JPG" alt="99151_99151.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="adc_capture_1.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6004iA28F1D7D648BD50E/image-size/large?v=v2&amp;amp;px=999" role="button" title="adc_capture_1.JPG" alt="adc_capture_1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338890"&gt;adc_test.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 23:23:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-get-ADC-working-on-KDSK1-2-PEx/m-p/396597#M1308</guid>
      <dc:creator>yarannan</dc:creator>
      <dc:date>2015-11-09T23:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ADC working on KDSK1.2+PEx</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-get-ADC-working-on-KDSK1-2-PEx/m-p/396598#M1309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yaran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Does the channel is right ?&lt;/P&gt;&lt;P&gt;- I recommend you use the latest version of KSDK1.3 , you can download it here :&lt;/P&gt;&lt;P&gt;&lt;A href="https://freescale.flexnetoperations.com/control/frse/product?child_plneID=695287" title="https://freescale.flexnetoperations.com/control/frse/product?child_plneID=695287"&gt;https://freescale.flexnetoperations.com/control/frse/product?child_plneID=695287&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Under the ksdk1.3 install directory , there is a adc16 demo , i have test the demo on &lt;/P&gt;&lt;P&gt;TWRK21D50m board , i think it is the same with your chip, you can refer to .&lt;/P&gt;&lt;P&gt;The demo is here :&amp;nbsp; KSDK_1.3.0\examples\twrk21d50m\driver_examples\adc16 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2015 04:50:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-get-ADC-working-on-KDSK1-2-PEx/m-p/396598#M1309</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-11-11T04:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ADC working on KDSK1.2+PEx</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-get-ADC-working-on-KDSK1-2-PEx/m-p/396599#M1310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;Thanks for your attention. Firstly, I don't think i will switch KSDK1.3 for&lt;/P&gt;&lt;P&gt;now, but I will research more about it to know the differences with KSDK1.2.&lt;/P&gt;&lt;P&gt;Secondly, I am working on a project which is in a critical time schedule. &lt;/P&gt;&lt;P&gt;Back to the question I was asking above, I tried ksdk1.2 ADC demo example &lt;/P&gt;&lt;P&gt;for twrk60, it works as well. I dont doubt there is something wrong with sample code.&lt;/P&gt;&lt;P&gt;It just i am using process expert at the same time, i am thinking I did something with&lt;/P&gt;&lt;P&gt;one or some of component configuration parameters.&lt;/P&gt;&lt;P&gt;Lastly I am pretty sure i used correct channel. That was the first thing i check.&lt;/P&gt;&lt;P&gt;If you have a time to take a look, that would be great. &lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yaran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2015 14:28:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-get-ADC-working-on-KDSK1-2-PEx/m-p/396599#M1310</guid>
      <dc:creator>yarannan</dc:creator>
      <dc:date>2015-11-11T14:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ADC working on KDSK1.2+PEx</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-get-ADC-working-on-KDSK1-2-PEx/m-p/396600#M1311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yaran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, i create one ADC sample project on SDK1.2+PE, while for i have not the MK20DX256VLL10 chip , i test on K21D50,&lt;/P&gt;&lt;P&gt;while it is the same , please see the attachment . And when i change the resistance values , the ADC will changed , this screenshot&lt;/P&gt;&lt;P&gt;is the result i test on my side :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/22347i48DC8B864A53C307/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- I checked your project about the configuration of fsl_adc16 component , it have no error , my project is&amp;nbsp; the same with yours (except the ADC chn).&lt;/P&gt;&lt;P&gt;So , i think you should be sure what about your ADC signal , you'd better check it use the oscilloscope or other instruments .&lt;/P&gt;&lt;P&gt;And also i don't know whether is the reason of MQX , could you please first create one simple bareboard project , only add fsl_adc , like my project(or directly&lt;/P&gt;&lt;P&gt;copy my code ), test whether it can work well .&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;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 09:07:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-get-ADC-working-on-KDSK1-2-PEx/m-p/396600#M1311</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-11-18T09:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ADC working on KDSK1.2+PEx</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-get-ADC-working-on-KDSK1-2-PEx/m-p/396601#M1312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;I got it working. The reason is beside of the code, i have to add another line of code to &lt;/P&gt;&lt;P&gt;configure channel (which is channel b in my project). I thought i set up pin at PE configuration.&lt;/P&gt;&lt;P&gt;Thanks for your helps though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yaran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 16:11:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-get-ADC-working-on-KDSK1-2-PEx/m-p/396601#M1312</guid>
      <dc:creator>yarannan</dc:creator>
      <dc:date>2015-12-03T16:11:22Z</dc:date>
    </item>
  </channel>
</rss>

