<?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 LPC1347 GPIO - Pin Write for LCD in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1347-GPIO-Pin-Write-for-LCD/m-p/548161#M10410</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by PsychedelicBreakfast on Sat Oct 27 06:08:10 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am migrating a design from a LPC1343 which drives a 800x480 RGB display. When I initially started programming the LPC1343 I noticed that writing to the display was rather slow. After some digging, I realised that enabling compiler optimisation and using pointers to access the MASKED DATA register is way faster than using GPIOSetValue declared in gpio.c. I was able to achieve speeds of upto 18 MHz in a simple loop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With the above changes, I was able to write to the display very very quickly - I couldn't notice the screen filling with colour. It was fast enough that it seemed that the entire display changed colour at the same time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I now have to move up to the LPC1347. As I understand, the 1347 has a significantly improved the GPIO block. From the UM, it seems that by using the byte PIN registers I can change individual pins without changing anything else. My concern is, how fast are these? Can I simply do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
while(1)
{
LPC_GPIO-&amp;gt;B0[0] = 0xFF
LOC_GOIO-&amp;gt;B0[0] = 0x00
}&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and achieve fast write speeds?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:23:42 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:23:42Z</dc:date>
    <item>
      <title>LPC1347 GPIO - Pin Write for LCD</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1347-GPIO-Pin-Write-for-LCD/m-p/548161#M10410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by PsychedelicBreakfast on Sat Oct 27 06:08:10 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am migrating a design from a LPC1343 which drives a 800x480 RGB display. When I initially started programming the LPC1343 I noticed that writing to the display was rather slow. After some digging, I realised that enabling compiler optimisation and using pointers to access the MASKED DATA register is way faster than using GPIOSetValue declared in gpio.c. I was able to achieve speeds of upto 18 MHz in a simple loop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With the above changes, I was able to write to the display very very quickly - I couldn't notice the screen filling with colour. It was fast enough that it seemed that the entire display changed colour at the same time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I now have to move up to the LPC1347. As I understand, the 1347 has a significantly improved the GPIO block. From the UM, it seems that by using the byte PIN registers I can change individual pins without changing anything else. My concern is, how fast are these? Can I simply do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
while(1)
{
LPC_GPIO-&amp;gt;B0[0] = 0xFF
LOC_GOIO-&amp;gt;B0[0] = 0x00
}&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and achieve fast write speeds?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:23:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1347-GPIO-Pin-Write-for-LCD/m-p/548161#M10410</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:23:42Z</dc:date>
    </item>
  </channel>
</rss>

