<?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: Help Me Understand KL27 ADC Continuous Conversion in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1144372#M8065</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&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/156678" target="_self"&gt;bhenning&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; Thanks so much for your updated information and the detail test result.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; This issue is really a little strange, I will report and talk to our internal side about the ADC continuous issues.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;If I get any updated information, I will let you know ASAP.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; In the meanwhile, you can use the onetime trigger to realize the ADC conversion at first.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks a lot for your understanding.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wish it helps you!&lt;/P&gt;
&lt;P&gt;If you still have questions about it, please kindly let me know!&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;Note:&lt;/P&gt;
&lt;P&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;/P&gt;
&lt;P&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;/P&gt;
&lt;P&gt;-----------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Fri, 04 Sep 2020 03:05:54 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2020-09-04T03:05:54Z</dc:date>
    <item>
      <title>Help Me Understand KL27 ADC Continuous Conversion</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1075432#M8047</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 think I am failing to understand some key aspect of "continuous conversion" on the KL27 ADC0 peripheral.&amp;nbsp; Having it set to enabled results in the R register saturating (0x0FFF in 12-bit mode) and staying there.&amp;nbsp; Here's some background:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dev Kit: FRDM-KL27Z&lt;/P&gt;&lt;P&gt;MCUXpresso 11.2&lt;/P&gt;&lt;P&gt;FRDM-KL27Z SDK 2.8.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is for the ADC to be constantly running in the background, doing conversions, and triggering user code via its COCO interrupt.&amp;nbsp; My hope is that this produces a reasonably-consistent sampling rate of an external signal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If continuous conversion is NOT enabled, I get exactly one interrupt, after the ADC is initially configured.&amp;nbsp; If continuous conversion IS enabled, I get ongoing interrupts, which makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when continuous conversion IS enabled, the result register ADC0-&amp;gt;R[0] saturates to 0x0FFF and stays there.&amp;nbsp; I can replicate this with the SDK adc16_interrupt example, by changing nothing except setting the continuousConversions field in the configuration struct to true:&lt;/P&gt;&lt;PRE&gt;// This gives reasonable conversion results:
 adc16ConfigStruct.enableContinuousConversion = false;
// This causes the R register to saturate, giving constant 0x0FFF:
// adc16ConfigStruct.enableContinuousConversion = true;

&lt;/PRE&gt;&lt;P&gt;I know the problem is with my understanding of "continuous conversion mode" so I really hope someone will have the time to help me understand it.&amp;nbsp; Why does the result register saturate?&amp;nbsp; What do I need to do in the code, or in the configuration, to get valid results using continuous conversion mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2020 18:09:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1075432#M8047</guid>
      <dc:creator>bhenning</dc:creator>
      <dc:date>2020-08-27T18:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help Me Understand KL27 ADC Continuous Conversion</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1132888#M8055</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&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/156678" target="_self"&gt;bhenning&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; From the KL27 reference manual, we can get some ADC continuous conversions:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;If continuous conversions are enabled, a new conversion is automatically initiated after&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;the completion of the current conversion. In software triggered operation, that is, when&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SC2[ADTRG] = 0, continuous conversions begin after SC1A is written and continue&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;until aborted. In hardware triggered operation, that is, when SC2[ADTRG] = 1 and one&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ADHWTSn event has occurred, continuous conversions begin after a hardware trigger&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;event and continue until aborted.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;If hardware averaging is enabled, a new conversion is automatically initiated after the&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;completion of the current conversion until the correct number of conversions are&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;completed. In software triggered operation, conversions begin after SC1A is written. In&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;hardware triggered operation, conversions begin after a hardware trigger. If continuous&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;conversions are also enabled, a new set of conversions to be averaged are initiated&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;following the last of the selected number of conversions.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;So, if you enable the continuous converstion, if you also enable the ADC converstion complete interrupt ADCx_SC1n[AIEN]=1, then after you start the converstion, the interrupt will be entered continuously, and you can read the ADC data in the interrupt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; I suggest you check the register, debug it, when you enable the continuous, do you check the ADCx_SC2[ADCO] , whether it is set or not? Please debug it on your side.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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;&amp;nbsp;&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>Tue, 01 Sep 2020 06:57:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1132888#M8055</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-09-01T06:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help Me Understand KL27 ADC Continuous Conversion</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1133146#M8056</link>
      <description>&lt;P&gt;Hello Kerry,&lt;/P&gt;&lt;P&gt;There is no ADCO field in ADCx_SC2.&amp;nbsp; Perhaps you meant to refer to ADCx_SC3?&amp;nbsp; Yes, the ADCO bit is set in this register.&lt;/P&gt;&lt;P&gt;My interrupt checks ADCx_SC1 and only reads R if COCO was set.&amp;nbsp; R always gives 0x0FFF regardless of the actual input voltage.&lt;/P&gt;&lt;P&gt;I also tried using 16-bit SE mode, and that had exactly the same behavior: R always reads as 0xFFFF.&lt;/P&gt;&lt;P&gt;Here is my actual interrupt code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;void ADC_Handler( void ) {
   uint32_t sc1 = ADC0-&amp;gt;SC1[0];
   uint32_t sc2 = ADC0-&amp;gt;SC2;
   uint32_t sc3 = ADC0-&amp;gt;SC3;
   if(sc1 &amp;amp; ADC_SC1_COCO_MASK) {
      uint16_t v = ADC0-&amp;gt;R[0];
      // ... do something with the value [redacted] ...
   }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I set a breakpoint beyond the line that reads from ADC0-&amp;gt;R[0], I can inspect the values.&amp;nbsp; Here is a set of values observed in the debugger:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="7.145166505011318%" height="25px"&gt;SC1&lt;/TD&gt;&lt;TD width="30.423537019075333%" height="25px"&gt;0b1100 0000&lt;/TD&gt;&lt;TD width="62.431296475913356%" height="25px"&gt;COCO, AIEN are set&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="7.145166505011318%" height="25px"&gt;SC2&lt;/TD&gt;&lt;TD width="30.423537019075333%" height="25px"&gt;0b1000 0000 (sometimes 0b0000 0000)&lt;/TD&gt;&lt;TD width="62.431296475913356%" height="25px"&gt;ADACT set (sometimes not)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="7.145166505011318%" height="25px"&gt;SC3&lt;/TD&gt;&lt;TD width="30.423537019075333%" height="25px"&gt;0b0000 1100&lt;/TD&gt;&lt;TD width="62.431296475913356%" height="25px"&gt;ADCO, AVGE are set&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="7.145166505011318%" height="25px"&gt;R&lt;/TD&gt;&lt;TD width="30.423537019075333%" height="25px"&gt;0b0000 1111 1111 1111 (0x0FFF)&lt;/TD&gt;&lt;TD width="62.431296475913356%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These results are consistent with every pass through the interrupt handler.&lt;/P&gt;&lt;P&gt;According to the reference manual, regarding hardware averaging:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;[...] after the selected number of conversions are completed, the average conversion result is transferred into the data result registers, Rn, and SC1n[COCO] is set.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;If hardware averaging is enabled, the respective SC1n[COCO] sets only if the last of the selected number of conversions is completed.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This suggests to me that if COCO is set, the R value should be valid.&amp;nbsp; &lt;STRONG&gt;Why is it always reading 0x0FFF&lt;/STRONG&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 14:45:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1133146#M8056</guid>
      <dc:creator>bhenning</dc:creator>
      <dc:date>2020-09-01T14:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help Me Understand KL27 ADC Continuous Conversion</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1133151#M8057</link>
      <description>&lt;P&gt;Please be sure to read my previous comments.&amp;nbsp; Apparently I ran out of time to edit the post to add this:&lt;/P&gt;&lt;P&gt;SC3[CALF] is also set (an error in my message above).&amp;nbsp; The reference manual indicates that "&lt;EM&gt;[t]he calibration sequence will fail if SC2[ADTRG] = 1, any&amp;nbsp;ADC register is written, or any stop mode is entered before the calibration sequence completes&lt;/EM&gt;" but none of these causes are occurring; SC2[ADTRG] = 0, no ADC register is written during calibration, and no stop mode is entered during calibration.&amp;nbsp; So now there is a new question:&amp;nbsp;&lt;STRONG&gt;Why is CALF being set?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 14:55:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1133151#M8057</guid>
      <dc:creator>bhenning</dc:creator>
      <dc:date>2020-09-01T14:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help Me Understand KL27 ADC Continuous Conversion</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1133848#M8060</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;bhenning,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; Thanks for your updated information, I also meet the issues when in the ContinuousConversion mode.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; I find if I connect to 0V, it can give out the result related 0V, but when the ADC pin input voltage is upto 0.2V, the output value will be 4037.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; So, Still need more time to check the software trigger continuous mode internally, really have the issues when I test the FRDM-KL27 with SDK ADC project, but when I disable the continuous conversion mode, just use one trigger mode, it works OK.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Could you please also help to test the continuous_dma project on your side:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SDK_2.8.0_FRDM-KL27Z\boards\frdmkl27z\driver_examples\adc16\continuous_dma&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; When you give about 1V voltage, what's the result you will get? I find this project test result also have issues on my side. please help to check it, whether you also get the issue result.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;If yes, I will report this issue internally.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Waiting for your updated information.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 07:35:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1133848#M8060</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-09-02T07:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Help Me Understand KL27 ADC Continuous Conversion</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1134338#M8061</link>
      <description>&lt;P&gt;Hello Kerry,&lt;/P&gt;&lt;P&gt;That makes sense.&amp;nbsp; The project on which I am working has external buffer circuitry that scales an external input into acceptable range for the ADC, and that buffer's output is always above 0 V.&amp;nbsp; So it will take me a little extra time to set up to test this scenario.&amp;nbsp; I will report my findings as soon as I have tested.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 14:29:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1134338#M8061</guid>
      <dc:creator>bhenning</dc:creator>
      <dc:date>2020-09-02T14:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help Me Understand KL27 ADC Continuous Conversion</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1134485#M8062</link>
      <description>&lt;P&gt;I have hooked up a voltage source directly to the ADC input pins as configured by the continuous_dma example (J4 pin 2) and tested over the range of 0V - 1 V.&amp;nbsp; My observations:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Response is extremely nonlinear over the range of ADC values (0 - 0xFFFF) and most codes are missing&lt;/LI&gt;&lt;LI&gt;Response shows significant hysteresis at low end of input range&lt;/LI&gt;&lt;LI&gt;ADC output jumps in large values, skipping over many codes&lt;/LI&gt;&lt;LI&gt;ADC output sticks around 25% (consistent output of 16132) with an input 40 mV - 80 mV&lt;/LI&gt;&lt;LI&gt;Output jumps to 31745 and sticks there over the range 90 mV - 200 mV&lt;/LI&gt;&lt;LI&gt;Output jumps to 47877 at 300 mV&lt;/LI&gt;&lt;LI&gt;At 400 mV, the output hovers around 55746 - 55936 with noticeable missing codes&lt;/LI&gt;&lt;LI&gt;At 500 mV, the output code saturates (65535) and does not change over the rest of the input range up to 1.0 V&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 17:09:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1134485#M8062</guid>
      <dc:creator>bhenning</dc:creator>
      <dc:date>2020-09-02T17:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help Me Understand KL27 ADC Continuous Conversion</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1144372#M8065</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&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/156678" target="_self"&gt;bhenning&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; Thanks so much for your updated information and the detail test result.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; This issue is really a little strange, I will report and talk to our internal side about the ADC continuous issues.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;If I get any updated information, I will let you know ASAP.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; In the meanwhile, you can use the onetime trigger to realize the ADC conversion at first.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks a lot for your understanding.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wish it helps you!&lt;/P&gt;
&lt;P&gt;If you still have questions about it, please kindly let me know!&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;Note:&lt;/P&gt;
&lt;P&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;/P&gt;
&lt;P&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;/P&gt;
&lt;P&gt;-----------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 03:05:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1144372#M8065</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-09-04T03:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help Me Understand KL27 ADC Continuous Conversion</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1149588#M8067</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Kerry,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; So sorry for my later reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;I find it is my mistake, I ignore the hardware, the FRDM-KL27 VFEFH is not connected to 3.3V in default.&lt;/P&gt;
&lt;DIV id="tinyMceEditorkerryzhou_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;R17 is not connected, after I connect the VREFH, it works OK now.&lt;/P&gt;
&lt;P&gt;Still take&amp;nbsp;SDK_2.8.0_FRDM-KL27Z\boards\frdmkl27z\driver_examples\adc16\interrupt&lt;/P&gt;
&lt;P&gt;as an example,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;config-&amp;gt;enableContinuousConversion = true;//false;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;/*
 * Copyright (c) 2013 - 2015, Freescale Semiconductor, Inc.
 * Copyright 2016-2018 NXP
 * All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#include "fsl_debug_console.h"
#include "board.h"
#include "fsl_adc16.h"

#include "pin_mux.h"
#include "clock_config.h"
/*******************************************************************************
 * Definitions
 ******************************************************************************/
#define DEMO_ADC16_BASE          ADC0
#define DEMO_ADC16_CHANNEL_GROUP 0U
#define DEMO_ADC16_USER_CHANNEL  1U /* PTE16, A0-ADC0_SE1, J4-2 on FRDM-KL27Z. */

#define DEMO_ADC16_IRQn             ADC0_IRQn
#define DEMO_ADC16_IRQ_HANDLER_FUNC ADC0_IRQHandler

/*******************************************************************************
 * Prototypes
 ******************************************************************************/

/*******************************************************************************
 * Variables
 ******************************************************************************/
volatile bool g_Adc16ConversionDoneFlag = false;
volatile uint32_t g_Adc16ConversionValue;
volatile uint32_t g_Adc16InterruptCounter;
const uint32_t g_Adc16_12bitFullRange = 4096U;

/*******************************************************************************
 * Code
 ******************************************************************************/


void DEMO_ADC16_IRQ_HANDLER_FUNC(void)
{
    g_Adc16ConversionDoneFlag = true;
    /* Read conversion result to clear the conversion completed flag. */
   // if(!(ADC0-&amp;gt;CFG2 &amp;amp; ADC_SC2_ADACT_MASK))
    if (( (ADC0-&amp;gt;SC1[0]) &amp;amp; ADC_SC1_COCO_MASK ) == ADC_SC1_COCO_MASK)
    {
    g_Adc16ConversionValue = ADC16_GetChannelConversionValue(DEMO_ADC16_BASE, DEMO_ADC16_CHANNEL_GROUP);
    g_Adc16InterruptCounter++;
    PRINTF("ADC Value: %d\r\n", g_Adc16ConversionValue);
    }
    SDK_ISR_EXIT_BARRIER;
}

/*!
 * @brief Main function
 */
int main(void)
{
    adc16_config_t adc16ConfigStruct;
    adc16_channel_config_t adc16ChannelConfigStruct;

    BOARD_InitPins();
    BOARD_BootClockRUN();
    BOARD_InitDebugConsole();
    EnableIRQ(DEMO_ADC16_IRQn);

    PRINTF("\r\nADC16 interrupt Example.\r\n");

    /*
     * adc16ConfigStruct.referenceVoltageSource = kADC16_ReferenceVoltageSourceVref;
     * adc16ConfigStruct.clockSource = kADC16_ClockSourceAsynchronousClock;
     * adc16ConfigStruct.enableAsynchronousClock = true;
     * adc16ConfigStruct.clockDivider = kADC16_ClockDivider8;
     * adc16ConfigStruct.resolution = kADC16_ResolutionSE12Bit;
     * adc16ConfigStruct.longSampleMode = kADC16_LongSampleDisabled;
     * adc16ConfigStruct.enableHighSpeed = false;
     * adc16ConfigStruct.enableLowPower = false;
     * adc16ConfigStruct.enableContinuousConversion = false;
     */
    ADC16_GetDefaultConfig(&amp;amp;adc16ConfigStruct);
#ifdef BOARD_ADC_USE_ALT_VREF
    adc16ConfigStruct.referenceVoltageSource = kADC16_ReferenceVoltageSourceValt;
#endif
    ADC16_Init(DEMO_ADC16_BASE, &amp;amp;adc16ConfigStruct);
    ADC16_EnableHardwareTrigger(DEMO_ADC16_BASE, false); /* Make sure the software trigger is used. */
#if defined(FSL_FEATURE_ADC16_HAS_CALIBRATION) &amp;amp;&amp;amp; FSL_FEATURE_ADC16_HAS_CALIBRATION
    if (kStatus_Success == ADC16_DoAutoCalibration(DEMO_ADC16_BASE))
    {
        PRINTF("ADC16_DoAutoCalibration() Done.\r\n");
    }
    else
    {
        PRINTF("ADC16_DoAutoCalibration() Failed.\r\n");
    }
#endif /* FSL_FEATURE_ADC16_HAS_CALIBRATION */

    PRINTF("ADC Full Range: %d\r\n", g_Adc16_12bitFullRange);
    PRINTF("Press any key to get user channel's ADC value ...\r\n");

    adc16ChannelConfigStruct.channelNumber                        = DEMO_ADC16_USER_CHANNEL;
    adc16ChannelConfigStruct.enableInterruptOnConversionCompleted = true; /* Enable the interrupt. */
#if defined(FSL_FEATURE_ADC16_HAS_DIFF_MODE) &amp;amp;&amp;amp; FSL_FEATURE_ADC16_HAS_DIFF_MODE
    adc16ChannelConfigStruct.enableDifferentialConversion = false;
#endif /* FSL_FEATURE_ADC16_HAS_DIFF_MODE */

    g_Adc16InterruptCounter = 0U;
    
    ADC16_SetChannelConfig(DEMO_ADC16_BASE, DEMO_ADC16_CHANNEL_GROUP, &amp;amp;adc16ChannelConfigStruct);
    while (1)
    {
        GETCHAR();
        g_Adc16ConversionDoneFlag = false;
        /*
         When in software trigger mode, each conversion would be launched once calling the "ADC16_ChannelConfigure()"
         function, which works like writing a conversion command and executing it. For another channel's conversion,
         just to change the "channelNumber" field in channel configuration structure, and call the function
         "ADC16_ChannelConfigure()"" again.
         Also, the "enableInterruptOnConversionCompleted" inside the channel configuration structure is a parameter for
         the conversion command. It takes affect just for the current conversion. If the interrupt is still required
         for the following conversion, it is necessary to assert the "enableInterruptOnConversionCompleted" every time
         for each command.
        */
      /*  ADC16_SetChannelConfig(DEMO_ADC16_BASE, DEMO_ADC16_CHANNEL_GROUP, &amp;amp;adc16ChannelConfigStruct);
        while (!g_Adc16ConversionDoneFlag)
        {
        }
        */
      //  PRINTF("ADC Value: %d\r\n", g_Adc16ConversionValue);
      //  PRINTF("ADC Interrupt Count: %d\r\n", g_Adc16InterruptCounter);
    }
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I change the voltage, the conversion result is changed, it is correct, the same one time trigger.&lt;/P&gt;
&lt;P&gt;So, do you check your hardware, do you add the VREFH?&lt;/P&gt;
&lt;P&gt;SDK_2.8.0_FRDM-KL27Z\boards\frdmkl27z\driver_examples\adc16\continuous_dma&lt;/P&gt;
&lt;P&gt;is also correct, this is the test result:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ADC value: 0&lt;BR /&gt;ADC value: 0&lt;BR /&gt;ADC value: 0&lt;BR /&gt;ADC value: 406&lt;BR /&gt;ADC value: 409&lt;BR /&gt;ADC value: 407&lt;BR /&gt;ADC value: 3706&lt;BR /&gt;ADC value: 3718&lt;BR /&gt;ADC value: 3725&lt;BR /&gt;ADC value: 5271&lt;BR /&gt;ADC value: 5274&lt;BR /&gt;ADC value: 5275&lt;BR /&gt;ADC value: 7059&lt;BR /&gt;ADC value: 7047&lt;BR /&gt;ADC value: 7059&lt;BR /&gt;ADC value: 9142&lt;BR /&gt;ADC value: 9149&lt;BR /&gt;ADC value: 9164&lt;BR /&gt;ADC value: 11465&lt;BR /&gt;ADC value: 11477&lt;BR /&gt;ADC value: 11410&lt;BR /&gt;ADC value: 13772&lt;BR /&gt;ADC value: 13753&lt;BR /&gt;ADC value: 13775&lt;BR /&gt;ADC value: 16960&lt;BR /&gt;ADC value: 17001&lt;BR /&gt;ADC value: 17003&lt;BR /&gt;ADC value: 20073&lt;BR /&gt;ADC value: 20074&lt;BR /&gt;ADC value: 20070&lt;BR /&gt;ADC value: 23399&lt;BR /&gt;ADC value: 23403&lt;BR /&gt;ADC value: 23406&lt;BR /&gt;ADC value: 26512&lt;BR /&gt;ADC value: 26497&lt;BR /&gt;ADC value: 26508&lt;BR /&gt;ADC value: 30065&lt;BR /&gt;ADC value: 30079&lt;BR /&gt;ADC value: 30088&lt;BR /&gt;ADC value: 32341&lt;BR /&gt;ADC value: 32368&lt;BR /&gt;ADC value: 32358&lt;BR /&gt;ADC value: 35233&lt;BR /&gt;ADC value: 35245&lt;BR /&gt;ADC value: 35284&lt;BR /&gt;ADC value: 38089&lt;BR /&gt;ADC value: 38134&lt;BR /&gt;ADC value: 38123&lt;BR /&gt;ADC value: 42358&lt;BR /&gt;ADC value: 42354&lt;BR /&gt;ADC value: 42360&lt;BR /&gt;ADC value: 47254&lt;BR /&gt;ADC value: 47315&lt;BR /&gt;ADC value: 47326&lt;BR /&gt;ADC value: 50636&lt;BR /&gt;ADC value: 50639&lt;BR /&gt;ADC value: 50618&lt;BR /&gt;ADC value: 53282&lt;BR /&gt;ADC value: 53296&lt;BR /&gt;ADC value: 53290&lt;BR /&gt;ADC value: 57946&lt;BR /&gt;ADC value: 57970&lt;BR /&gt;ADC value: 57941&lt;BR /&gt;ADC value: 64402&lt;BR /&gt;ADC value: 64390&lt;BR /&gt;ADC value: 64400&lt;BR /&gt;ADC value: 64405&lt;BR /&gt;ADC value: 64402&lt;BR /&gt;ADC value: 64399&lt;/P&gt;
&lt;P&gt;Wish it helps you!&lt;/P&gt;
&lt;P&gt;If you still have questions about it, please kindly let me know!&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;Note:&lt;/P&gt;
&lt;P&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;/P&gt;
&lt;P&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;/P&gt;
&lt;P&gt;-----------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 09:11:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1149588#M8067</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-09-07T09:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help Me Understand KL27 ADC Continuous Conversion</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1152934#M8072</link>
      <description>&lt;P&gt;Hello Kerry,&lt;/P&gt;&lt;P&gt;Thanks for all of this information.&amp;nbsp; Clearly we both missed this key detail about VREFH.&amp;nbsp; I was on vacation all last week, but should be able to verify this today.&amp;nbsp; I will return with an update as soon as I have one.&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 14:11:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1152934#M8072</guid>
      <dc:creator>bhenning</dc:creator>
      <dc:date>2020-09-14T14:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help Me Understand KL27 ADC Continuous Conversion</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1153147#M8075</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/156678" target="_self"&gt;&lt;SPAN class=""&gt;bhenning&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;You are welcome!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;After you test it, please also tell me your test result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;If you still have issues, you also can use the NXP official board and test it like me, the issue should be solved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wish it helps you!&lt;/P&gt;
&lt;P&gt;If you still have questions about it, please kindly let me know!&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;Note:&lt;/P&gt;
&lt;P&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;/P&gt;
&lt;P&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;/P&gt;
&lt;P&gt;-----------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 02:58:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1153147#M8075</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-09-15T02:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help Me Understand KL27 ADC Continuous Conversion</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1153523#M8076</link>
      <description>&lt;P&gt;Hello Kerry,&lt;/P&gt;&lt;P&gt;Our current prototype is a carrier that the FRDM-KL27Z plugs into, an easy intermediate step before we design the final product.&lt;/P&gt;&lt;P&gt;If I bridge the R17 footprint with solder (I don't have 0-ohm resistors handy...), then the problem does indeed go away.&amp;nbsp; I've marked your reply that contains that information about R17 as the accepted solution.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 13:46:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Help-Me-Understand-KL27-ADC-Continuous-Conversion/m-p/1153523#M8076</guid>
      <dc:creator>bhenning</dc:creator>
      <dc:date>2020-09-15T13:46:53Z</dc:date>
    </item>
  </channel>
</rss>

