<?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: [Kinetis KEAZN64] ADC conversion does not start in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-KEAZN64-ADC-conversion-does-not-start/m-p/773799#M47044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a similar problem and I ask you if you have, and how, solved the problem.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Dec 2017 15:50:47 GMT</pubDate>
    <dc:creator>IlConte</dc:creator>
    <dc:date>2017-12-11T15:50:47Z</dc:date>
    <item>
      <title>[Kinetis KEAZN64] ADC conversion does not start</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-KEAZN64-ADC-conversion-does-not-start/m-p/773797#M47042</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;When I try to convert ADC channel once, it is working good.&lt;/P&gt;&lt;P&gt;However; when i do this conversion many consecutive times by for loop for example, sometimes conversion does not start. Note that I read 4 channels 10 consecutive times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="text-decoration: underline;"&gt;&lt;STRONG&gt;Regarding initialization function:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;/* Select ADCACLK, no divide, 12 bit conversion,&lt;BR /&gt; * ADLPC = 0 (default) =&amp;gt; hi speed config,&lt;BR /&gt; * ADIV = 0 (default) =&amp;gt; clock rate = input clock/1,&lt;BR /&gt; * ADLSMP = 0 (default) =&amp;gt; short sample time,&lt;BR /&gt; * MODE = 2 =&amp;gt; 12 bit conversion,&lt;BR /&gt; * ADICLK= 0 =&amp;gt; Bus clock source */&lt;BR /&gt; ADC_SC3 = 0x00000008;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* ADTRG = 0 (default) =&amp;gt; SW Trigger,&lt;BR /&gt; * ACFE = 0 (default) =&amp;gt; compare function disabled,&lt;BR /&gt; * REFSEL = 0 (default)=&amp;gt; default ref volt pin pair */&lt;BR /&gt; ADC_SC2 = 0x00000000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Disable module (default state),&lt;BR /&gt; * AIEN = 0 =&amp;gt; Interrupts disabled,&lt;BR /&gt; * ADCO = 0 =&amp;gt; Continuous conversions disabled,&lt;BR /&gt; * ADCH = 1F =&amp;gt; Module disabled */&lt;BR /&gt; ADC_SC1 = 0x0000001F;&lt;/P&gt;&lt;P&gt;&lt;EM style="text-decoration: underline;"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="text-decoration: underline;"&gt;&lt;STRONG&gt;Regarding conversion function with the for loop:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="text-decoration: underline;"&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;channelsResults[0] = 0;&lt;BR /&gt; channelsResults[1] = 0;&lt;BR /&gt; channelsResults[2] = 0;&lt;BR /&gt; channelsResults[3] = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for (iteration = 0; iteration &amp;lt; 10; iteration++)&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; /* Specify next channel for conversion */&lt;BR /&gt; ADC_SC1 = ADC_SC1_ADCH(12);&lt;BR /&gt; /* Test conversion complete flag */&lt;BR /&gt; while (ConversionCompleted () == 0){}&lt;BR /&gt; /* Read converted value */&lt;BR /&gt; channelsResults[0] = channelsResults[0] + ADC_R;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; /* Specify next channel for conversion */&lt;BR /&gt; ADC_SC1 = ADC_SC1_ADCH(13);&lt;BR /&gt; /* Test conversion complete flag */&lt;BR /&gt; while (ConversionCompleted () == 0){}&lt;BR /&gt; /* Read converted value */&lt;BR /&gt; channelsResults[1] = channelsResults[1] + ADC_R;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; /* Specify next channel for conversion */&lt;BR /&gt; ADC_SC1 = ADC_SC1_ADCH(14);&lt;BR /&gt; /* Test conversion complete flag */&lt;BR /&gt; while (ConversionCompleted () == 0){}&lt;BR /&gt; /* Read converted value */&lt;BR /&gt; channelsResults[2] = channelsResults[2] + ADC_R;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; /* Specify next channel for conversion */&lt;BR /&gt; ADC_SC1 = ADC_SC1_ADCH(15);&lt;BR /&gt; /* Test conversion complete flag */&lt;BR /&gt; while (ConversionCompleted () == 0){}&lt;BR /&gt; /* Read converted value */&lt;BR /&gt; channelsResults[3] = channelsResults[3] + ADC_R;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;channelsResults[0] = channelsResults[0] / 10;&lt;BR /&gt; channelsResults[1] = channelsResults[1] / 10;&lt;BR /&gt; channelsResults[2] = channelsResults[2] / 10;&lt;BR /&gt; channelsResults[3] = channelsResults[3] / 10;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 14:12:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-KEAZN64-ADC-conversion-does-not-start/m-p/773797#M47042</guid>
      <dc:creator>mohammedaboelna</dc:creator>
      <dc:date>2017-11-14T14:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: [Kinetis KEAZN64] ADC conversion does not start</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-KEAZN64-ADC-conversion-does-not-start/m-p/773798#M47043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend customer to refer the&lt;A href="https://www.nxp.com/downloads/en/device-drivers/SDK-DRIVER-FRDM-KEA-S32DS.zip"&gt; [SDK Software Drivers for KEAZ128_KEAZ64 using S32DS] &lt;/A&gt;software package, which provides ADC module driver and related demo.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2017 07:07:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-KEAZN64-ADC-conversion-does-not-start/m-p/773798#M47043</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2017-11-23T07:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: [Kinetis KEAZN64] ADC conversion does not start</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-KEAZN64-ADC-conversion-does-not-start/m-p/773799#M47044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a similar problem and I ask you if you have, and how, solved the problem.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 15:50:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-KEAZN64-ADC-conversion-does-not-start/m-p/773799#M47044</guid>
      <dc:creator>IlConte</dc:creator>
      <dc:date>2017-12-11T15:50:47Z</dc:date>
    </item>
  </channel>
</rss>

