<?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 S12ZVL32 ADC Multiple Channel Read in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVL32-ADC-Multiple-Channel-Read/m-p/1007089#M16937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use 4 ADC channels of 10 bit. I have configured for 4 but getting output of only first channel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I configured as below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ADC_Cfg_Done.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/95349i86D04979B324F2FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="ADC_Cfg_Done.PNG" alt="ADC_Cfg_Done.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and written code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint16_t adc_ch0Val = 0;&lt;BR /&gt;uint16_t adc_ch1Val = 0;&lt;BR /&gt;uint16_t adc_ch2Val = 0;&lt;BR /&gt;uint16_t adc_ch3Val = 0;&lt;BR /&gt;uint16_t ADC_result0[1]; //Store the ADC result&lt;BR /&gt;uint16_t ADC_result1[1]; //Store the ADC result&lt;BR /&gt;uint16_t ADC_result2[1]; //Store the ADC result&lt;BR /&gt;uint16_t ADC_result3[1]; //Store the ADC result&lt;/P&gt;&lt;P&gt;void Read_ADC_Channesl(void)&lt;BR /&gt;{&lt;BR /&gt; ADC_MeasureChan(TRUE, 0);&lt;BR /&gt; ADC_GetChanValue(0, ADC_result0);&lt;BR /&gt; adc_ch0Val = *ADC_result0;&lt;BR /&gt; Fun0(adc_ch0Val);&lt;BR /&gt;&lt;BR /&gt; ADC_MeasureChan(TRUE, 1);&lt;BR /&gt; ADC_GetChanValue(1, ADC_result1);&lt;BR /&gt; adc_ch1Val = *ADC_result1;&lt;BR /&gt; Fun1(adc_ch1Val);&lt;BR /&gt;&lt;BR /&gt; ADC_MeasureChan(TRUE, 2);&lt;BR /&gt; ADC_GetChanValue(2, ADC_result2);&lt;BR /&gt; adc_ch2Val = *ADC_result2;&lt;BR /&gt; Fun2(adc_ch2Val);&lt;BR /&gt;&lt;BR /&gt; ADC_MeasureChan(TRUE, 3);&lt;BR /&gt; ADC_GetChanValue(3, ADC_result3);&lt;BR /&gt; adc_ch3Val = *ADC_result3;&lt;BR /&gt; Fun3(adc_ch3Val);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;void Fun0(uint16_t ain0)&lt;BR /&gt;{&lt;BR /&gt;//Some operation&lt;BR /&gt;}&lt;BR /&gt;void Fun1(uint16_t ain1)&lt;BR /&gt;{&lt;BR /&gt;//Some operation&lt;BR /&gt;}&lt;BR /&gt;void Fun2(uint16_t ain2)&lt;BR /&gt;{&lt;BR /&gt;//Some operation&lt;BR /&gt;}&lt;BR /&gt;void Fun3(uint16_t ain3)&lt;BR /&gt;{&lt;BR /&gt;//Some operation&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when I check variables value then getting same value that is only PAD1 value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am passing different channel numbers still getting only one pin output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I can access for ADC 4 channel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Dec 2019 11:47:52 GMT</pubDate>
    <dc:creator>chaitanya_kalyani</dc:creator>
    <dc:date>2019-12-04T11:47:52Z</dc:date>
    <item>
      <title>S12ZVL32 ADC Multiple Channel Read</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVL32-ADC-Multiple-Channel-Read/m-p/1007089#M16937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use 4 ADC channels of 10 bit. I have configured for 4 but getting output of only first channel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I configured as below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ADC_Cfg_Done.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/95349i86D04979B324F2FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="ADC_Cfg_Done.PNG" alt="ADC_Cfg_Done.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and written code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint16_t adc_ch0Val = 0;&lt;BR /&gt;uint16_t adc_ch1Val = 0;&lt;BR /&gt;uint16_t adc_ch2Val = 0;&lt;BR /&gt;uint16_t adc_ch3Val = 0;&lt;BR /&gt;uint16_t ADC_result0[1]; //Store the ADC result&lt;BR /&gt;uint16_t ADC_result1[1]; //Store the ADC result&lt;BR /&gt;uint16_t ADC_result2[1]; //Store the ADC result&lt;BR /&gt;uint16_t ADC_result3[1]; //Store the ADC result&lt;/P&gt;&lt;P&gt;void Read_ADC_Channesl(void)&lt;BR /&gt;{&lt;BR /&gt; ADC_MeasureChan(TRUE, 0);&lt;BR /&gt; ADC_GetChanValue(0, ADC_result0);&lt;BR /&gt; adc_ch0Val = *ADC_result0;&lt;BR /&gt; Fun0(adc_ch0Val);&lt;BR /&gt;&lt;BR /&gt; ADC_MeasureChan(TRUE, 1);&lt;BR /&gt; ADC_GetChanValue(1, ADC_result1);&lt;BR /&gt; adc_ch1Val = *ADC_result1;&lt;BR /&gt; Fun1(adc_ch1Val);&lt;BR /&gt;&lt;BR /&gt; ADC_MeasureChan(TRUE, 2);&lt;BR /&gt; ADC_GetChanValue(2, ADC_result2);&lt;BR /&gt; adc_ch2Val = *ADC_result2;&lt;BR /&gt; Fun2(adc_ch2Val);&lt;BR /&gt;&lt;BR /&gt; ADC_MeasureChan(TRUE, 3);&lt;BR /&gt; ADC_GetChanValue(3, ADC_result3);&lt;BR /&gt; adc_ch3Val = *ADC_result3;&lt;BR /&gt; Fun3(adc_ch3Val);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;void Fun0(uint16_t ain0)&lt;BR /&gt;{&lt;BR /&gt;//Some operation&lt;BR /&gt;}&lt;BR /&gt;void Fun1(uint16_t ain1)&lt;BR /&gt;{&lt;BR /&gt;//Some operation&lt;BR /&gt;}&lt;BR /&gt;void Fun2(uint16_t ain2)&lt;BR /&gt;{&lt;BR /&gt;//Some operation&lt;BR /&gt;}&lt;BR /&gt;void Fun3(uint16_t ain3)&lt;BR /&gt;{&lt;BR /&gt;//Some operation&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when I check variables value then getting same value that is only PAD1 value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am passing different channel numbers still getting only one pin output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I can access for ADC 4 channel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2019 11:47:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVL32-ADC-Multiple-Channel-Read/m-p/1007089#M16937</guid>
      <dc:creator>chaitanya_kalyani</dc:creator>
      <dc:date>2019-12-04T11:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: S12ZVL32 ADC Multiple Channel Read</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVL32-ADC-Multiple-Channel-Read/m-p/1007090#M16938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/chaitanya.kalyani@seoyonelec-rnd.in"&gt;chaitanya.kalyani@seoyonelec-rnd.in&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Could you&amp;nbsp;configure all four 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/95904i6AA76F6A8E14F8B1/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;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2019 12:50:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVL32-ADC-Multiple-Channel-Read/m-p/1007090#M16938</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-12-06T12:50:44Z</dc:date>
    </item>
  </channel>
</rss>

