<?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 Driver LPC177x_8x_lcd.c clocking question in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCD-Driver-LPC177x-8x-lcd-c-clocking-question/m-p/523501#M6137</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by EReyes on Wed Feb 08 19:14:39 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You are right. Turns out I wasn't setting bit 26 on LPC_LCD-&amp;gt;POL to bypass the LCD Module's internal clock divider. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:00:36 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:00:36Z</dc:date>
    <item>
      <title>LCD Driver LPC177x_8x_lcd.c clocking question</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCD-Driver-LPC177x-8x-lcd-c-clocking-question/m-p/523499#M6135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by EReyes on Mon Feb 06 21:44:11 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I pulled the latest version on the driver library git repository. When I tried to use the LCD driver I found the clock was not being generated correctly (checked with an oscilloscope).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the relevant code (starts at line 114)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// Set clock &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_LCD-&amp;gt;POL &amp;amp;= ~(0x01 &amp;lt;&amp;lt; 5);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if( pConfig-&amp;gt;panel_clk &amp;gt; 0) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clkdiv = CLKPWR_GetCLK(CLKPWR_CLKTYPE_CPU) / pConfig-&amp;gt;panel_clk - 1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_SC-&amp;gt;LCD_CFG = clkdiv &amp;amp; 0x1F;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shouldn't the fourth line be like this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clkdiv = CLKPWR_GetCLK( &amp;lt;FONT COLOR="Red"&amp;gt;CLKPWR_CLKTYPE_PER&amp;lt;/FONT&amp;gt;) / pConfig-&amp;gt;panel_clk - 1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was under the impression the LCD module is clocked by the peripheral clock and not the core clock.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:00:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCD-Driver-LPC177x-8x-lcd-c-clocking-question/m-p/523499#M6135</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: LCD Driver LPC177x_8x_lcd.c clocking question</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCD-Driver-LPC177x-8x-lcd-c-clocking-question/m-p/523500#M6136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Karl on Tue Feb 07 09:17:13 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The description of the CLKSEL bit in table 226 says &amp;lt;i&amp;gt;...the clock source for the LCD block is &lt;/SPAN&gt;&lt;STRONG&gt;CCLK&lt;/STRONG&gt;&lt;SPAN&gt;&amp;lt;/i&amp;gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:00:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCD-Driver-LPC177x-8x-lcd-c-clocking-question/m-p/523500#M6136</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: LCD Driver LPC177x_8x_lcd.c clocking question</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCD-Driver-LPC177x-8x-lcd-c-clocking-question/m-p/523501#M6137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by EReyes on Wed Feb 08 19:14:39 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You are right. Turns out I wasn't setting bit 26 on LPC_LCD-&amp;gt;POL to bypass the LCD Module's internal clock divider. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:00:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCD-Driver-LPC177x-8x-lcd-c-clocking-question/m-p/523501#M6137</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:00:36Z</dc:date>
    </item>
  </channel>
</rss>

