<?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: Using CLKOUT for Diagnostic Purposes in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-CLKOUT-for-Diagnostic-Purposes/m-p/589878#M22002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larsjep on Wed Nov 14 02:02:40 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Greg,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't have any solution for you, but I have also noticed the problem with SDRAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The SDRAM only works if all clock outputs are configured to EMC_CLK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It could be related to an other issuse that I have reported.&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=http%3A%2F%2Flpcware.com%2Fcontent%2Fforum%2Fproblem-executing-sdram-when-running-204mhz-hitex-eval-board" rel="nofollow" target="_blank"&gt;http://lpcware.com/content/forum/problem-executing-sdram-when-running-204mhz-hitex-eval-board&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I'm stilll waiting for an answer on this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Lars&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:14:01 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:14:01Z</dc:date>
    <item>
      <title>Using CLKOUT for Diagnostic Purposes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-CLKOUT-for-Diagnostic-Purposes/m-p/589877#M22001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gregd on Tue Nov 13 11:02:16 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The manual recommends using the CLKOUT signal to calibrate the RTC.&amp;nbsp; It is also useful for checking the frequency of all the clock outputs.&amp;nbsp; I am using 32-bit SDRAM in my design and it seems like you have to configure CLK0..CLK3 all four for EMC_CLKx in order for the SDRAM to function properly.&amp;nbsp; The only other spot that CLKOUT is brought out to is the M11 pin (LBGA256) which is used for ENET_TX_CLK on my board.&amp;nbsp; Is there any other way that you can get to the CLKOUT signal for use in RTC calibration and other diagnostics?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Greg Dunn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:14:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-CLKOUT-for-Diagnostic-Purposes/m-p/589877#M22001</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using CLKOUT for Diagnostic Purposes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-CLKOUT-for-Diagnostic-Purposes/m-p/589878#M22002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larsjep on Wed Nov 14 02:02:40 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Greg,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't have any solution for you, but I have also noticed the problem with SDRAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The SDRAM only works if all clock outputs are configured to EMC_CLK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It could be related to an other issuse that I have reported.&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=http%3A%2F%2Flpcware.com%2Fcontent%2Fforum%2Fproblem-executing-sdram-when-running-204mhz-hitex-eval-board" rel="nofollow" target="_blank"&gt;http://lpcware.com/content/forum/problem-executing-sdram-when-running-204mhz-hitex-eval-board&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I'm stilll waiting for an answer on this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Lars&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:14:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-CLKOUT-for-Diagnostic-Purposes/m-p/589878#M22002</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using CLKOUT for Diagnostic Purposes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-CLKOUT-for-Diagnostic-Purposes/m-p/589879#M22003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gregd on Wed Nov 14 06:20:07 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I finally figured out that I could just use one of the spare clock outputs (CGU_CLK0) to output the 32KHz signal to calibrate the RTC.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also determine during my investigation that the RTC_Init function in lpc43xx_rtc.c causes problems with you are running from 32 bit SDRAM.&amp;nbsp; As you mentioned, you have to configure all four clock outputs (CLK0..CLK3) for EMC_CLK in order for the SDRAM to work.&amp;nbsp; The RTC_Init function changes CLK0 to CLKOUT instead of EMC_CLK0.&amp;nbsp; This causes the SDRAM to quit working.&amp;nbsp; This bug can be fixed by simply removing the two following lines in lpc43xx_rtc.c:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCU-&amp;gt;SFSCLK_0 = 1 | (0x3&amp;lt;&amp;lt;2); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_CGU-&amp;gt;BASE_OUT_CLK = (CGU_CLKSRC_32KHZ_OSC&amp;lt;&amp;lt;24) |(1&amp;lt;&amp;lt;11);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Greg Dunn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:14:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-CLKOUT-for-Diagnostic-Purposes/m-p/589879#M22003</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using CLKOUT for Diagnostic Purposes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-CLKOUT-for-Diagnostic-Purposes/m-p/589880#M22004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DF9DQ on Wed Nov 14 06:42:54 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Greg,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you could give this one a try:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of selecting EMC_CLK0 for CLK0 pin, ..., EMC_CLK3 for CLK3 pin, use CLK0=EMC_CLK01 and CLK2=EMC_CLK23.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will free up CLK1 and CLK3 for other functions like the CLKOUT signal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully your hardware only uses CLK0 and/or CLK2...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rolf&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:14:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-CLKOUT-for-Diagnostic-Purposes/m-p/589880#M22004</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using CLKOUT for Diagnostic Purposes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-CLKOUT-for-Diagnostic-Purposes/m-p/589881#M22005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jgorsk on Mon Jan 19 07:12:39 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you able to get stable 32kHz signal on the CLKn pins (CLKOUT function) when the CPU is running? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can only get a stable signal when the CPU is stopped. When the CPU is running (not accessing RTC or clock generator registers) the signal at CLKn pins&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;has variable frequency and duty cycle. The frequency is 30.8 kHz +/- 100Hz. When the CPU is stopped in debug mode CLKOUT signal becomes stable and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the frequency is 32.768kHz. I tried all available CLK pins, they all worked the same way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If any other than 32kHz clock is assigned to CLKOUT, the signal at CLKn pins is stable, regardless of the CPU operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the LPC4337 in 144 pin package&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:14:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-CLKOUT-for-Diagnostic-Purposes/m-p/589881#M22005</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:14:03Z</dc:date>
    </item>
  </channel>
</rss>

