<?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: How use ADC to take measurements in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-use-ADC-to-take-measurements/m-p/597401#M6062</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the Green LED blinks. where do I find the crystal circuit and in what way do I modify it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2017 16:22:57 GMT</pubDate>
    <dc:creator>jacewalton</dc:creator>
    <dc:date>2017-01-12T16:22:57Z</dc:date>
    <item>
      <title>How use ADC to take measurements</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-use-ADC-to-take-measurements/m-p/597397#M6058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using an ADC peripheral&amp;nbsp; driver to take measurements of voltage.&lt;/P&gt;&lt;P&gt;I am using sdk 1.3.0 and the MK22F board&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used PE to set up the ADC.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see the the&amp;nbsp;&amp;nbsp; PE_low_level_init(); function the ADC in initalized but how do I use it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already checked the ADC examples in C:/freescale/sdk1.3.0/examples....&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could not get the projects to build I shall include my project in case you need it.&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the functions that I am using to try to read the ADC value&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ADC16_DRV_SetChnMux(0, 0);&lt;BR /&gt; val = ADC16_DRV_GetConvValueRAW(0, (uint32_t)0);&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The project's name is Worktax.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338664"&gt;worktrax.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2017 00:47:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-use-ADC-to-take-measurements/m-p/597397#M6058</guid>
      <dc:creator>jacewalton</dc:creator>
      <dc:date>2017-01-07T00:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: How use ADC to take measurements</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-use-ADC-to-take-measurements/m-p/597398#M6059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Since you are using FRDM-K22F board, why not direct test the ADC demo examples in SDK_2.1_FRDM-K22F?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="readme.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8775i26F773DBDD1CE460/image-size/large?v=v2&amp;amp;px=999" role="button" title="readme.png" alt="readme.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ADC SDK_2.1_FRDM-K22F.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8819i54EA0DC9F9EB904B/image-size/large?v=v2&amp;amp;px=999" role="button" title="ADC SDK_2.1_FRDM-K22F.png" alt="ADC SDK_2.1_FRDM-K22F.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Search 'K22F' then select FRDM-K22F board.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Select FRDM-K22F.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/9061i9B8872E704B83AEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Select FRDM-K22F.png" alt="Select FRDM-K22F.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After specify additional configuration settings, you can download SDK_2.1_FRDM-K22F.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="download SDK_2.1_FRDM-K22F.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8776i2BD15FCCD19C8FBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="download SDK_2.1_FRDM-K22F.png" alt="download SDK_2.1_FRDM-K22F.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can getting start with KSDK and KDS from reading below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;"&lt;A _jive_internal="true" class="" data-containerid="11234" data-containertype="14" data-content-finding="Community" data-objectid="329631" data-objecttype="102" href="https://community.nxp.com/docs/DOC-329631"&gt;How to start with KSDK&lt;/A&gt;"&amp;nbsp; and "&lt;A _jive_internal="true" class="" data-containerid="11213" data-containertype="14" data-content-finding="Community" data-objectid="330200" data-objecttype="102" href="https://community.nxp.com/docs/DOC-330200"&gt;KDS Document List&lt;/A&gt;".&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 09:00:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-use-ADC-to-take-measurements/m-p/597398#M6059</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2017-01-10T09:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: How use ADC to take measurements</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-use-ADC-to-take-measurements/m-p/597399#M6060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the replies I have done this however and could not get the Demo to run it will build and debug for non of the functionality on any of the demo apps has worked for me or my&amp;nbsp;colleague.&lt;/P&gt;&lt;P&gt;not sure what the problem is.&lt;/P&gt;&lt;P&gt;I also do have the Platform project that is necessary to build the projects with.&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 17:12:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-use-ADC-to-take-measurements/m-p/597399#M6060</guid>
      <dc:creator>jacewalton</dc:creator>
      <dc:date>2017-01-10T17:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: How use ADC to take measurements</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-use-ADC-to-take-measurements/m-p/597400#M6061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jace,&lt;/P&gt;&lt;P&gt;It looks like the examples in SDK_2.1_FRDM-K22F never works on your FRDM-K22F board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your first question "&lt;A href="https://community.nxp.com/thread/441338"&gt;HardFault problem in KDS using K22F&lt;/A&gt;&amp;nbsp;", hardfault happens when trying to run CLOCK_InitOsc0() function. Have you ever modified the crystal circuit of FRDM-K22F board?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="441338 2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11555i3C27F57A7050BF16/image-size/large?v=v2&amp;amp;px=999" role="button" title="441338 2.png" alt="441338 2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you please try to run the fei_blpi example( ...\SDK_2.1_FRDM-K22F\boards\frdmk22f\driver_examples\mcg\fei_blpi).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="fei_blpi SDK_2.1_FRDM-K22F.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11515iFD2B997CB1A0808E/image-size/large?v=v2&amp;amp;px=999" role="button" title="fei_blpi SDK_2.1_FRDM-K22F.png" alt="fei_blpi SDK_2.1_FRDM-K22F.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that example works(the Green LED blink), you may need to check your crystal circuit.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="crystal circuit FRDM-K22F.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11468i5A499E132E2D5E8C/image-size/large?v=v2&amp;amp;px=999" role="button" title="crystal circuit FRDM-K22F.png" alt="crystal circuit FRDM-K22F.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 03:19:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-use-ADC-to-take-measurements/m-p/597400#M6061</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2017-01-11T03:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: How use ADC to take measurements</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-use-ADC-to-take-measurements/m-p/597401#M6062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the Green LED blinks. where do I find the crystal circuit and in what way do I modify it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 16:22:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-use-ADC-to-take-measurements/m-p/597401#M6062</guid>
      <dc:creator>jacewalton</dc:creator>
      <dc:date>2017-01-12T16:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: How use ADC to take measurements</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-use-ADC-to-take-measurements/m-p/597402#M6063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using FRDM-K22F board, download the &lt;A href="http://www.nxp.com/assets/downloads/data/en/schematics/FRDM-K22F-SCH.pdf"&gt;FRDM-K22F-SCH Schematics&lt;/A&gt; from this &lt;A href="http://www.nxp.com/products/software-and-tools/hardware-development-tools/freedom-development-boards/nxp-freedom-development-platform-for-kinetis-k22-mcus:FRDM-K22F?tab=Design_Tools_Tab"&gt;weblink&lt;/A&gt;.&lt;BR /&gt;You need check whether the crystal(Y1) and C31\C38 are&amp;nbsp; soldered correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That fei_blpi example works because it did't use the external crystal as clock source.&lt;/P&gt;&lt;P&gt;If the crystal is correct soldered, then other examples will works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 22:05:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-use-ADC-to-take-measurements/m-p/597402#M6063</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2017-01-12T22:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: How use ADC to take measurements</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-use-ADC-to-take-measurements/m-p/597403#M6064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got a different k22f board and the demo apps work, there must be a problem with my crystal circuit...&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 23:48:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-use-ADC-to-take-measurements/m-p/597403#M6064</guid>
      <dc:creator>jacewalton</dc:creator>
      <dc:date>2017-01-12T23:48:05Z</dc:date>
    </item>
  </channel>
</rss>

