<?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: [MKW01] ADC strange behavior in differential mode in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW01-ADC-strange-behavior-in-differential-mode/m-p/721993#M44237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giancarlo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it is mentioned in the datasheet, your ADC input voltage has to be Min VREFL and Max VREFH, this voltage is the one that is taken as the reference to sample the ADC input, so these voltages must have the same ground reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21176iBB8F6CE5F913FE1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2018 21:49:14 GMT</pubDate>
    <dc:creator>jorge_a_vazquez</dc:creator>
    <dc:date>2018-04-18T21:49:14Z</dc:date>
    <item>
      <title>[MKW01] ADC strange behavior in differential mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW01-ADC-strange-behavior-in-differential-mode/m-p/721991#M44235</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;I'm having some issues when using the ADC of the MKW01Z128 in differential mode. In this mode, when I put any voltage between pins PTE18-PTE19 the samples oscilates as you can see in the picture bellow. The same behavior don't occur when in single mode for the same pins individually:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ADC plot.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/7822iF82CA5DD814A8DF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="ADC plot.png" alt="ADC plot.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this test I used a voltage divisor around 975mV, and I'm using a voltage reference of 1.5V as VREFH.&lt;/P&gt;&lt;P&gt;I'm using the ADC in One-Time-Trigger mode, with resolution of 16bits:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#if FSL_FEATURE_ADC16_HAS_CALIBRATION&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; adc16_calibration_param_t userCalConfig;&lt;BR /&gt;#endif /* FSL_FEATURE_ADC16_HAS_CALIBRATION */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; adc16_converter_config_t userConvConfig;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; userConvConfig.lowPowerEnable = false;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; userConvConfig.clkDividerMode = kAdc16ClkDividerOf8;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; userConvConfig.longSampleTimeEnable = true;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; userConvConfig.resolution = kAdc16ResolutionBitOf16;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* 16bits */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; userConvConfig.clkSrc = kAdc16ClkSrcOfAsynClk;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; userConvConfig.asyncClkEnable = true;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; userConvConfig.highSpeedEnable = false;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; userConvConfig.longSampleCycleMode = kAdc16LongSampleCycleOf24;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; userConvConfig.hwTriggerEnable = false;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; userConvConfig.refVoltSrc = kAdc16RefVoltSrcOfVref;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; userConvConfig.continuousConvEnable = false;&lt;BR /&gt;#if FSL_FEATURE_ADC16_HAS_DMA&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; userConvConfig.dmaEnable = false;&lt;BR /&gt;#endif /* FSL_FEATURE_ADC16_HAS_DMA */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(kStatus_ADC16_Success != ADC16_DRV_Init(ADC16_0_IDX, &amp;amp;userConvConfig))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Execute the auto-calibration */&lt;BR /&gt;#if FSL_FEATURE_ADC16_HAS_CALIBRATION&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (kStatus_ADC16_Success != ADC16_DRV_GetAutoCalibrationParam(ADC16_0_IDX, &amp;amp;userCalConfig))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADC16_DRV_SetCalibrationParam(ADC16_0_IDX, &amp;amp;userCalConfig);&lt;BR /&gt;#endif /* FSL_FEATURE_ADC16_HAS_CALIBRATION */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What else can it be? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 13:29:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW01-ADC-strange-behavior-in-differential-mode/m-p/721991#M44235</guid>
      <dc:creator>giancarlozanuz</dc:creator>
      <dc:date>2018-04-11T13:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: [MKW01] ADC strange behavior in differential mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW01-ADC-strange-behavior-in-differential-mode/m-p/721992#M44236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've found something about this, but I'm still confused. This is the simplified test circuit that is produting that odd oscillating graph:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CIRCUIT1.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16280iCB34E81D3E74815B/image-size/large?v=v2&amp;amp;px=999" role="button" title="CIRCUIT1.PNG" alt="CIRCUIT1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But when I connect the same GND to ADC- channel, it works:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CIRCUIT2.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/17086i933FECDAEEB6B3D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="CIRCUIT2.PNG" alt="CIRCUIT2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can see below the comparison graph of both circuits, for 1V on PTE18-PTE19:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ADC TEST.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/17141i03DDE77C3A1D3C71/image-size/large?v=v2&amp;amp;px=999" role="button" title="ADC TEST.png" alt="ADC TEST.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But since I'm working with the ADC in differential mode, why do I need to connect the common GND on the negative input of the ADC?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 12:54:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW01-ADC-strange-behavior-in-differential-mode/m-p/721992#M44236</guid>
      <dc:creator>giancarlozanuz</dc:creator>
      <dc:date>2018-04-17T12:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: [MKW01] ADC strange behavior in differential mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW01-ADC-strange-behavior-in-differential-mode/m-p/721993#M44237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giancarlo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it is mentioned in the datasheet, your ADC input voltage has to be Min VREFL and Max VREFH, this voltage is the one that is taken as the reference to sample the ADC input, so these voltages must have the same ground reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21176iBB8F6CE5F913FE1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 21:49:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW01-ADC-strange-behavior-in-differential-mode/m-p/721993#M44237</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2018-04-18T21:49:14Z</dc:date>
    </item>
  </channel>
</rss>

