<?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: Advice Needed Regarding K60, LCD and DMA Transfer. in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Advice-Needed-Regarding-K60-LCD-and-DMA-Transfer/m-p/284261#M10799</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;After Flexbus module initialization and DMA configuratio correctly, DMA can start transfer data from memory to LCD controller without core intervene. That will enhance the MCU performance.&lt;/P&gt;&lt;P&gt;About how to use eDMA module, Please refer attached example code.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Apr 2013 02:55:59 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2013-04-27T02:55:59Z</dc:date>
    <item>
      <title>Advice Needed Regarding K60, LCD and DMA Transfer.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Advice-Needed-Regarding-K60-LCD-and-DMA-Transfer/m-p/284260#M10798</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 hoping for some advice and a general point in the right direction.&lt;/P&gt;&lt;P&gt;I have a 3.5" TFT display driven in 8080 mode (16-bit parallel bus) which at present works well although the display flickers somewhat when performing large updates to the screen. &lt;/P&gt;&lt;P&gt;I've been reading that using DMA would speed things up however I've never used DMA before and I'd appreciate some advice on how this would benefit me and also how I would go about implementing this for my 16-bit parallel bus.&lt;/P&gt;&lt;P&gt;Any information would be greatly received.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 17:56:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Advice-Needed-Regarding-K60-LCD-and-DMA-Transfer/m-p/284260#M10798</guid>
      <dc:creator>weblar</dc:creator>
      <dc:date>2013-04-24T17:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Advice Needed Regarding K60, LCD and DMA Transfer.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Advice-Needed-Regarding-K60-LCD-and-DMA-Transfer/m-p/284261#M10799</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;After Flexbus module initialization and DMA configuratio correctly, DMA can start transfer data from memory to LCD controller without core intervene. That will enhance the MCU performance.&lt;/P&gt;&lt;P&gt;About how to use eDMA module, Please refer attached example code.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Apr 2013 02:55:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Advice-Needed-Regarding-K60-LCD-and-DMA-Transfer/m-p/284261#M10799</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2013-04-27T02:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Advice Needed Regarding K60, LCD and DMA Transfer.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Advice-Needed-Regarding-K60-LCD-and-DMA-Transfer/m-p/284262#M10800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that the DMA engine is NOT inherently 'faster' than the MCU core.&amp;nbsp; That is, the microcode that runs the control and pointer operations for DMA don't really run any faster than the same kinds of instructions in an optimized MCU loop.&amp;nbsp; The particular advantage of DMA is if the CPU can get 'other work' done during the transfer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 22:05:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Advice-Needed-Regarding-K60-LCD-and-DMA-Transfer/m-p/284262#M10800</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2013-04-30T22:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Advice Needed Regarding K60, LCD and DMA Transfer.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Advice-Needed-Regarding-K60-LCD-and-DMA-Transfer/m-p/284263#M10801</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;I have used the example code you supplied and it works fine. Then I have tried to adapt it to send more data but it does not behave as expected. I have allocated to arrays:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;char source[128];&lt;/P&gt;&lt;P&gt;char destination[128];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I set the source destination registers like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DMA_TCD0_SADDR = (uint_32)source;&lt;/P&gt;&lt;P&gt;DMA_TCD0_DADDR = (uint_32)destination;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to copy the data, more data is copied than what I want. For instance, if I set registers like this:&lt;/P&gt;&lt;P&gt;DMA_TCD0_SOFF = 0x04;&lt;/P&gt;&lt;P&gt;DMA_TCD0_ATTR = DMA_ATTR_SSIZE(2) | DMA_ATTR_DSIZE(2);&lt;/P&gt;&lt;P&gt;DMA_TCD0_NBYTES_MLNO = 0x04;&lt;/P&gt;&lt;P&gt;DMA_TCD0_DOFF = 0x04;&lt;/P&gt;&lt;P&gt;DMA_TCD0_CITER_ELINKNO = DMA_CITER_ELINKNO_CITER(1);&lt;/P&gt;&lt;P&gt;DMA_TCD0_BITER_ELINKNO = DMA_BITER_ELINKNO_BITER(1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would expect that 4 bytes would be copied, but instead 20 bytes are copied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I then change the minor byte count register like this:&lt;/P&gt;&lt;P&gt;DMA_TCD0_NBYTES_MLNO = 0x08;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would expect that 8 bytes would be copied, not 64 bytes, that actually is copied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must have misunderstod something, can someone explain the behaviour I see?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 08:29:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Advice-Needed-Regarding-K60-LCD-and-DMA-Transfer/m-p/284263#M10801</guid>
      <dc:creator>sholmgren</dc:creator>
      <dc:date>2013-05-17T08:29:49Z</dc:date>
    </item>
  </channel>
</rss>

