<?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のトピックDriving TFT Diplay at higher color and or resolution without external RAM and just using 12,800 bytes of internal RAM</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Driving-TFT-Diplay-at-higher-color-and-or-resolution-without/m-p/519992#M3442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by emulund on Tue Jan 07 00:27:33 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use LPC1788 with 320x240 colot TFT at 16 bit color depth&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;First method,&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to use 320x240 by 16 bit color TFT LCD display with the LPC1788 but without using external RAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which should need a RAM of 320x240 x 2bytes(16 bit color depth = 2 bytes) = 153600 bytes but we do not have that much internal RAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I will use a small amount of internal RAM to update the whole LCD frame in turns of 12 refreshes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which means i will have to buffer only 240 / 12 = 20 lines only.That is i will need 320x20 by 2 bytes = 12800 Bytes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My idea is &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to use the internal RAM as a buffer for the TFT LCD avoiding external RAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I will initialize the LCD controller for 320 pixels by 20 lines(NOT 240 lines) so it will take 12 refreshes(12 VSyncs) to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make a complete frame.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I will not connect the VSync to the LCD but after 12 refreshes have been completed or i will make the VSync manually.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On vertical compare interrupt i will,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.update my small RAM buffer with the real image's next 20 lines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.Count if all 12 interrupts have been completed if so then make or allow VSynch to LCD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But so far i have not been able to get the complete image on the LCD.But it is stable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I always get a black horizontal band which is the result of VSync.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried keeping the VSync pulse width and Vertical back &amp;amp; fron porches to be small but the black band's&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;height decreases but does not go away.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried not using data enable of the LCD.But no success.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Second Method,&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so i tried to avoid the LCD controller and drive the LCD directly using GPIOs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I got the full Image on the LCD but all ODD Lines are black.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have maintained all the timings as per datasheet of the LCD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not know how to get the ODD lines to display.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to know why the ODD lines should disappear?.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to make it work with either of the above method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:40:50 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:40:50Z</dc:date>
    <item>
      <title>Driving TFT Diplay at higher color and or resolution without external RAM and just using 12,800 bytes of internal RAM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Driving-TFT-Diplay-at-higher-color-and-or-resolution-without/m-p/519992#M3442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by emulund on Tue Jan 07 00:27:33 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use LPC1788 with 320x240 colot TFT at 16 bit color depth&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;First method,&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to use 320x240 by 16 bit color TFT LCD display with the LPC1788 but without using external RAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which should need a RAM of 320x240 x 2bytes(16 bit color depth = 2 bytes) = 153600 bytes but we do not have that much internal RAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I will use a small amount of internal RAM to update the whole LCD frame in turns of 12 refreshes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which means i will have to buffer only 240 / 12 = 20 lines only.That is i will need 320x20 by 2 bytes = 12800 Bytes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My idea is &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to use the internal RAM as a buffer for the TFT LCD avoiding external RAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I will initialize the LCD controller for 320 pixels by 20 lines(NOT 240 lines) so it will take 12 refreshes(12 VSyncs) to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make a complete frame.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I will not connect the VSync to the LCD but after 12 refreshes have been completed or i will make the VSync manually.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On vertical compare interrupt i will,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.update my small RAM buffer with the real image's next 20 lines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.Count if all 12 interrupts have been completed if so then make or allow VSynch to LCD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But so far i have not been able to get the complete image on the LCD.But it is stable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I always get a black horizontal band which is the result of VSync.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried keeping the VSync pulse width and Vertical back &amp;amp; fron porches to be small but the black band's&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;height decreases but does not go away.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried not using data enable of the LCD.But no success.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Second Method,&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so i tried to avoid the LCD controller and drive the LCD directly using GPIOs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I got the full Image on the LCD but all ODD Lines are black.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have maintained all the timings as per datasheet of the LCD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not know how to get the ODD lines to display.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to know why the ODD lines should disappear?.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to make it work with either of the above method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:40:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Driving-TFT-Diplay-at-higher-color-and-or-resolution-without/m-p/519992#M3442</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:40:50Z</dc:date>
    </item>
  </channel>
</rss>

