<?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 to use DMA with timer/capture input with LPC1830? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-DMA-with-timer-capture-input-with-LPC1830/m-p/643391#M25418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="277232" data-username="ulbed" href="https://community.nxp.com/people/ulbed"&gt;Johannes Reif&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;1. Am I right, that I would have to use the SCT to generate DMA requests for capture events?&lt;/P&gt;&lt;P&gt;No, the capture event is not the request signal.&lt;/P&gt;&lt;P&gt;2.About the alternative approach, I think it can work.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&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>Mon, 12 Dec 2016 02:08:57 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2016-12-12T02:08:57Z</dc:date>
    <item>
      <title>How to use DMA with timer/capture input with LPC1830?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-DMA-with-timer-capture-input-with-LPC1830/m-p/643388#M25415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I use timer 3 in timer mode and use timer 3 capture input 0 to capture falling and rising edges.&lt;/P&gt;&lt;P&gt;How is it possible to generate a DMA reqeust to store the capture register to a memory buffer whenever a rising or falling edge (capture event) has happened?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I can see, timer DMA requests can only be made by timer match event, but I need it for capture event...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 14:41:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-DMA-with-timer-capture-input-with-LPC1830/m-p/643388#M25415</guid>
      <dc:creator>ulbed</dc:creator>
      <dc:date>2016-12-02T14:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DMA with timer/capture input?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-DMA-with-timer-capture-input-with-LPC1830/m-p/643389#M25416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="277232" data-username="ulbed" href="https://community.nxp.com/people/ulbed"&gt;Johannes Reif&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Thank you for interest in NXP Semiconductor products and the opportunity to serve you.&lt;/P&gt;&lt;P&gt;I was wondering if you can tell me which chip you used.&lt;/P&gt;&lt;P&gt;I'm looking forward to your reply.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&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, 06 Dec 2016 07:22:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-DMA-with-timer-capture-input-with-LPC1830/m-p/643389#M25416</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-12-06T07:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DMA with timer/capture input?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-DMA-with-timer-capture-input-with-LPC1830/m-p/643390#M25417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry, I forgot to state that I'm using an LPC1830.&lt;/P&gt;&lt;P&gt;I configured the DMA for peripheral to memory. Peripheral address is the Timer 3 - CR0, memory address is a buffer with incrementing address, and the DMA is the flow controller. But the DMA requests are not generated for a capture event. It seems they only work for match events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I right, that I would have to use the SCT to generate DMA requests for capture events? Can you give a quick overview or example of how to configure things right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another aproach I thought: Is it possible to use an additional timer (i.e. Timer 2) as counter for the same CTIN_0 (GIMA input) signal and set the match value to 1 with 'reset timer on match' to generate the DMA request for every signal edge. Then use the peripheral address of the other timer capture register (Timer 3 in timer mode) for the DMA to continuously store the time of the event. Do you think this would work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Dec 2016 18:38:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-DMA-with-timer-capture-input-with-LPC1830/m-p/643390#M25417</guid>
      <dc:creator>ulbed</dc:creator>
      <dc:date>2016-12-10T18:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DMA with timer/capture input with LPC1830?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-DMA-with-timer-capture-input-with-LPC1830/m-p/643391#M25418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="277232" data-username="ulbed" href="https://community.nxp.com/people/ulbed"&gt;Johannes Reif&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;1. Am I right, that I would have to use the SCT to generate DMA requests for capture events?&lt;/P&gt;&lt;P&gt;No, the capture event is not the request signal.&lt;/P&gt;&lt;P&gt;2.About the alternative approach, I think it can work.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&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>Mon, 12 Dec 2016 02:08:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-DMA-with-timer-capture-input-with-LPC1830/m-p/643391#M25418</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-12-12T02:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DMA with timer/capture input with LPC1830?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-DMA-with-timer-capture-input-with-LPC1830/m-p/643392#M25419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. I can confirm the second approach will work. But there's one thing: Each time the DMA channel is activated there are 2 initial DMA requests/transfers. I don't know where they come from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing I found in the user manual is:&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="font-size: 9pt; color: #000000; font-style: normal; font-variant: normal;"&gt;&lt;STRONG&gt;Remark: &lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; color: #000000; font-style: normal; font-variant: normal;"&gt;The GPDMA pre-loads the data from the source&lt;BR /&gt;&lt;SPAN style="font-size: 9pt; color: #000000; font-style: normal; font-variant: normal;"&gt;memory as soon as the channel is enabled. The data&lt;BR /&gt;&lt;SPAN style="font-size: 9pt; color: #000000; font-style: normal; font-variant: normal;"&gt;pre-loading occurs independently of receiving a DMA transfer&lt;BR /&gt;&lt;SPAN style="font-size: 9pt; color: #000000; font-style: normal; font-variant: normal;"&gt;request.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;But my source is peripheral, not memory and by pre-load I wouldn't mean a full DMA transfer. Besides that I witness two transfers, not one.&lt;/P&gt;&lt;P&gt;It looks more like some previous unhandled match events.&lt;/P&gt;&lt;P&gt;Do you have a hint to prevent those 2 initial requests?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 10:07:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-DMA-with-timer-capture-input-with-LPC1830/m-p/643392#M25419</guid>
      <dc:creator>ulbed</dc:creator>
      <dc:date>2016-12-13T10:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DMA with timer/capture input with LPC1830?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-DMA-with-timer-capture-input-with-LPC1830/m-p/643393#M25420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="277232" data-username="ulbed" href="https://community.nxp.com/people/ulbed"&gt;Johannes Reif,&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;In the Remark section, the source memory doesn't particular point to the memory, it means the summary of the source.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;It seems so weird about the multiple DMA requests, and I'd highly recommend you to refer to the library which includes the DMA demo.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;A class="link-titled" href="https://www.lpcware.com/content/nxpfile/lpc18xx-cmsis-compliant-standard-peripheral-firmware-driver-library-keil-iar" title="https://www.lpcware.com/content/nxpfile/lpc18xx-cmsis-compliant-standard-peripheral-firmware-driver-library-keil-iar"&gt;LPC18xx CMSIS-Compliant Standard Peripheral Firmware Driver Library (Keil, IAR) | www.LPCware.com&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;Hope it helps.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&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, 14 Dec 2016 04:04:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-DMA-with-timer-capture-input-with-LPC1830/m-p/643393#M25420</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-12-14T04:04:37Z</dc:date>
    </item>
  </channel>
</rss>

