<?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>LPC MicrocontrollersのトピックUsing Configtools to set up ADC and DMA from scratch - Sample Project LPC55S69</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-Configtools-to-set-up-ADC-and-DMA-from-scratch-Sample/m-p/1183779#M42890</link>
    <description>&lt;P&gt;Hallo Everyone!&lt;/P&gt;&lt;P&gt;For those of you who want to set up the ADC with DMA using the MCUXpresso Configtools for the LPC55s69&lt;/P&gt;&lt;P&gt;Attached is a sample project that I created from scratch, that samples 6 inputs with the ADC and transfers the values to ram with the DMA&lt;/P&gt;&lt;P&gt;Hope it is of value to someone who is battling to do the same&lt;/P&gt;&lt;P&gt;Gert van Biljon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PS : 2021/08/01 Be careful please!!! I have picked up that adc[0] value transferred by the DMA does not allways end up im buffer[0], but it can end up randomly in buffer[n], if you can see what I am doing wrong, please let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How it works :&lt;/P&gt;&lt;P&gt;1. ADC set up with 4 conversion commands, 2 inputs each on command 1 and 2, and 1 input each on command 3 and 4&lt;BR /&gt;Command 1, Dual CH0 A &amp;amp; B&lt;BR /&gt;Command 2, Dual CH3 A &amp;amp; B&lt;BR /&gt;Command 3, Single CH2 A&lt;BR /&gt;Command 4, Single CH4 A&lt;BR /&gt;2. ADC Conversions are triggered at 18kHz by Trigger 5, CTimer 0, Match channel 3&lt;BR /&gt;3. ADC Trigger 5 set up that ADC results for Channel A and Channel B both go to FIFO 0&lt;BR /&gt;4. Watermerk level on FIFO 0 set to 5, thus the DMA will be triggered to transfer the moment when 6 inputs have&amp;nbsp;been sampled - Imagine the watermark being the ring of dried out tea near the top of an empty teacup&lt;/P&gt;&lt;P&gt;5. DMA set up with 2 Transfer Control Descriptors (TCD), each descriptor transferring 6 ADC result values, the 2&amp;nbsp;TCDs continuously transfer alternately (ping/pong) to 2 different memory destinations.&lt;BR /&gt;6. Printing the consecutively sampled values to 2 different Virtual COM ports, one port displaying the numerical&amp;nbsp;values of the samples, the other plotting a coloured * with left/right position dependent on value of the&amp;nbsp;sample (Colour values best displayed on Windows with Tera Term).&lt;/P&gt;</description>
    <pubDate>Tue, 03 Aug 2021 12:25:48 GMT</pubDate>
    <dc:creator>gertvb</dc:creator>
    <dc:date>2021-08-03T12:25:48Z</dc:date>
    <item>
      <title>Using Configtools to set up ADC and DMA from scratch - Sample Project LPC55S69</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-Configtools-to-set-up-ADC-and-DMA-from-scratch-Sample/m-p/1183779#M42890</link>
      <description>&lt;P&gt;Hallo Everyone!&lt;/P&gt;&lt;P&gt;For those of you who want to set up the ADC with DMA using the MCUXpresso Configtools for the LPC55s69&lt;/P&gt;&lt;P&gt;Attached is a sample project that I created from scratch, that samples 6 inputs with the ADC and transfers the values to ram with the DMA&lt;/P&gt;&lt;P&gt;Hope it is of value to someone who is battling to do the same&lt;/P&gt;&lt;P&gt;Gert van Biljon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PS : 2021/08/01 Be careful please!!! I have picked up that adc[0] value transferred by the DMA does not allways end up im buffer[0], but it can end up randomly in buffer[n], if you can see what I am doing wrong, please let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How it works :&lt;/P&gt;&lt;P&gt;1. ADC set up with 4 conversion commands, 2 inputs each on command 1 and 2, and 1 input each on command 3 and 4&lt;BR /&gt;Command 1, Dual CH0 A &amp;amp; B&lt;BR /&gt;Command 2, Dual CH3 A &amp;amp; B&lt;BR /&gt;Command 3, Single CH2 A&lt;BR /&gt;Command 4, Single CH4 A&lt;BR /&gt;2. ADC Conversions are triggered at 18kHz by Trigger 5, CTimer 0, Match channel 3&lt;BR /&gt;3. ADC Trigger 5 set up that ADC results for Channel A and Channel B both go to FIFO 0&lt;BR /&gt;4. Watermerk level on FIFO 0 set to 5, thus the DMA will be triggered to transfer the moment when 6 inputs have&amp;nbsp;been sampled - Imagine the watermark being the ring of dried out tea near the top of an empty teacup&lt;/P&gt;&lt;P&gt;5. DMA set up with 2 Transfer Control Descriptors (TCD), each descriptor transferring 6 ADC result values, the 2&amp;nbsp;TCDs continuously transfer alternately (ping/pong) to 2 different memory destinations.&lt;BR /&gt;6. Printing the consecutively sampled values to 2 different Virtual COM ports, one port displaying the numerical&amp;nbsp;values of the samples, the other plotting a coloured * with left/right position dependent on value of the&amp;nbsp;sample (Colour values best displayed on Windows with Tera Term).&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 12:25:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-Configtools-to-set-up-ADC-and-DMA-from-scratch-Sample/m-p/1183779#M42890</guid>
      <dc:creator>gertvb</dc:creator>
      <dc:date>2021-08-03T12:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using Configtools to set up ADC and DMA from scratch - Sample Project LPC55S69</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-Configtools-to-set-up-ADC-and-DMA-from-scratch-Sample/m-p/1184155#M42896</link>
      <description>&lt;P&gt;Dear &lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-II lia-component-message-view-widget-author-username"&gt;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" style="color: #333f48;" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/154497" target="_self"&gt;&lt;SPAN class=""&gt;gertvb&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;Thanks very much for your sharing, it is helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 02:23:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-Configtools-to-set-up-ADC-and-DMA-from-scratch-Sample/m-p/1184155#M42896</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2020-11-17T02:23:46Z</dc:date>
    </item>
  </channel>
</rss>

