<?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: Reading analog data from FRDM KW38 board in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reading-analog-data-from-FRDM-KW38-board/m-p/1158227#M58240</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;notanivipul&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Do you also set the&amp;nbsp;&lt;SPAN&gt;ADC0-&amp;gt;SC1[0]&amp;nbsp; DIFF bit to 0?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Now, what's the issue you are meeting?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Do you try the SDK code, and modify the channel to ADC channel1:&lt;/P&gt;
&lt;P&gt;SDK_2.6.7_FRDM-KW38\boards\frdmkw38\driver_examples\adc16\polling&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;The SDK can be downloaded from this link:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;A href="https://mcuxpresso.nxp.com/" target="_blank"&gt;https://mcuxpresso.nxp.com/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Whether it works or not?&lt;/P&gt;
&lt;P&gt;Please try the SDK ADC code at first.&lt;/P&gt;
&lt;P&gt;Any updated information, just kindly let me know.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Kerry&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-----------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Thu, 24 Sep 2020 02:01:52 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2020-09-24T02:01:52Z</dc:date>
    <item>
      <title>Reading analog data from FRDM KW38 board</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reading-analog-data-from-FRDM-KW38-board/m-p/1157182#M58215</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am facing trouble in reading analog data from my FRDM KW38 board, I am confused on what bases we select the SDC1 channel and ADC0&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Vipul&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 20:34:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reading-analog-data-from-FRDM-KW38-board/m-p/1157182#M58215</guid>
      <dc:creator>notanivipul</dc:creator>
      <dc:date>2020-09-22T20:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reading analog data from FRDM KW38 board</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reading-analog-data-from-FRDM-KW38-board/m-p/1157430#M58221</link>
      <description>&lt;P&gt;Hi notanivipul,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Do you mean, you don't know which pin for ADC1 and ADC0?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;You can check the reference manual, this part:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/125928i36CBC5FAE80BBB1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you can check the related pin in RM chapter&amp;nbsp;3.2 KW39/37 Signal Multiplexing and Pin Assignments&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wish it helps you!&lt;BR /&gt;If you still have questions about it, please kindly let me know!&lt;BR /&gt;Best Regards,&lt;BR /&gt;Kerry&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-----------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 04:59:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reading-analog-data-from-FRDM-KW38-board/m-p/1157430#M58221</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-09-23T04:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reading analog data from FRDM KW38 board</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reading-analog-data-from-FRDM-KW38-board/m-p/1157464#M58222</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336"&gt;@kerryzhou&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the reference manual if I am reading data from PTB1 then channel 1 should be assigned for conversion right?&lt;/P&gt;&lt;P&gt;while(1) {&lt;/P&gt;&lt;P&gt;ADC0-&amp;gt;SC1[0] = 1;&lt;BR /&gt;while (!(ADC0-&amp;gt;SC1[0] &amp;amp; 0x80)){}&lt;BR /&gt;int res = ADC0-&amp;gt;R[0];&lt;BR /&gt;PRINTF("%d\n",res);}&lt;/P&gt;&lt;P&gt;is this correct? I have initialized ADC0 before these lines of code and also set PTB1 as analog pin&lt;/P&gt;&lt;P&gt;and my other question is how to do I read 2 analog inputs at the same time? let's say the input pins are PTB1 and PTB3&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Vipul&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 05:56:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reading-analog-data-from-FRDM-KW38-board/m-p/1157464#M58222</guid>
      <dc:creator>notanivipul</dc:creator>
      <dc:date>2020-09-23T05:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Reading analog data from FRDM KW38 board</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reading-analog-data-from-FRDM-KW38-board/m-p/1158227#M58240</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;notanivipul&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Do you also set the&amp;nbsp;&lt;SPAN&gt;ADC0-&amp;gt;SC1[0]&amp;nbsp; DIFF bit to 0?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Now, what's the issue you are meeting?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Do you try the SDK code, and modify the channel to ADC channel1:&lt;/P&gt;
&lt;P&gt;SDK_2.6.7_FRDM-KW38\boards\frdmkw38\driver_examples\adc16\polling&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;The SDK can be downloaded from this link:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;A href="https://mcuxpresso.nxp.com/" target="_blank"&gt;https://mcuxpresso.nxp.com/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Whether it works or not?&lt;/P&gt;
&lt;P&gt;Please try the SDK ADC code at first.&lt;/P&gt;
&lt;P&gt;Any updated information, just kindly let me know.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Kerry&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-----------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 02:01:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reading-analog-data-from-FRDM-KW38-board/m-p/1158227#M58240</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-09-24T02:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reading analog data from FRDM KW38 board</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reading-analog-data-from-FRDM-KW38-board/m-p/1159920#M58281</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336"&gt;@kerryzhou&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the late updates&lt;/P&gt;&lt;P&gt;Answering your first question -&amp;gt;&amp;nbsp; yes I have set the DiFF bit to 0.&lt;/P&gt;&lt;P&gt;When I select channel 1 (ADC0-&amp;gt;SC1[0] = 1) I am getting values which are continuously varying but when i tried using channel 0(ADC0-&amp;gt;SC1[0] = 0)&amp;nbsp; I got stable readings.&lt;/P&gt;&lt;P&gt;For my current project I have to write the drivers on my own that's why i can't use the SDK.&lt;/P&gt;&lt;P&gt;I tried referring the polling example in SDK, but I found it hard to understand.&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Vipul&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 06:59:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reading-analog-data-from-FRDM-KW38-board/m-p/1159920#M58281</guid>
      <dc:creator>notanivipul</dc:creator>
      <dc:date>2020-09-28T06:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reading analog data from FRDM KW38 board</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reading-analog-data-from-FRDM-KW38-board/m-p/1160597#M58303</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/177946" target="_self"&gt;&lt;SPAN class=""&gt;notanivipul&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;I mean, you can try the SDK, just modify the channel to your used channel, whether you still have issues or not? If the SDK don't have issues, I think we need to check more details about your code. That doesn't mean you use the SDK driver.&amp;nbsp; Just used for the testing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; So could you please test the SDK on your side when you have time?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Or If you can wait, I will help you to test it after Oct. 9th, as we are taking the National day from tomorrow.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:56:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reading-analog-data-from-FRDM-KW38-board/m-p/1160597#M58303</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-09-29T09:56:05Z</dc:date>
    </item>
  </channel>
</rss>

