<?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>Processor Expert Software中的主题 Re: To use ADC by CW 10.2 Processor Expert</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147763#M37</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can also find simple examples of code for using a component on the "Typical usage" page accessible from help of each component. You can get this help using component pop-up menu command "Help on component" and then click the "Typical usage" link in the left side of the help pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what do you mean by passing a channel number, but if the component should return the numbers of channels, this would be quite a wasting of memory space, if you application knows the order of channels. RAM is usually quite limited resource in embedded system...&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;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 May 2013 07:43:38 GMT</pubDate>
    <dc:creator>Petr_H</dc:creator>
    <dc:date>2013-05-16T07:43:38Z</dc:date>
    <item>
      <title>To use ADC by CW 10.2 Processor Expert</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147753#M27</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I'm designing an ADC input in K40N256 with TWR-K40X256 board . And I create a project by CW 10.2&amp;nbsp; Processor Expert .&lt;/P&gt;&lt;P&gt;I create&amp;nbsp; a ADC component and initial it . But how to read the ADC convert result ?&amp;nbsp; Is there any example project for it ?&lt;/P&gt;&lt;P&gt;Channel - AD1DM1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 09:16:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147753#M27</guid>
      <dc:creator>WGH</dc:creator>
      <dc:date>2012-03-21T09:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: To use ADC by CW 10.2 Processor Expert</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147754#M28</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 be more specific what component do you use ? ADC_LDD or Init_ADC ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, if you are using ADC_LDD there are generated functions(methods) &amp;nbsp;that you can use.&amp;nbsp;Please see the Typical usage page of the documentation. It's accessible via pop-up menu for the component by selection the command "Help on component" and in the page that opens &amp;nbsp;select the link "Typical Usage".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I you are using Init_ADC, you need to access the ADC registers directly according to the K40X256 manual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;BR /&gt;Petr Hradsky&lt;BR /&gt;Processor Expert Support &amp;nbsp;Team&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 20:58:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147754#M28</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2012-03-30T20:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: To use ADC by CW 10.2 Processor Expert</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147755#M29</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way I'm also using the same ADC_LDD but my problem is that I'm doing an audio application and I must set the sampling freq exactly to 16kHz,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to set an external counter to set the exactly freq or could it be done using the differrent properties of the component&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br's&lt;/P&gt;&lt;P&gt;Jordi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 21:53:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147755#M29</guid>
      <dc:creator>jordimerc</dc:creator>
      <dc:date>2012-04-03T21:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: To use ADC by CW 10.2 Processor Expert</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147756#M30</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please find attached a demo project for Kinetis Kwikstik board (using K40).&lt;/P&gt;&lt;P&gt;This demo project is created with use of Processor Expert and it's Peripheral Initialization Components.&lt;BR /&gt;Microphone signal is periodically sampled and displayed on the display.&lt;/P&gt;&lt;P&gt;ADC is &lt;SPAN&gt;periodically&amp;nbsp;&lt;/SPAN&gt;triggered for &amp;nbsp;8 kHz (Influenced by Init_PDB period setting).&lt;BR /&gt;The ADC (ADC0, channel 10) results are read and automatically stored using DMA into a memory buffer so the CPU is informed after the buffer is full and doesn't have to care for reading each value individually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 22:47:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147756#M30</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2012-04-26T22:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: To use ADC by CW 10.2 Processor Expert</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147757#M31</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help&amp;nbsp;&lt;SPAN&gt;Petr, it has been very helpful!!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR's&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jordi&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 23:27:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147757#M31</guid>
      <dc:creator>jordimerc</dc:creator>
      <dc:date>2012-05-18T23:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: To use ADC by CW 10.2 Processor Expert</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147758#M32</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You say "please find the attached demo project..."&lt;/P&gt;&lt;P&gt;I don't see the attachment.&lt;/P&gt;&lt;P&gt;Would you please tell me how to get it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 22:16:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147758#M32</guid>
      <dc:creator>greglapin</dc:creator>
      <dc:date>2013-01-23T22:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: To use ADC by CW 10.2 Processor Expert</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147759#M33</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, the attachment has disappeared when old forums were migrated. &lt;/P&gt;&lt;P&gt;Please find it attached to this post.&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;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>Tue, 29 Jan 2013 08:18:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147759#M33</guid>
      <dc:creator>Petr_H</dc:creator>
      <dc:date>2013-01-29T08:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: To use ADC by CW 10.2 Processor Expert</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147760#M34</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Surely there is a register to write to trigger a conversion, a bit to poll for end-of-conversion, and a data register to read. Just trying to verify hardware at this stage, need the simplest way to do a conversion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 22:43:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147760#M34</guid>
      <dc:creator>DustyStew</dc:creator>
      <dc:date>2013-05-15T22:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: To use ADC by CW 10.2 Processor Expert</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147761#M35</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a tutorial which might be useful:&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2013/02/10/tutorial-adc-with-the-freedom-board/" title="http://mcuoneclipse.com/2013/02/10/tutorial-adc-with-the-freedom-board/"&gt;Tutorial: ADC with the Freedom Board&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 03:41:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147761#M35</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2013-05-16T03:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: To use ADC by CW 10.2 Processor Expert</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147762#M36</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;P&gt;Yes I found your blog post, awesome. That is good documentation. It just works. You rock. I tried the other two ADC components (init &amp;amp; LDD), couldn't figure out what to do with them, there seemed to be no API for getting a value. I spent 2 hours on that. Then 10 minutes with your tutorial and had it going. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One point that is not absolutely clear is how to get multiple values. It seems you are meant to pass the address of an array, and the values for each channel are stored sequentially. Kind of a dangerous way of doing things. It would make more sense to pass a channel number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 04:09:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147762#M36</guid>
      <dc:creator>DustyStew</dc:creator>
      <dc:date>2013-05-16T04:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: To use ADC by CW 10.2 Processor Expert</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147763#M37</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can also find simple examples of code for using a component on the "Typical usage" page accessible from help of each component. You can get this help using component pop-up menu command "Help on component" and then click the "Typical usage" link in the left side of the help pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what do you mean by passing a channel number, but if the component should return the numbers of channels, this would be quite a wasting of memory space, if you application knows the order of channels. RAM is usually quite limited resource in embedded system...&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;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 07:43:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147763#M37</guid>
      <dc:creator>Petr_H</dc:creator>
      <dc:date>2013-05-16T07:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: To use ADC by CW 10.2 Processor Expert</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147764#M38</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am suggesting a better API would have a function something like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;word AD1_GetValue16ByChannel(int channel); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which would return the value of the measurement for the particular ADC channel. This function is safe. It's just your basic "getter" function. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereas passing a pointer (as in the current implementation) requires that the caller has allocated a buffer of suitable size. If the buffer is too small, you have a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I disagree about saving RAM, I think the current implementation would use more RAM, as the measurements are being buffered both in the driver and in the application code. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 20:18:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/To-use-ADC-by-CW-10-2-Processor-Expert/m-p/147764#M38</guid>
      <dc:creator>DustyStew</dc:creator>
      <dc:date>2013-05-22T20:18:01Z</dc:date>
    </item>
  </channel>
</rss>

