<?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 ADC on TWRK60N512 ? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-TWRK60N512/m-p/285509#M10941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;For the adc demo project, when I tried it, I adjusted the potentiometer and used a voltage meter to measure the voltage between pin2 and pin3&amp;nbsp; of potentiometer.&lt;/P&gt;&lt;P&gt;When the voltage between pin2 and pin3 are zero, the adc reading is 32267. When the voltage between pin2 and pin3 is 3.28v, the adc reading is 15 or sometimes 65530.&lt;/P&gt;&lt;P&gt;I am confused about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas about why adc reading like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jul 2013 22:42:58 GMT</pubDate>
    <dc:creator>danielchai</dc:creator>
    <dc:date>2013-07-22T22:42:58Z</dc:date>
    <item>
      <title>ADC on TWRK60N512 ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-TWRK60N512/m-p/285509#M10941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;For the adc demo project, when I tried it, I adjusted the potentiometer and used a voltage meter to measure the voltage between pin2 and pin3&amp;nbsp; of potentiometer.&lt;/P&gt;&lt;P&gt;When the voltage between pin2 and pin3 are zero, the adc reading is 32267. When the voltage between pin2 and pin3 is 3.28v, the adc reading is 15 or sometimes 65530.&lt;/P&gt;&lt;P&gt;I am confused about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas about why adc reading like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 22:42:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-TWRK60N512/m-p/285509#M10941</guid>
      <dc:creator>danielchai</dc:creator>
      <dc:date>2013-07-22T22:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: ADC on TWRK60N512 ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-TWRK60N512/m-p/285510#M10942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking at the Schematics of the TWRK60N512 RevD. The potentiometer pin 2 is connected to ADC1_DM1. The second differential input of the ADC&amp;nbsp; ADC1_DP1 is pulled high to 3.3V on one of the 20pin connectors.&lt;/P&gt;&lt;P&gt;If your ADC software is measuring differential than indeed&amp;nbsp; 3.28V will equal a reading close to zero and when pin2 is at 0V than the ADC measures the pullup voltage of 3.3V which corresponds to about 32267.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So everything is ok. The potentiometer is just connected in a strange way.&lt;/P&gt;&lt;P&gt;On a side note, beware that the potentiometer is a 5K resistor and the input resistance of the ADC is also 5K. This is not ideal since for a precise measurement the ADC should have a much higher resistance. So dont expect precise results from this setup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 08:05:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-TWRK60N512/m-p/285510#M10942</guid>
      <dc:creator>paulmartin</dc:creator>
      <dc:date>2013-07-23T08:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: ADC on TWRK60N512 ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-TWRK60N512/m-p/285511#M10943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;I am confused about the reading 32267. Because I am using ADC 16bits resolution, the reading should be around 65536 when pin2 is 0. Is it correct? or it divides the ADC result to positive and negative, so the largest positive number is 32767 for 16 bits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 13:03:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-TWRK60N512/m-p/285511#M10943</guid>
      <dc:creator>danielchai</dc:creator>
      <dc:date>2013-07-23T13:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: ADC on TWRK60N512 ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-TWRK60N512/m-p/285512#M10944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The 16 bit result is a signed 2's complement. The most significant bit is the sign. That means that positive results go from 0x0000 to 0x7FFF (= 32767). And negative results start at 0xFFFF (=-1) up to 0x8000 (=-32768). Note how the direction of negative results is reversed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 13:29:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-TWRK60N512/m-p/285512#M10944</guid>
      <dc:creator>paulmartin</dc:creator>
      <dc:date>2013-07-23T13:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: ADC on TWRK60N512 ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-TWRK60N512/m-p/285513#M10945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much. It helps a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 14:10:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-TWRK60N512/m-p/285513#M10945</guid>
      <dc:creator>danielchai</dc:creator>
      <dc:date>2013-07-23T14:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: ADC on TWRK60N512 ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-TWRK60N512/m-p/285514#M10946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The potentiometer signal is connected to the differential ADC input pin ADC1_DM1.&amp;nbsp; But you can also setup the ADC to do single-ended conversions on some of the differential pins.&amp;nbsp; If you want to do the single-ended conversion with the MQX example, you can change the ADC channel used in the structure for the ADC driver from ADC1_SOURCE_ADPM1 to ADC1_SOURCE_AD20 in adc_demo.c.&amp;nbsp; Now if you test the example, you will see the converted value scale from 0 to 65535.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Chip Configuration Chapter 3 in the reference manual contains the channels to use for the ADC.&amp;nbsp; If you want single-ended conversions, look under the column with the DIFF bit = 0.&amp;nbsp; Below is the table showing why ADC1_SOURCE_AD20 channel should be used for a single-ended measurement of the ADC1_DM1 signal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ADC Channel.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40049i8AC3B3D7833495BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="ADC Channel.png" alt="ADC Channel.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 21:40:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-TWRK60N512/m-p/285514#M10946</guid>
      <dc:creator>dereksnell</dc:creator>
      <dc:date>2013-07-23T21:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: ADC on TWRK60N512 ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-TWRK60N512/m-p/285515#M10947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Derek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 22:06:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-TWRK60N512/m-p/285515#M10947</guid>
      <dc:creator>danielchai</dc:creator>
      <dc:date>2013-07-23T22:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: ADC on TWRK60N512 ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-TWRK60N512/m-p/285516#M10948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, looked for this information for like 2 hrs until I found this thread. Should have just done a search in the PDF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 01:38:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-TWRK60N512/m-p/285516#M10948</guid>
      <dc:creator>karfes</dc:creator>
      <dc:date>2016-08-26T01:38:19Z</dc:date>
    </item>
  </channel>
</rss>

