<?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: ADC on FRDM board using PE</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-FRDM-board-using-PE/m-p/244390#M6263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is hard to say what you are missing, there is a lot of possibilities for the reasons of your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to follow the examples that you can find in Help of component: right click on the component-&amp;gt;Help on component-&amp;gt;typical usage. Unfortunately are examples just for one channel.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;In the attachments you will find and example reading 4 ADC channels without interrupt and there is another one with one channel and with interrupt. (it is one way you can do it, could be many ways more).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hope this helps. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jan 2013 16:21:09 GMT</pubDate>
    <dc:creator>adriansc</dc:creator>
    <dc:date>2013-01-31T16:21:09Z</dc:date>
    <item>
      <title>ADC on FRDM board using PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-FRDM-board-using-PE/m-p/244389#M6262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the Typical Example code provided for the higher level component AD1.&amp;nbsp; I basically followed the One conversion example of all channels, with interrupt service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I selected two channels to be enabled in the component and selected the pins, but when the interrupt fires off and I command&lt;/P&gt;&lt;P&gt;AD1_Measure(TRUE) then&lt;/P&gt;&lt;P&gt;AD1_GetValue(Values);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only channel 0 shows a value. channel 1 is always 0 value in the variable view.&amp;nbsp; My code looks at the value as ADC_Value[0] and ADC_Value[1]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What might I be missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 06:29:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-FRDM-board-using-PE/m-p/244389#M6262</guid>
      <dc:creator>steve_fae</dc:creator>
      <dc:date>2013-01-31T06:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: ADC on FRDM board using PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-FRDM-board-using-PE/m-p/244390#M6263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is hard to say what you are missing, there is a lot of possibilities for the reasons of your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to follow the examples that you can find in Help of component: right click on the component-&amp;gt;Help on component-&amp;gt;typical usage. Unfortunately are examples just for one channel.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;In the attachments you will find and example reading 4 ADC channels without interrupt and there is another one with one channel and with interrupt. (it is one way you can do it, could be many ways more).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hope this helps. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 16:21:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-FRDM-board-using-PE/m-p/244390#M6263</guid>
      <dc:creator>adriansc</dc:creator>
      <dc:date>2013-01-31T16:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: ADC on FRDM board using PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-FRDM-board-using-PE/m-p/244391#M6264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you please post the sample project with you settings ?&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Petr Hradsky&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 16:48:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-FRDM-board-using-PE/m-p/244391#M6264</guid>
      <dc:creator>Petr_H</dc:creator>
      <dc:date>2013-01-31T16:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: ADC on FRDM board using PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-FRDM-board-using-PE/m-p/244392#M6265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mentioned attachments, which are you referring to?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 22:59:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-FRDM-board-using-PE/m-p/244392#M6265</guid>
      <dc:creator>steve_fae</dc:creator>
      <dc:date>2013-01-31T22:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: ADC on FRDM board using PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-FRDM-board-using-PE/m-p/244393#M6266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't load the project due to some customer info included.&lt;/P&gt;&lt;P&gt;full project uploaded under TIC &lt;A href="https://www.freescale.com/webapp/servicerequest.clr_list_details_SR.framework?internalServiceRequestId=1-GMWB0P&amp;amp;serviceRequestNumber=1-1005917641&amp;amp;category=Hardware%20Product%20Support&amp;amp;topic=Generic%20Design%20Questions&amp;amp;commandType=VIEWOPENSR"&gt;1-1005917641&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is a screen capture of the bean settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* User includes (#include below this line is not maintained by Processor Expert) */&lt;/P&gt;&lt;P&gt;bool ValuesAvailable = FALSE;&amp;nbsp; // control variable&lt;/P&gt;&lt;P&gt;unsigned int ADC_Value[2];&lt;/P&gt;&lt;P&gt;LDD_TError Error;&lt;/P&gt;&lt;P&gt;unsigned int i,j;&lt;/P&gt;&lt;P&gt;LDD_TDeviceData *MyDataPtr;&lt;/P&gt;&lt;P&gt;unsigned int timer_done=FALSE;&lt;/P&gt;&lt;P&gt;unsigned int ADC_Total,ADC_Avg;&lt;/P&gt;&lt;P&gt;unsigned int temp;&lt;/P&gt;&lt;P&gt;bool ValuesAvailable;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And here is the code I used its all tabbed corrrectly:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AD1_Measure(TRUE); &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;AD1_GetValue(ADC_Value); &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Wait_ADC: &lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; while(!ValuesAvailable)goto Wait_ADC; /* wait for interrupt saying ADC is complete */&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; ValuesAvailable = FALSE;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/38511i53BC16E8AC1B8EDE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 23:09:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-FRDM-board-using-PE/m-p/244393#M6266</guid>
      <dc:creator>steve_fae</dc:creator>
      <dc:date>2013-01-31T23:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: ADC on FRDM board using PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-FRDM-board-using-PE/m-p/244394#M6267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright, I have tried everything.&amp;nbsp; I put the get value inside the interrupt routine rather then in main, I tried to convert just channel 1, I even tried AD1_Measure(FALSE); to get the second conversion to happen like the typical usage example.&amp;nbsp; I always get a value in the first element and only 0 in the second element.&amp;nbsp; Could someone spin the most simple example either polling or through interrupt of getting two channels to convert?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 03:35:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-FRDM-board-using-PE/m-p/244394#M6267</guid>
      <dc:creator>steve_fae</dc:creator>
      <dc:date>2013-02-01T03:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: ADC on FRDM board using PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-FRDM-board-using-PE/m-p/244395#M6268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adrian, the TIC provide the file which I attached to my documents. FRDM-ADC-PEx.zip&lt;/P&gt;&lt;P&gt;I still only see one value shown in the debugger for Measured Values, I changed the first two pins to PTE20, and PTE22 which the real application uses.&amp;nbsp; Can you confirm this project is working correctly.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/38682i54F9FA94E3B3C8C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 16:12:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-FRDM-board-using-PE/m-p/244395#M6268</guid>
      <dc:creator>steve_fae</dc:creator>
      <dc:date>2013-02-01T16:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: ADC on FRDM board using PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-FRDM-board-using-PE/m-p/244396#M6269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;from you code, it seems that the problem could be that you have declared results as array of unsigned ints, but the results are 16-bit and int is 32bit.&lt;/P&gt;&lt;P&gt;Try to use 'word' instead.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;You can see also attached simple example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Petr Hradsky&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 16:31:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-FRDM-board-using-PE/m-p/244396#M6269</guid>
      <dc:creator>Petr_H</dc:creator>
      <dc:date>2013-02-01T16:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: ADC on FRDM board using PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-FRDM-board-using-PE/m-p/244397#M6270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to the community, where do I go for attachments?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 16:36:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-FRDM-board-using-PE/m-p/244397#M6270</guid>
      <dc:creator>steve_fae</dc:creator>
      <dc:date>2013-02-01T16:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: ADC on FRDM board using PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-FRDM-board-using-PE/m-p/244398#M6271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's within my last post.&lt;/P&gt;&lt;P&gt;You were probably looking only in inbox notifications. Try to see the whole thread by clicking on the title or use this link: &lt;A href="https://community.nxp.com/message/314257"&gt;Re: ADC on FRDM board using PE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Petr Hradsky&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 08:18:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-on-FRDM-board-using-PE/m-p/244398#M6271</guid>
      <dc:creator>Petr_H</dc:creator>
      <dc:date>2013-02-04T08:18:20Z</dc:date>
    </item>
  </channel>
</rss>

