<?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>Kinetis MicrocontrollersのトピックRe: How to configure differential ADC on K22FN1M0</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-differential-ADC-on-K22FN1M0/m-p/325239#M14918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We ran into the same problem trying to use lwadc to read differential ADC on K60. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does FSL have plan to add K60 support to SDK ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have anyone try adding differential ADC to lwadc ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Aug 2014 15:28:34 GMT</pubDate>
    <dc:creator>richardtseng</dc:creator>
    <dc:date>2014-08-05T15:28:34Z</dc:date>
    <item>
      <title>How to configure differential ADC on K22FN1M0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-differential-ADC-on-K22FN1M0/m-p/325234#M14913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the MQX4.1 lwadc based on the example code for the twrk21f120m board, and for single-ended readings it appears to work fine.&amp;nbsp; But I also have a differential input on a custom board I want to use and I'm not sure how to set that up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The source I'm using is ADC0_SOURCE_ADPM1 (pins 14 an 15 on the 100pin K22).&amp;nbsp; This source (according to adc_mk21f.h) includes the ADC_SOURCE_DIFF flag, so I was hoping it would work without extra effort, but it looks like I'm getting only a single-ended reading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I call _lwadc_get_attribute(lwadc_ptr,LWADC_DIFFERENTIAL,&amp;amp;value), I get a response of 0.&amp;nbsp; If I try to set it (calling _lwadc_set_attribute(lwadc_ptr, LWADC_DIFFERENTIAL, 1)), I get an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there some other flags or configuration I need to do to get differential readings?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Angelo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jul 2014 13:28:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-differential-ADC-on-K22FN1M0/m-p/325234#M14913</guid>
      <dc:creator>ARQuattr</dc:creator>
      <dc:date>2014-07-26T13:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure differential ADC on K22FN1M0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-differential-ADC-on-K22FN1M0/m-p/325235#M14914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Angelo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you dig into the code you will see differential pair is not supported in MQX:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;\Freescale_MQX_4_1\mqx\source\io\lwadc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File lwadc_kadc.c, line 491:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case LWADC_DIFFERENTIAL:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* We don't support differential, so return FALSE if asked for it, TRUE otherwise */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return !value;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried with Processor Expert? I believe it supports differential pair ADC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Santiago&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 14:55:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-differential-ADC-on-K22FN1M0/m-p/325235#M14914</guid>
      <dc:creator>santiago_gonzal</dc:creator>
      <dc:date>2014-07-28T14:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure differential ADC on K22FN1M0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-differential-ADC-on-K22FN1M0/m-p/325236#M14915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gee, nice!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well thanks for saving me more time on this.&amp;nbsp; I'll try Processor Expert, or maybe just write my own simple driver.&amp;nbsp; Or maybe I'll just read each one single-ended and take the difference, although I was hoping for a simultaneous read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else written some simple direct register access code to configure and read differential ADC?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 21:50:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-differential-ADC-on-K22FN1M0/m-p/325236#M14915</guid>
      <dc:creator>ARQuattr</dc:creator>
      <dc:date>2014-07-29T21:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure differential ADC on K22FN1M0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-differential-ADC-on-K22FN1M0/m-p/325237#M14916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hello Angelo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the SDK, it has drivers for the ADC and it supports differential mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the moment K64,23 and 24 are the only supported, but in the next revision K21 and K22&lt;SPAN style="mso-spacerun:yes"&gt;&amp;nbsp;&lt;/SPAN&gt; 120 MHz will be supported. But the registers for the ADC are the same, so you will probably be able to reuse most of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS_SDK"&gt;http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS_SDK&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santiago&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 08:55:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-differential-ADC-on-K22FN1M0/m-p/325237#M14916</guid>
      <dc:creator>santiago_gonzal</dc:creator>
      <dc:date>2014-07-30T08:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure differential ADC on K22FN1M0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-differential-ADC-on-K22FN1M0/m-p/325238#M14917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Angelo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just as an update, the SDK 1.0.0 has been released in the web. It has examples for K22 120 MHz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santiago&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 10:33:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-differential-ADC-on-K22FN1M0/m-p/325238#M14917</guid>
      <dc:creator>santiago_gonzal</dc:creator>
      <dc:date>2014-08-05T10:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure differential ADC on K22FN1M0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-differential-ADC-on-K22FN1M0/m-p/325239#M14918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We ran into the same problem trying to use lwadc to read differential ADC on K60. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does FSL have plan to add K60 support to SDK ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have anyone try adding differential ADC to lwadc ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 15:28:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-differential-ADC-on-K22FN1M0/m-p/325239#M14918</guid>
      <dc:creator>richardtseng</dc:creator>
      <dc:date>2014-08-05T15:28:34Z</dc:date>
    </item>
  </channel>
</rss>

