<?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: ADC output voltage in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990136#M55673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;BR /&gt;now we have found a reason for our problems.&lt;BR /&gt;The security resistor for the ADC, with 10kOhm, is to big.&lt;BR /&gt;If we use a 100Ohm resistor we don't have this problems, the voltage drop is lower with the 100 Ohm resistor. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done a test with the demoboard and the potentiometer and better measurement units.&lt;/P&gt;&lt;P&gt;First I changed the example to use 12 bit ADC result and 16bit hardware average.&lt;/P&gt;&lt;P&gt;Then I replaced jumper J9 with a resistor.&amp;nbsp;&lt;BR /&gt;10kOhm:&amp;nbsp; ADC =&amp;gt; Min 271 ... Max 3998&lt;/P&gt;&lt;P&gt;100Ohm: ADC=&amp;gt; Min 0 ... Max 4094&lt;/P&gt;&lt;P&gt;Jumper: ADC=&amp;gt; Min 0 ... Max 4094.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you four your help.&lt;BR /&gt;Tobias Härter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Feb 2020 13:44:55 GMT</pubDate>
    <dc:creator>tobias_mrs</dc:creator>
    <dc:date>2020-02-25T13:44:55Z</dc:date>
    <item>
      <title>ADC output voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990124#M55661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;BR /&gt;I work with a MKE18F512 and I have to use the ADC.&lt;/P&gt;&lt;P&gt;We work with 5V Supply and a external 5V Ref&lt;BR /&gt;Now I have the problem that the any ADC pin is at 2,5V and delivers up to 20µA out current.&lt;/P&gt;&lt;P&gt;Could this be correct?&lt;BR /&gt;Why are the ADC pin at 2,5 in idle position.&lt;BR /&gt;To test this problem I have disconnect all connections form the ADC pin but it stays at 2,5V if the ADC run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;I am happy about any idea.&lt;BR /&gt;regards&lt;BR /&gt;Tobias&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 10:28:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990124#M55661</guid>
      <dc:creator>tobias_mrs</dc:creator>
      <dc:date>2020-02-06T10:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: ADC output voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990125#M55662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tobias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a little weird since the ADC pins should be inputs, in the pin multiplexing did you enable the analog pin? You could check how to do this in the ADC SDK examples, in the BOARD_InitPins() that enable the analog function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 23:04:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990125#M55662</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-02-06T23:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: ADC output voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990126#M55663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;BR /&gt;Yes I have attached my code.&lt;BR /&gt;I have also tested only the example code of the SDK and only initialize one ADC input but with the same result.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;ADC12_GetDefaultConfig&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;adc_config &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//    adc_config-&amp;gt;referenceVoltageSource = kADC12_ReferenceVoltageSourceVref;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//    adc_config-&amp;gt;clockSource = kADC12_ClockSourceAlt0;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//    adc_config-&amp;gt;clockDivider = kADC12_ClockDivider1;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//    adc_config-&amp;gt;resolution = kADC12_Resolution8Bit;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//    adc_config-&amp;gt;sampleClockCount = 12U;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//    adc_config-&amp;gt;enableContinuousConversion = false;&lt;/SPAN&gt;
adc_config&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;resolution &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; kADC12_Resolution12Bit&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;// go thru all ADC channels&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; used_io_pin &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ANA_IN_START&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; used_io_pin &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; ANA_IN_MAX&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; used_io_pin&lt;SPAN class="operator token"&gt;++&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    used_adc_pin &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;get_adc_io_number&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; used_io_pin &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;// enable clock and pinmux of port&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;CLOCK_EnableClock&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;get_fsl_port_clock_name&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; ai_pin&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;used_adc_pin&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;port &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;// no pull resistor&lt;/SPAN&gt;
    reg_port_gpio&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;ai_pin&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;used_adc_pin&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;port&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;PCR&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;ai_pin&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;used_adc_pin&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;pin&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;reg_port_gpio&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;ai_pin&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;used_adc_pin&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;port&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;PCR&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;ai_pin&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;used_adc_pin&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;pin&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;                                                                            &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;~&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; PORT_PCR_PS_MASK &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; PORT_PCR_PE_MASK &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; PORT_PCR_ISF_MASK &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;                                                                         &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;PORT_PCR_PS&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;PORT_PCR_PE&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="token function"&gt;PORT_SetPinMux&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; reg_port_gpio&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;ai_pin&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;used_adc_pin&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;port&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ai_pin&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;used_adc_pin&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;pin&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; kPORT_PinDisabledOrAnalog &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;// set clock source of ADC&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;CLOCK_SetIpSrc&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;get_fsl_adc_clock_name&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; ai_pin&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;used_adc_pin&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;adc &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; kCLOCK_IpSrcFircAsync &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;// enable interrupt&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;EnableIRQ&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;get_fsl_adc_interrupt_name&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; ai_pin&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;used_adc_pin&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;adc &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;// enable all used ADC modules&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;ADC12_Init&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; reg_adc&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;ai_pin&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;used_adc_pin&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;adc&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;adc_config &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;ADC12_SetHardwareAverage&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; reg_adc&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;ai_pin&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;used_adc_pin&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;adc&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;  kADC12_HardwareAverageCount8 &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;// Set to software trigger mode.&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;ADC12_EnableHardwareTrigger&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; reg_adc&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;ai_pin&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;used_adc_pin&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;adc&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; FALSE &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="token function"&gt;ADC12_DoAutoCalibration&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; reg_adc&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;ai_pin&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;used_adc_pin&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;adc&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;// start ADC measurement at each ADC&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; a &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;enum_adc_t&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; a &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; ADC_MAX&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;++&lt;/SPAN&gt;a &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; c &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; c &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; ANA_IN_CNT&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;++&lt;/SPAN&gt;c &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="comment token"&gt;// search for first channel and start this&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; ai_pin&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;c&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;adc &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; a &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
           mgl_adc_ctrl&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;a&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ptr_actual_channel &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;ai_pin&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;c&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// set channel&lt;/SPAN&gt;

           &lt;SPAN class="comment token"&gt;// start measurement&lt;/SPAN&gt;
           adc_channel_config&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;channelNumber &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ai_pin&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;c&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;channel&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
           adc_channel_config&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;enableInterruptOnConversionCompleted &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; TRUE&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

           &lt;SPAN class="token function"&gt;ADC12_SetChannelConfig&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; reg_adc&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;ai_pin&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;c&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;adc&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;adc_channel_config &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
           &lt;SPAN class="keyword token"&gt;break&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
         &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
         &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;
         &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
            &lt;SPAN class="comment token"&gt;// check next&lt;/SPAN&gt;
         &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="comment token"&gt;// end loop ADC IO pins&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// end loop ADC‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;/SPAN&gt;

read ADC at interrup

&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;adc_process&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; enum_adc_t adc &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    adc12_channel_config_t adc_channel_config&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;// get value&lt;/SPAN&gt;
    uint8_t channel &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;get_adc_io_number&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; mgl_adc_ctrl&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;adc&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ptr_actual_channel&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;name &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    mgl_adc_values&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt; channel &lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;actual_ui16 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;ADC12_GetChannelConversionValue&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; reg_adc&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;adc&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;//set next channel to indicate a single conversion&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;switch_to_next_adc_channel&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; adc &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    adc_channel_config&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;channelNumber &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;  mgl_adc_ctrl&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;adc&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ptr_actual_channel&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;channel&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    adc_channel_config&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;enableInterruptOnConversionCompleted &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; TRUE&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;ADC12_SetChannelConfig&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; reg_adc&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;adc&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;adc_channel_config &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="token function"&gt;__DSB&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// Add for ARM errata 838869, affects Cortex-M4, Cortex-M4F Store immediate overlapping exception return operation might vector to incorrect interrupt.&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;/*----------------------------------------------------------------------------*/&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;/**
 * Interrupt service routine (ISR) for ADC 0
 *
 * \internal
 * Call adc_process to get the value and start measurement of next channel.
 * \endinternal
 */&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;ADC0_IRQHandler&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;adc_process&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; ADC_0 &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I get the result form the interrupt and switch there to the next channel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2020 08:31:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990126#M55663</guid>
      <dc:creator>tobias_mrs</dc:creator>
      <dc:date>2020-02-07T08:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: ADC output voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990127#M55664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To give you a better overview about the situation I have attached the schematics of the ADC&lt;/P&gt;&lt;P&gt;For example if I remove R407 I measure 2.5V at X407 if the ADC runs and sample the input. That could not be OK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2020 12:54:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990127#M55664</guid>
      <dc:creator>tobias_mrs</dc:creator>
      <dc:date>2020-02-11T12:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: ADC output voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990128#M55665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tobias,&lt;/P&gt;&lt;P lang="es-MX"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en-US"&gt;I have tried this using the TWR-KE18F and the ADC example adc12_interrupt that is using the PTC14 as input that is connected to a potentiometer and checking the code I only could thing that the &lt;/SPAN&gt;&lt;SPAN lang="es-MX"&gt;reg_port_gpio not have the correct muxing from the pins, also to check the correct pin functionality did you check if they can be used as GPIO or connected to one of the peripherals?&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="es-MX"&gt;&amp;nbsp;&lt;/P&gt;&lt;P lang="es-MX"&gt;Let me know your findings.&lt;/P&gt;&lt;P lang="es-MX"&gt;&amp;nbsp;&lt;/P&gt;&lt;P lang="es-MX"&gt;Best Regards,&lt;/P&gt;&lt;P lang="es-MX"&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 18:30:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990128#M55665</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-02-13T18:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: ADC output voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990129#M55666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alexis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked the&amp;nbsp; reg_port_gpio, but it is correct, it point to the FSL define PORTA.&lt;/P&gt;&lt;P&gt;I have also checked:&lt;/P&gt;&lt;P&gt;- the usage as GPIO is OK.&lt;/P&gt;&lt;P&gt;- I used a second hardware =&amp;gt; same result&lt;/P&gt;&lt;P&gt;- I changed to use only one ADC channel =&amp;gt; same result 2,5V output voltage&lt;/P&gt;&lt;P&gt;- I remove all hardware connections form the ADC pin ( pin 79 without any connection ) =&amp;gt; 3.0V output voltage&lt;/P&gt;&lt;P&gt;- I used the example twrke18f_adc12_interrupt and changed it to usage of my ADC&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#define DEMO_ADC12_BASE ADC0&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define DEMO_ADC12_CLOCK_SOURCE kADC12_ClockSourceAlt0&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define DEMO_ADC12_IRQn ADC0_IRQn&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define DEMO_ADC12_IRQ_HANDLER_FUNC ADC0_IRQHandler&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;/* Channel 12 is PTC14 on the board. */&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//#define DEMO_ADC12_USER_CHANNEL 12U&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//#define DEMO_ADC12_CHANNEL_GROUP 0U&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// MRS 7xCC&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define DEMO_ADC12_USER_CHANNEL 0U&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define DEMO_ADC12_CHANNEL_GROUP 0U&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;=&amp;gt; now I have&amp;nbsp; output voltage of 2V on ADC0_SE0 pin 79&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that that there is something on my hardware, but what? I'm out of ideas.&lt;/P&gt;&lt;P&gt;Regards &lt;BR /&gt;Tobias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2020 05:26:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990129#M55666</guid>
      <dc:creator>tobias_mrs</dc:creator>
      <dc:date>2020-02-14T05:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: ADC output voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990130#M55667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/tobias_mrs"&gt;tobias_mrs&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a TWR board where you could replicate this issue with code your using? If this can't be replicated it could mean that something in the hardware is the problem. For reference you could check the schematics form the TWR-KE18 (check link &lt;A href="https://www.nxp.com/webapp/Download?colCode=TWR-KE18F-SCH-DESIGNFILES"&gt;here&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know your findings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2020 20:46:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990130#M55667</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-02-14T20:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: ADC output voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990131#M55668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We don't have a demoboard.&lt;BR /&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;Now we have removed almost all external connections&lt;/SPAN&gt;&lt;/SPAN&gt; and the VREFF and use the example Software =&amp;gt; Same result 2V at the running ADC pin. I have also done the the same test with the normally unused ADC2 at port D =&amp;gt; same result 2V at pin 4.&lt;BR /&gt;We have also checked the schematics form the TWR-KE18.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Tobias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2020 07:56:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990131#M55668</guid>
      <dc:creator>tobias_mrs</dc:creator>
      <dc:date>2020-02-17T07:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: ADC output voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990132#M55669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alexis thank you four your help.&lt;/P&gt;&lt;P&gt;I have attached at schematic to clarify our problem. &lt;BR /&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;Because of the output current of the ADC input, our measurement is falsified by several mV.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20200218_074529.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/101319i86F101CC4D22DBBA/image-size/large?v=v2&amp;amp;px=999" role="button" title="20200218_074529.jpg" alt="20200218_074529.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;Could you measure the voltages at the demoboard, e.g. PTA6/ADC0_SE2_ELEV at both sides of R147. With the potentiometer ADC input you don_t have access to the both voltages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 07:09:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990132#M55669</guid>
      <dc:creator>tobias_mrs</dc:creator>
      <dc:date>2020-02-18T07:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: ADC output voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990133#M55670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tobias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you mention in the demoboard is also present this behavior, doing measurement in R147 I found voltages less than 7mV but using the potentiometer to take some measurements I found that this little voltage if the pin is drive externally doesn't affect the measurement, so I think the little drifting in your board could be due to other reason. I will suggest to check the following application notes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN5250.pdf"&gt;How to Increase the Analog-to-Digital Converter Accuracy in an Application&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4373.pdf"&gt;Cookbook for SAR ADC Measurements&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-103932"&gt;Understanding ADC specifications&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2020 21:44:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990133#M55670</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-02-20T21:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: ADC output voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990134#M55671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alexis&lt;BR /&gt;We have ordered a demoboard to do some measurements. &lt;BR /&gt;But this output voltage has a effect to the measurement! And this output voltage / this output current differs with the measurement voltage. &lt;BR /&gt;We have analyzed the documents, but there is at no point a output current.&lt;/P&gt;&lt;P&gt;We have also done a quick measurement with a Kinetis MK10DN512 and have not found the output voltage.&lt;/P&gt;&lt;P&gt;We will now wait for the demoboard to add there our measurement and test it.&amp;nbsp; &lt;BR /&gt;Best regards &lt;BR /&gt;Tobias Härter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2020 10:00:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990134#M55671</guid>
      <dc:creator>tobias_mrs</dc:creator>
      <dc:date>2020-02-24T10:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: ADC output voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990135#M55672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;BR /&gt;Now I have the demoboard on my desk.&lt;BR /&gt;I use the example twrke18f_adc12_interrupt and I have changed the AC to a 12 bit resolution.&lt;/P&gt;&lt;P&gt;At a normal run the console outputs&lt;BR /&gt;Poti max =&amp;gt; ADC Value: 4094&lt;BR /&gt;Poti min =&amp;gt; ADC Value: 0&lt;/P&gt;&lt;P&gt;The potentiometer is directly connected with the ADC input.&lt;BR /&gt;Now I have replaced the Jumper J9 with a 10kOhm resistor and now I could measure the wrong offset.&lt;/P&gt;&lt;P&gt;Poti max =&amp;gt;&amp;nbsp; ADC Value: 3798&lt;/P&gt;&lt;P&gt;Poti min =&amp;gt; ADC Value: 54&lt;/P&gt;&lt;P&gt;What is wrong with this security resistor in front of the ADC input?&lt;BR /&gt;What is wrong a our ADC Schematic?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Tobias Härter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2020 12:09:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990135#M55672</guid>
      <dc:creator>tobias_mrs</dc:creator>
      <dc:date>2020-02-24T12:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: ADC output voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990136#M55673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;BR /&gt;now we have found a reason for our problems.&lt;BR /&gt;The security resistor for the ADC, with 10kOhm, is to big.&lt;BR /&gt;If we use a 100Ohm resistor we don't have this problems, the voltage drop is lower with the 100 Ohm resistor. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done a test with the demoboard and the potentiometer and better measurement units.&lt;/P&gt;&lt;P&gt;First I changed the example to use 12 bit ADC result and 16bit hardware average.&lt;/P&gt;&lt;P&gt;Then I replaced jumper J9 with a resistor.&amp;nbsp;&lt;BR /&gt;10kOhm:&amp;nbsp; ADC =&amp;gt; Min 271 ... Max 3998&lt;/P&gt;&lt;P&gt;100Ohm: ADC=&amp;gt; Min 0 ... Max 4094&lt;/P&gt;&lt;P&gt;Jumper: ADC=&amp;gt; Min 0 ... Max 4094.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you four your help.&lt;BR /&gt;Tobias Härter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2020 13:44:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-output-voltage/m-p/990136#M55673</guid>
      <dc:creator>tobias_mrs</dc:creator>
      <dc:date>2020-02-25T13:44:55Z</dc:date>
    </item>
  </channel>
</rss>

