<?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: LPC4357 CLKOUT  in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-CLKOUT/m-p/634110#M24991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="284723" data-username="skysky" href="https://community.nxp.com/people/skysky"&gt;sky&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;I'd highly recommend you to crate a new thread for the another question, and sharing the link of the thread.&lt;/P&gt;&lt;P&gt;Thanks for your understanding and cooperation.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Mar 2017 06:57:10 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2017-03-09T06:57:10Z</dc:date>
    <item>
      <title>LPC4357 CLKOUT</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-CLKOUT/m-p/634107#M24988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LPC4357 clock out pin(CLKOUT) is unable to output the CLK.(i can not check a wave on pin P1_19)&lt;/P&gt;&lt;P&gt;i configure such as follow:&lt;/P&gt;&lt;P&gt;LPC_SCU-&amp;gt;SFSP1_19 = (1 &amp;lt;&amp;lt; 5) | 4;&lt;BR /&gt; LPC_CGU-&amp;gt;BASE_OUT_CLK = (1 &amp;lt;&amp;lt; 11) | (0 &amp;lt;&amp;lt; 24);&lt;/P&gt;&lt;P&gt;So，Is there a lack of configuration?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 10:01:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-CLKOUT/m-p/634107#M24988</guid>
      <dc:creator>skysky</dc:creator>
      <dc:date>2017-03-08T10:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4357 CLKOUT</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-CLKOUT/m-p/634108#M24989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sky,&lt;/P&gt;&lt;P&gt;In the LPCOpen library demo, you can use the following code to set up the clock via the CLK0 pin.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;Chip_SCU_ClockPinMuxSet&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SCU_MODE_FUNC1&lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt;SCU_MODE_INACT&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;/* Setup base clock for CLKOUT */&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;Chip_Clock_SetBaseClock&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;CLK_BASE_OUT&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; CLKIN_CRYSTAL&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; false&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; false&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;LPCOpen library:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/lpc-mcus/lpc4300-cortex-m4-m0/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX" rel="nofollow noopener noreferrer" title="http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/lpc-mcus/lpc4300-cortex-m4-m0/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX" target="_blank"&gt;LPCOpen Software for LPC43XX|NXP&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 02:02:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-CLKOUT/m-p/634108#M24989</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-03-09T02:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4357 CLKOUT</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-CLKOUT/m-p/634109#M24990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi jeremyzhou:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i have another problem about extern singal frequence measure.&lt;/P&gt;&lt;P&gt;Because the singal(Sin Wave/Pwm) frequence is too big(about 70+MHz),i think about using&lt;/P&gt;&lt;P&gt;the timer in MOTORCONPWM peripheral。&lt;/P&gt;&lt;P&gt;and i use the way of&amp;nbsp;External event counting (Counter mode),the pin&amp;nbsp;MCI0 is used to input the&amp;nbsp;Signal to be measured。&lt;/P&gt;&lt;P&gt;then set a match value in counter mode,then play the role of frequency&amp;nbsp;division,(100 prescaler-Check the MOTORCONPWM's output pin MCOA0)。&lt;/P&gt;&lt;P&gt;In order to test whether this method is effective，i use CLK0(IDVE clock)clock connect to MCI0。&lt;/P&gt;&lt;P&gt;So,i find a error:&lt;/P&gt;&lt;P&gt;1.CLK0 be set to 2MHZ,the MIC counter is correct,the MCOA0 output 20KHZ&lt;/P&gt;&lt;P&gt;2.CLK0 be set to 4MHZ,the MIC counter is corrent,the MCOA0 output 40KHZ&lt;/P&gt;&lt;P&gt;3.CLK0 be set to 8MHZ,the MIC counter is error,the MCOA0 output also about 40KHZ&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So ,my question is the counter frequence of MCPWM's counter mode is 8MHZ?&lt;/P&gt;&lt;P&gt;refer to the other &lt;SPAN&gt;peripheral ie.TIMER capture mode,check a external singal's rising edge need 2 PCLK,the max frequence is bigger than 8MHZ.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;my code such follow:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LPC_CCU1-&amp;gt;CLK_APB1_MOTOCONPWM_CFG = 0x7;&lt;BR /&gt; &lt;BR /&gt; LPC_RGU-&amp;gt;RESET_CTRL1 = 1 &amp;lt;&amp;lt; 6; //MOTOCONPWM_RST&lt;BR /&gt; while(!(LPC_RGU-&amp;gt;RESET_ACTIVE_STATUS1 &amp;amp; (1 &amp;lt;&amp;lt; 6)));&lt;BR /&gt; &lt;BR /&gt; LPC_SCU-&amp;gt;SFSP8_2 = ((1 &amp;lt;&amp;lt; 4) | (1&amp;lt;&amp;lt;6) | (1&amp;lt;&amp;lt;7) | 3);//&amp;nbsp;&amp;nbsp;&amp;nbsp;MIC0&lt;BR /&gt; LPC_SCU-&amp;gt;SFSP9_3 = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//MCOA0&lt;BR /&gt; LPC_SCU-&amp;gt;SFSP9_4 = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;//MCOB0&lt;BR /&gt; &lt;BR /&gt; LPC_MCPWM-&amp;gt;CON_CLR = 0xffffffff;&lt;BR /&gt; LPC_MCPWM-&amp;gt;CNTCON_SET = (1 &amp;lt;&amp;lt; 29) | 1; //channel0 counter / rising&lt;BR /&gt; &lt;BR /&gt; LPC_MCPWM-&amp;gt;LIM0 = 100;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//100 prescaler&lt;BR /&gt; LPC_MCPWM-&amp;gt;MAT0 = 50;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you very much&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 03:22:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-CLKOUT/m-p/634109#M24990</guid>
      <dc:creator>skysky</dc:creator>
      <dc:date>2017-03-09T03:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4357 CLKOUT</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-CLKOUT/m-p/634110#M24991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="284723" data-username="skysky" href="https://community.nxp.com/people/skysky"&gt;sky&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;I'd highly recommend you to crate a new thread for the another question, and sharing the link of the thread.&lt;/P&gt;&lt;P&gt;Thanks for your understanding and cooperation.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 06:57:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-CLKOUT/m-p/634110#M24991</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-03-09T06:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4357 CLKOUT</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-CLKOUT/m-p/634111#M24992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you your advise&lt;/P&gt;&lt;P&gt;i am sorry to trouble you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 09:57:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-CLKOUT/m-p/634111#M24992</guid>
      <dc:creator>skysky</dc:creator>
      <dc:date>2017-03-10T09:57:18Z</dc:date>
    </item>
  </channel>
</rss>

