<?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: LPC18xx LCD Controller SDRAM with DMA in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-LCD-Controller-SDRAM-with-DMA/m-p/528562#M9643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Fri Feb 12 12:51:48 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi MX21,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Large transfer size may be affecting it. Could you please reduce DMA transfer size?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:16:54 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:16:54Z</dc:date>
    <item>
      <title>LPC18xx LCD Controller SDRAM with DMA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-LCD-Controller-SDRAM-with-DMA/m-p/528561#M9642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MX21 on Fri Feb 12 11:03:02 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the LCD Controller in the LPC1857 to run a TFT display.&amp;nbsp; We have an SDRAM connected to the EMC for the display memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm testing DMA to transfer the memory from SRAM to SDRAM.&amp;nbsp; When I do this, the display appears to lose sync during the DMA transfer.&amp;nbsp; As soon as the DMA is complete, the display is good and has the data I transferred.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there some conflict between the LCD Controller and the DMA when accessing SDRAM over EMC?&amp;nbsp; It seems the LCD Controller is not getting it's data properly when DMA is accessing the same memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I just memcpy the data, it all looks clean.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:16:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-LCD-Controller-SDRAM-with-DMA/m-p/528561#M9642</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18xx LCD Controller SDRAM with DMA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-LCD-Controller-SDRAM-with-DMA/m-p/528562#M9643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Fri Feb 12 12:51:48 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi MX21,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Large transfer size may be affecting it. Could you please reduce DMA transfer size?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:16:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-LCD-Controller-SDRAM-with-DMA/m-p/528562#M9643</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18xx LCD Controller SDRAM with DMA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-LCD-Controller-SDRAM-with-DMA/m-p/528563#M9644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MX21 on Fri Feb 12 12:55:24 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm doing small transfers of about 3KB at a time.&amp;nbsp; Is that too large?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:16:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-LCD-Controller-SDRAM-with-DMA/m-p/528563#M9644</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18xx LCD Controller SDRAM with DMA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-LCD-Controller-SDRAM-with-DMA/m-p/528564#M9645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by arw on Mon Feb 15 08:14:06 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello MX21,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is not an immediate answer to say what size of DMA transfer is correct.&amp;nbsp; It depends on your system: display resolution, color depth, frame rate, how often you transfer from SRAM to SDRAM, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is only one port on the internal bus, for the SDRAM controller.&amp;nbsp; If multiple DMAs are active, then they will have to arbitrate which one is able to perform a transfer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason that memcpy works, is because this is operated by the CPU.&amp;nbsp; After the CPU writes one byte/word value from SRAM to SDRAM, the LCD DMA has time to master the bus for larger transfers from SDRAM to the display.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would recommend to start the SRAM to SDRAM transfers as small as possible, say 256 bytes in multiple DMA cycles, and then work up to see the right balance for your system.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-arw&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:16:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-LCD-Controller-SDRAM-with-DMA/m-p/528564#M9645</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18xx LCD Controller SDRAM with DMA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-LCD-Controller-SDRAM-with-DMA/m-p/528565#M9646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MX21 on Mon Feb 22 10:22:39 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, thanks.&amp;nbsp; About 320 bytes did the trick.&amp;nbsp; Anything much beyond that holds off the LCD controller too long.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:16:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-LCD-Controller-SDRAM-with-DMA/m-p/528565#M9646</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:16:56Z</dc:date>
    </item>
  </channel>
</rss>

