<?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: Display flicker while displaying the image in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Display-flicker-while-displaying-the-image/m-p/577307#M19585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would say that the solution is to implement it in such a way that it does not flicker. Sounds ironic, but it isn't :smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to check the boundary condition of your hardware and software setup.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Flickering means that the display is refreshed at a rate where the human eye can notice it. For a BMP with 640 x 480 pixels and 16 bit colors you need to transmit 614.400 bytes of data per frame from the SDRAM buffer into the display. This is performed by the dedicated LCD interface DMA. So this interface needs to perform on a let's say 30fps rate to avoid flickering.&lt;/LI&gt;&lt;LI&gt;If you implemented double buffering, the switching between the BMP buffers should be just a matter of switching the base pointer to the buffer to be used. The BMP source is either in SPIFI or in the NOR flash, so if you put both BMPs into SDRAM before enabling the display then you should not experience any problem. Except if your SDRAMperformance is too low because of wrong settings.&lt;/LI&gt;&lt;LI&gt;If you try to get things from the SPIFI or NOR flash into the SDRAM and at the same time you write the content from the SDRAM buffer to the display, then you simply will see that the performance on the bus is lower because of bus sharing. It takes some time to shuffle the data from the nonvolatile flash to the SDRAM, inbetween these memory transfer operations the LCD DMA will shuffle data from the SDRAM to the LCD port and this will slow down the whole execution on the bus system.&lt;/LI&gt;&lt;LI&gt;emWin is maybe not set up correctly to do this job in the right manner, so maybe check existing examples for the right strategy.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;NXP Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jun 2016 13:37:29 GMT</pubDate>
    <dc:creator>bernhardfink</dc:creator>
    <dc:date>2016-06-27T13:37:29Z</dc:date>
    <item>
      <title>Display flicker while displaying the image</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Display-flicker-while-displaying-the-image/m-p/577306#M19584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are working on new design about CPU card which include core cortex M3 LPC1850FET180. &lt;/P&gt;&lt;P&gt;We meet a problem.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Description of ours system&lt;/P&gt;&lt;P&gt;THE CPU is&amp;nbsp; composed of :&lt;/P&gt;&lt;P&gt;1 Microcontrôler : LPC1850FET180&lt;/P&gt;&lt;P&gt;1 Spifi flash : S25FL032P (4 M) (code)&lt;/P&gt;&lt;P&gt;1 SDRAM : MT48LC4M16A2P_6A (8 M)&lt;/P&gt;&lt;P&gt;1 Flash parallel 32Mb: SST39VF3201B-70&lt;/P&gt;&lt;P&gt;Driving of display LCD TFT 5,7” (640 X 480)&lt;/P&gt;&lt;P&gt;Display memory LCD 0x28000000-0x28258000 (SDRAM)&lt;/P&gt;&lt;P&gt;Graphics library emWin SEGGER V.530 for NXP&lt;/P&gt;&lt;P&gt;We use double buffer to avoid Flickering effects.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #606060;"&gt;&lt;STRONG&gt;But display flicker while displaying the image(GUI_DrawBitmap(&amp;amp;bmCB01, 0, 0)) ?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code:&lt;/P&gt;&lt;P&gt;GUI_Init();&lt;/P&gt;&lt;P&gt;WM_MULTIBUF_Enable(1);&lt;/P&gt;&lt;P&gt;while(1){&lt;/P&gt;&lt;P&gt;GUI_MULTIBUF_Begin();&lt;/P&gt;&lt;P&gt;GUI_DrawBitmap(&amp;amp;bmCB01, 0, 0);// LCD flicker !&lt;/P&gt;&lt;P&gt;GUI_MULTIBUF_End();&lt;/P&gt;&lt;P&gt;GUI_Delay(2000);// LCD ok&lt;/P&gt;&lt;P&gt;GUI_MULTIBUF_Begin();&lt;/P&gt;&lt;P&gt;GUI_DrawBitmap(&amp;amp;bmCB02, 0, 0);//LCD flicker&lt;/P&gt;&lt;P&gt;GUI_MULTIBUF_End();&lt;/P&gt;&lt;P&gt;GUI_Delay(2000);//LCD ok&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly give any suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 07:30:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Display-flicker-while-displaying-the-image/m-p/577306#M19584</guid>
      <dc:creator>weizhongyang</dc:creator>
      <dc:date>2016-06-27T07:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Display flicker while displaying the image</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Display-flicker-while-displaying-the-image/m-p/577307#M19585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would say that the solution is to implement it in such a way that it does not flicker. Sounds ironic, but it isn't :smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to check the boundary condition of your hardware and software setup.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Flickering means that the display is refreshed at a rate where the human eye can notice it. For a BMP with 640 x 480 pixels and 16 bit colors you need to transmit 614.400 bytes of data per frame from the SDRAM buffer into the display. This is performed by the dedicated LCD interface DMA. So this interface needs to perform on a let's say 30fps rate to avoid flickering.&lt;/LI&gt;&lt;LI&gt;If you implemented double buffering, the switching between the BMP buffers should be just a matter of switching the base pointer to the buffer to be used. The BMP source is either in SPIFI or in the NOR flash, so if you put both BMPs into SDRAM before enabling the display then you should not experience any problem. Except if your SDRAMperformance is too low because of wrong settings.&lt;/LI&gt;&lt;LI&gt;If you try to get things from the SPIFI or NOR flash into the SDRAM and at the same time you write the content from the SDRAM buffer to the display, then you simply will see that the performance on the bus is lower because of bus sharing. It takes some time to shuffle the data from the nonvolatile flash to the SDRAM, inbetween these memory transfer operations the LCD DMA will shuffle data from the SDRAM to the LCD port and this will slow down the whole execution on the bus system.&lt;/LI&gt;&lt;LI&gt;emWin is maybe not set up correctly to do this job in the right manner, so maybe check existing examples for the right strategy.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;NXP Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 13:37:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Display-flicker-while-displaying-the-image/m-p/577307#M19585</guid>
      <dc:creator>bernhardfink</dc:creator>
      <dc:date>2016-06-27T13:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Display flicker while displaying the image</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Display-flicker-while-displaying-the-image/m-p/577308#M19586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Bernhard Fink,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in fact we use 24-bit color(1228800 bytes of data per frame from the SDRAM buffer into the display), &lt;/P&gt;&lt;P&gt;that slow down the whole execution on the bus system.&lt;/P&gt;&lt;P&gt;with 16-bit color all works well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 07:26:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Display-flicker-while-displaying-the-image/m-p/577308#M19586</guid>
      <dc:creator>weizhongyang</dc:creator>
      <dc:date>2016-06-30T07:26:15Z</dc:date>
    </item>
  </channel>
</rss>

