<?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: Codewarrior MQX RTOS project, to get ADC value from the TWR-K60D100M potentiometer in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Codewarrior-MQX-RTOS-project-to-get-ADC-value-from-the-TWR/m-p/394437#M13230</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adhishek,&lt;/P&gt;&lt;P&gt;This application requires BSPCFG_ENABLE_LWADC defined non-zero in user_config.h. Did you enable it??&lt;/P&gt;&lt;P&gt;In addition please check the below link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/training_information.jsp?code=WBT_MQX_RTOS_S9" title="http://www.freescale.com/webapp/sps/site/training_information.jsp?code=WBT_MQX_RTOS_S9"&gt;MQX RTOS Part 9: Light Weight ADC Driver|Freescale&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jul 2015 14:45:41 GMT</pubDate>
    <dc:creator>soledad</dc:creator>
    <dc:date>2015-07-13T14:45:41Z</dc:date>
    <item>
      <title>Codewarrior MQX RTOS project, to get ADC value from the TWR-K60D100M potentiometer</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Codewarrior-MQX-RTOS-project-to-get-ADC-value-from-the-TWR/m-p/394434#M13227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; We where working on TWR-K60D100M on CodeWarrior v10.6.4 software, for the MQX RTOS project. In this project we where trying to read on the Potentiometer available on the board(R50), using the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54963iBFE87BBCC278CBFC/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_18.png" alt="pastedImage_18.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'arial black', 'avant garde';"&gt;&lt;SPAN style="color: #642880;"&gt;_lwadc_init&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&amp;amp;BSP_DEFAULT_LWADC_MODULE);&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f;"&gt;/*to initialise the ADC*/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'arial black', 'avant garde';"&gt;&lt;SPAN style="color: #642880;"&gt;_lwadc_init_input&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&amp;amp;pot, BSP_ADC_POTENTIOMETER);&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f;"&gt;/*&lt;SPAN style="text-decoration: underline;"&gt;initialize&lt;/SPAN&gt; the data structure for the input to this ADC Device; declaring the pot*/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'arial black', 'avant garde';"&gt;&lt;SPAN style="color: #642880;"&gt;_lwadc_set_attribute&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&amp;amp;pot, &lt;/SPAN&gt;&lt;EM style="color: #0000c0;"&gt;LWADC_NUMERATOR&lt;/EM&gt;&lt;SPAN style="color: black;"&gt;, 12000);&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f;"&gt;/*&lt;SPAN style="text-decoration: underline;"&gt;Num&lt;/SPAN&gt;/Den*/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LWADC_STRUCT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*Initializing the variable*/&lt;/P&gt;&lt;P&gt;LWADC_VALUE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pressure;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*Initializing the variable*/&lt;/P&gt;&lt;P&gt;_lwadc_read(&amp;amp;pot, &amp;amp;voltage)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*storing the value read from 'pot' into 'pressure'*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please, go through the code and let us know what is wrong, or any other codes we can us to get the value from the Potentiometer.? Below is the screen shot, when we where Debugging the project, we can observe that the variables pot and pressure value where not changing. Tried by placing the break point at all the places, programming was running fine but it was not getting the value from the potentiometer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54913i6E366A052196FC83/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_17.png" alt="pastedImage_17.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 12:30:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Codewarrior-MQX-RTOS-project-to-get-ADC-value-from-the-TWR/m-p/394434#M13227</guid>
      <dc:creator>abhishekinamdar</dc:creator>
      <dc:date>2015-07-08T12:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Codewarrior MQX RTOS project, to get ADC value from the TWR-K60D100M potentiometer</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Codewarrior-MQX-RTOS-project-to-get-ADC-value-from-the-TWR/m-p/394435#M13228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adhishek,&lt;/P&gt;&lt;P&gt;What version of MQX are you using?&amp;nbsp; MQX_4.1.1 or MQX_4.2?&lt;/P&gt;&lt;P&gt;Both revisions have LWADC example that uses the Potentiometer.&lt;/P&gt;&lt;P&gt;Please compare your code to it.&lt;/P&gt;&lt;P&gt;C:\Freescale\Freescale_MQX_4_1_1_GA\mqx\examples\lwadc&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;C:\Freescale\Freescale_MQX_4_2\mqx\examples\lwadc &lt;/P&gt;&lt;P&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>Wed, 08 Jul 2015 13:16:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Codewarrior-MQX-RTOS-project-to-get-ADC-value-from-the-TWR/m-p/394435#M13228</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-07-08T13:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Codewarrior MQX RTOS project, to get ADC value from the TWR-K60D100M potentiometer</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Codewarrior-MQX-RTOS-project-to-get-ADC-value-from-the-TWR/m-p/394436#M13229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for the reply, we are using MQX 4_2. We went through the link you mention, tried with the example, still no result. We where not able to understand example clearly and how to read single potentiometer available on the board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do you have any other examples, books or links to go through.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Abhishek &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 04:16:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Codewarrior-MQX-RTOS-project-to-get-ADC-value-from-the-TWR/m-p/394436#M13229</guid>
      <dc:creator>abhishekinamdar</dc:creator>
      <dc:date>2015-07-13T04:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Codewarrior MQX RTOS project, to get ADC value from the TWR-K60D100M potentiometer</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Codewarrior-MQX-RTOS-project-to-get-ADC-value-from-the-TWR/m-p/394437#M13230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adhishek,&lt;/P&gt;&lt;P&gt;This application requires BSPCFG_ENABLE_LWADC defined non-zero in user_config.h. Did you enable it??&lt;/P&gt;&lt;P&gt;In addition please check the below link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/training_information.jsp?code=WBT_MQX_RTOS_S9" title="http://www.freescale.com/webapp/sps/site/training_information.jsp?code=WBT_MQX_RTOS_S9"&gt;MQX RTOS Part 9: Light Weight ADC Driver|Freescale&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 14:45:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Codewarrior-MQX-RTOS-project-to-get-ADC-value-from-the-TWR/m-p/394437#M13230</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2015-07-13T14:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Codewarrior MQX RTOS project, to get ADC value from the TWR-K60D100M potentiometer</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Codewarrior-MQX-RTOS-project-to-get-ADC-value-from-the-TWR/m-p/394438#M13231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhishek,&lt;/P&gt;&lt;P&gt;Sol had good advice.&lt;/P&gt;&lt;P&gt;Please review the C:\Freescale\Freescale_MQX_4_2\doc\MQX_Getting_Started.pdf PDF section 9.14 TWR-K60D100M jumper configurations.&lt;/P&gt;&lt;P&gt;Attached is picture of my TWR-K60D100M and TWR-SER card so you can see my jumper configuration.&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>Mon, 13 Jul 2015 15:47:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Codewarrior-MQX-RTOS-project-to-get-ADC-value-from-the-TWR/m-p/394438#M13231</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-07-13T15:47:11Z</dc:date>
    </item>
  </channel>
</rss>

