<?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: LCD Bandwidth Questions and Explanation of the Calculator in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCD-Bandwidth-Questions-and-Explanation-of-the-Calculator/m-p/561273#M16255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Thu Oct 17 03:14:19 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the access times on an SDRAM are quite complicated when it comes to burst accesses. That's why there are components in the formula with a fixed time and a variable part depending on the data bus width.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the LCD interface we need to know that there is big difference between 16-bit and 24 bit colors. For 16-bit colors you need to obviously 16 bits per pixel. Already for 18-bit colors you need catch 32 bits for each pixel, only 18 bits are used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So the difference between 16-bit and 18-bit colors in terms of required bandwidth on the interface is factor 2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then it also depends on the bus width of the SDRAM device. The memory controller (see &lt;/SPAN&gt;&lt;A href="http://http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0236h/I1012492.html"&gt;http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0236h/I1012492.html&lt;/A&gt;&lt;SPAN&gt;) makes always bursts of 16 bytes, so either 4 x 32 bits, 8 x 16 bits or 16 x 8 bits. The fastets way to get 16 bytes is of course with a 32-bit SDRAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fixed number of cycles (7 and -2) belong to the specification of the SSDRAM controller, maybe you find some hints here:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0236h/I1012492.html"&gt;http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0236h/I1012492.html&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally the load on the bus is determined by the number of cycles you need for a given LCD + memory setup. And how many of these cycles fit into 1s depends on the EMC bus frequency.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And you're right. The spreadsheet only calculates the load for a transfer from SDRAM to the LCD. If you need/want to update the data in the display buffer, then this is an additional load.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Support&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:47:00 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:47:00Z</dc:date>
    <item>
      <title>LCD Bandwidth Questions and Explanation of the Calculator</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCD-Bandwidth-Questions-and-Explanation-of-the-Calculator/m-p/561272#M16254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Martin84 on Mon Oct 07 10:46:27 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm now trying to understand the LCD Bandwidth Calculator for the 18xx/43xx and the theory of the AHB-Bus. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The calculation for the framebuffer size is easy, it is the product of the resolution times the color depth in bytes. To determine the LCD Data Rate I take the Pixels for one frame and multiply this value with the refresh rate. So I get e.g. 640x480x60Hz = 18432000 Pixels/s = 18,432MPixel/s. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get the Mbit/s value, we multiply the MPixel/s with the size of one Pixel. So 18,432 MPixel/s x 16 Bit/Pixel = 294,912 Mbit/s.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To get the MWords/s, we have to know that 1 Word = 32 bit. -&amp;gt; 294,912Mbit/s / 32bit = 9,216 MWords/s.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With the Note in the calculator sheet, we know that 1 Burst = 4 words. So we get 9,216 MWords/s / 4 Words = 2,304MBursts/s. Here I got the first question, but I could answer this question with the help of the LPC4357-User Manual and the EMC-Section. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A: For a 32-bit external memory bus the burst size is 4 words.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now the next thing in the calculator sheet is to determine the duration of one burst in clock cycles. So the formula in the sheet is &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duration[clocks] = 7 + trp + RAS_Latency + CAS_Latency - 2 + 4 * 32bit/32bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do the given values (7 and - 2) mean? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4*32bit means the length of 1 Burst and the other 32 bit are the EMC Bandwith, or am I wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So: Duration[clocks] = 7 + trp + RAS_Latency + CAS_Latency - 2 + 1Burst / EMC_Width?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Busload is determined with (MBursts/s * Duration[clocks]) / EMC_frequency[MHz]. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the busload can be determined with the 'duration of all Burst per seconds' referred to 'EMC_frequency'?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The calculated busload is only the portion of the AHB Bus which is needed by LCD Controller reading from SDRAM. Additional to that there will be a portion used for writing pixel data from EMC-Controller to SDRAM and for reading image data from SD-Card? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:46:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCD-Bandwidth-Questions-and-Explanation-of-the-Calculator/m-p/561272#M16254</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: LCD Bandwidth Questions and Explanation of the Calculator</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCD-Bandwidth-Questions-and-Explanation-of-the-Calculator/m-p/561273#M16255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Thu Oct 17 03:14:19 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the access times on an SDRAM are quite complicated when it comes to burst accesses. That's why there are components in the formula with a fixed time and a variable part depending on the data bus width.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the LCD interface we need to know that there is big difference between 16-bit and 24 bit colors. For 16-bit colors you need to obviously 16 bits per pixel. Already for 18-bit colors you need catch 32 bits for each pixel, only 18 bits are used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So the difference between 16-bit and 18-bit colors in terms of required bandwidth on the interface is factor 2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then it also depends on the bus width of the SDRAM device. The memory controller (see &lt;/SPAN&gt;&lt;A href="http://http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0236h/I1012492.html"&gt;http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0236h/I1012492.html&lt;/A&gt;&lt;SPAN&gt;) makes always bursts of 16 bytes, so either 4 x 32 bits, 8 x 16 bits or 16 x 8 bits. The fastets way to get 16 bytes is of course with a 32-bit SDRAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fixed number of cycles (7 and -2) belong to the specification of the SSDRAM controller, maybe you find some hints here:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0236h/I1012492.html"&gt;http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0236h/I1012492.html&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally the load on the bus is determined by the number of cycles you need for a given LCD + memory setup. And how many of these cycles fit into 1s depends on the EMC bus frequency.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And you're right. The spreadsheet only calculates the load for a transfer from SDRAM to the LCD. If you need/want to update the data in the display buffer, then this is an additional load.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Support&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:47:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCD-Bandwidth-Questions-and-Explanation-of-the-Calculator/m-p/561273#M16255</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:47:00Z</dc:date>
    </item>
  </channel>
</rss>

