<?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 SPI interface with TFT LCD (LPC1114) in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-interface-with-TFT-LCD-LPC1114/m-p/528625#M9650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by EI24 on Sun Jul 12 06:39:43 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, i am trying to interface with 1.8 TFT LCD with SPI, using a LPC1114 based board. I have interfaced with the display using a AVR MCU before, so the display setup should not be the issue. I have corrected numerous errors, but don't find any more. The PIO2_1 pin(pin 13 on the board) is selected as SSP1 SCK, and goes to the SPI clock input on the display module. The PIO2_3 pin(pin 38 on the board) goes to the MOSI input. And the PIO2_4 pin(pin 19 on the board) goes to the Data/Command input. TFT_CS input on the display module is connected to ground, it isn't needed to stop the interface sense a 0x00 sends a no operation command.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using a JLink debug probe and assemble the program with GCC ARM embedded toolchain, which works. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgist.github.com%2Fanonymous%2F6b2de716c90ea956f680" rel="nofollow" target="_blank"&gt;https://gist.github.com/anonymous/6b2de716c90ea956f680&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;MCU board: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.olimex.com%2FProducts%2FARM%2FNXP%2FLPC-H1114%2Fresources%2FLPC-H1114_rev_B.pdf" rel="nofollow" target="_blank"&gt;https://www.olimex.com/Products/ARM/NXP/LPC-H1114/resources/LPC-H1114_rev_B.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Display driver: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.adafruit.com%2Fdatasheets%2FST7735R_V0.2.pdf" rel="nofollow" target="_blank"&gt;http://www.adafruit.com/datasheets/ST7735R_V0.2.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any feedback!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:27:29 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:27:29Z</dc:date>
    <item>
      <title>SPI interface with TFT LCD (LPC1114)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-interface-with-TFT-LCD-LPC1114/m-p/528625#M9650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by EI24 on Sun Jul 12 06:39:43 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, i am trying to interface with 1.8 TFT LCD with SPI, using a LPC1114 based board. I have interfaced with the display using a AVR MCU before, so the display setup should not be the issue. I have corrected numerous errors, but don't find any more. The PIO2_1 pin(pin 13 on the board) is selected as SSP1 SCK, and goes to the SPI clock input on the display module. The PIO2_3 pin(pin 38 on the board) goes to the MOSI input. And the PIO2_4 pin(pin 19 on the board) goes to the Data/Command input. TFT_CS input on the display module is connected to ground, it isn't needed to stop the interface sense a 0x00 sends a no operation command.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using a JLink debug probe and assemble the program with GCC ARM embedded toolchain, which works. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgist.github.com%2Fanonymous%2F6b2de716c90ea956f680" rel="nofollow" target="_blank"&gt;https://gist.github.com/anonymous/6b2de716c90ea956f680&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;MCU board: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.olimex.com%2FProducts%2FARM%2FNXP%2FLPC-H1114%2Fresources%2FLPC-H1114_rev_B.pdf" rel="nofollow" target="_blank"&gt;https://www.olimex.com/Products/ARM/NXP/LPC-H1114/resources/LPC-H1114_rev_B.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Display driver: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.adafruit.com%2Fdatasheets%2FST7735R_V0.2.pdf" rel="nofollow" target="_blank"&gt;http://www.adafruit.com/datasheets/ST7735R_V0.2.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any feedback!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:27:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-interface-with-TFT-LCD-LPC1114/m-p/528625#M9650</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: SPI interface with TFT LCD (LPC1114)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-interface-with-TFT-LCD-LPC1114/m-p/528626#M9651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by EI24 on Sun Jul 19 07:09:28 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I've found two errors. It seems you need to enable the AHB clock to the IOCONFIG block, before you can set the pin functions. I thought that was that was activated by default. You also need to set the SSP1CPSR register to 2, so that the SPI1 clock i prescaled for the SPI to work properly. Also i changed the frame size to 8-bit instead of 16-bit to make the program more simple. Though it still does not work. I have also checked the definition multiple times and they are correct. I think the problem may lay in the functions, or something more with the SPI setup.&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:27:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-interface-with-TFT-LCD-LPC1114/m-p/528626#M9651</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:27:29Z</dc:date>
    </item>
  </channel>
</rss>

