<?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: HSADC data acquisition in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/HSADC-data-acquisition/m-p/573734#M18884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by metraTec on Mon Feb 29 06:59:41 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just started with the same chip some time ago with about the same peripherals.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the Square wave generation I would use the SGPIO. It is a bit hard to set, but from then on works easy. 200kHz should be generated easily. I'm doing a quiet similar thing and it works fine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the ADC: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can activate the ADCHS manually. Just add an interrupt to your button and you should be fine. You may also use the IRQ of the SGPIO.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The activation of the ADCHS is not that complicated. Use your two channels and just pull them. You have 20 MS in total or per channel?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just write the data to the RAM to excange to the M0 App and in a Pause (or any time, but you seem to have enough time anyway) send the data via USB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:59:16 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:59:16Z</dc:date>
    <item>
      <title>HSADC data acquisition</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/HSADC-data-acquisition/m-p/573733#M18883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jcunha on Tue Dec 29 11:47:24 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello everyone.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm new to LPC microcontrollers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to develop an application for LPC4370. I'm using LPCXpresso v8.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For now I'm using a LPC link 2 to test my code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I already start using it, mainly using the examples from LPCOpen, but I need some help in order to do a project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I will describe what I need and if someone could steer me in the right direction, I would appreciate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to generate 1 square wave, acquire 2 sine waves and send acquired data to a PC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The square wave (200 kHz, 50% duty cycle) should be generated for 10 ms, and after 100 ms, generated again for 10 ms, and so on. This wave is generated periodically as long as a button is ON. Button OFF, no square wave.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also need to start acquiring samples from 2 ADC for 10 ms, when the square wave starts being generated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need 20 MS/s sampling frequency (one sample each 50 ns), which gives 200000 samples for each adc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After acquisition, data needs to be sent through USB to a PC for post processing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone help me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:59:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/HSADC-data-acquisition/m-p/573733#M18883</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: HSADC data acquisition</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/HSADC-data-acquisition/m-p/573734#M18884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by metraTec on Mon Feb 29 06:59:41 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just started with the same chip some time ago with about the same peripherals.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the Square wave generation I would use the SGPIO. It is a bit hard to set, but from then on works easy. 200kHz should be generated easily. I'm doing a quiet similar thing and it works fine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the ADC: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can activate the ADCHS manually. Just add an interrupt to your button and you should be fine. You may also use the IRQ of the SGPIO.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The activation of the ADCHS is not that complicated. Use your two channels and just pull them. You have 20 MS in total or per channel?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just write the data to the RAM to excange to the M0 App and in a Pause (or any time, but you seem to have enough time anyway) send the data via USB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:59:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/HSADC-data-acquisition/m-p/573734#M18884</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:59:16Z</dc:date>
    </item>
  </channel>
</rss>

