<?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 ADC Driver function with parameter channel group in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/ADC-Driver-function-with-parameter-channel-group/m-p/504766#M4945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting confused or rather my understanding is improper about the channel group.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have configured my project using KDS 3.0 with KSDK 1.2.0 with FSL_ADC as one of the component. I have generated the code and trying to read the data on the pin.&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;&amp;nbsp;&amp;nbsp; // Software trigger the conversion. &amp;nbsp; ADC16_DRV_ConfigConvChn(FSL_ADCONVVM, ADC16_CHN_GROUP0, &amp;amp;adConvVM_ChnConfig0); &amp;nbsp; // Wait for the conversion to be done. &amp;nbsp; ADC16_DRV_WaitConvDone(FSL_ADCONVVM, ADC16_CHN_GROUP0); &amp;nbsp; // Fetch the conversion value. &amp;nbsp; VoltageLevel = ADC16_DRV_GetConvValueSigned(FSL_ADCONVVM, ADC16_CHN_GROUP0); &amp;nbsp; printf("Read 12V DAC Value %d\r\n",VoltageLevel);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, ADC16_CHN_GROUP0 is the what I have defined as 0 assuming the ADC0 being ADC channel group 0 and ADC channel group 1 to be ADC1. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am always getting a value of 255 when I read the data on any of the pins. Why did the generated code does not have a define for channel group. Am i using the driver functions properly.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to describe a little more on the voltage measuring input. my Vref is given 3 V and the 12V source is given to ADC0_DP0 using voltage divider and limited within 3V.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kewal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jan 2016 21:29:49 GMT</pubDate>
    <dc:creator>Kewal</dc:creator>
    <dc:date>2016-01-20T21:29:49Z</dc:date>
    <item>
      <title>ADC Driver function with parameter channel group</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/ADC-Driver-function-with-parameter-channel-group/m-p/504766#M4945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting confused or rather my understanding is improper about the channel group.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have configured my project using KDS 3.0 with KSDK 1.2.0 with FSL_ADC as one of the component. I have generated the code and trying to read the data on the pin.&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;&amp;nbsp;&amp;nbsp; // Software trigger the conversion. &amp;nbsp; ADC16_DRV_ConfigConvChn(FSL_ADCONVVM, ADC16_CHN_GROUP0, &amp;amp;adConvVM_ChnConfig0); &amp;nbsp; // Wait for the conversion to be done. &amp;nbsp; ADC16_DRV_WaitConvDone(FSL_ADCONVVM, ADC16_CHN_GROUP0); &amp;nbsp; // Fetch the conversion value. &amp;nbsp; VoltageLevel = ADC16_DRV_GetConvValueSigned(FSL_ADCONVVM, ADC16_CHN_GROUP0); &amp;nbsp; printf("Read 12V DAC Value %d\r\n",VoltageLevel);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, ADC16_CHN_GROUP0 is the what I have defined as 0 assuming the ADC0 being ADC channel group 0 and ADC channel group 1 to be ADC1. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am always getting a value of 255 when I read the data on any of the pins. Why did the generated code does not have a define for channel group. Am i using the driver functions properly.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to describe a little more on the voltage measuring input. my Vref is given 3 V and the 12V source is given to ADC0_DP0 using voltage divider and limited within 3V.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kewal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 21:29:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/ADC-Driver-function-with-parameter-channel-group/m-p/504766#M4945</guid>
      <dc:creator>Kewal</dc:creator>
      <dc:date>2016-01-20T21:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: ADC Driver function with parameter channel group</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/ADC-Driver-function-with-parameter-channel-group/m-p/504767#M4946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kewal.&lt;/P&gt;&lt;P&gt;In the function&lt;/P&gt;&lt;P&gt;adc16_status_t ADC16_DRV_ConfigConvChn ( uint32_t instance, uint32_t chnGroup, const adc16_chn_config_t&amp;nbsp;&amp;nbsp; configPtr )&lt;/P&gt;&lt;P&gt;The fisrt parameter "instance" is the ADC16 instance ID,&amp;nbsp; that is the ADC0&amp;nbsp; ADC1 ...&lt;/P&gt;&lt;P&gt;The seconde parameter "chnGroup" is the Selection of the configuration group, that is ADC0_A&amp;nbsp; ADC0_B .&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;Have a great day,&lt;BR /&gt;Alice Yang&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>Thu, 21 Jan 2016 03:07:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/ADC-Driver-function-with-parameter-channel-group/m-p/504767#M4946</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-01-21T03:07:09Z</dc:date>
    </item>
  </channel>
</rss>

