<?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: LPC4370 About configure Clock of CLKOUT Port ( P1_19 ) in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-About-configure-Clock-of-CLKOUT-Port-P1-19/m-p/674193#M27000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello LEE Young Jae,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here I will tell you the step to configure the CLKOUT in P1_19.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 1. Select the clock source for CLKOUT in CGU BASE_OUT_CLK, take an example, if you select the crystal oscillator.&lt;/P&gt;&lt;P&gt;Chip_Clock_SetBaseClock(CLK_BASE_OUT, CLKIN_CRYSTAL, true, false);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Configure the P1_19 function as CLKOUT in register SFSP[1][19].&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18235i306952ED56B7CDF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;From the user manual, you can get that the CLKOUT is the FUNC4.&lt;/P&gt;&lt;P&gt;So, you can use this code to configure it:&lt;/P&gt;&lt;P&gt;Chip_SCU_PinMuxSet(0x1, 19, (SCU_PINIO_FAST | SCU_MODE_FUNC4));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. About the 8Mhz, a simple way, you can change your external crystal to 8MHZ, then CLKOUT select the 8Mhz, you can get the 8Mhz in CLKOUT pin(P1_19) directly.&lt;/P&gt;&lt;P&gt;4. About the P1_19 test point position, please refer to this picture:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18285i631A5D8B852430F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. About the code, I modify it in the lpcopen systick&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18353i5BD223E1332651C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the external crystal is 12Mhz, then I can get 12Mhz in the P1_19.&lt;/P&gt;&lt;P&gt;You can test it on your side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Fri, 12 May 2017 07:58:30 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2017-05-12T07:58:30Z</dc:date>
    <item>
      <title>LPC4370 About configure Clock of CLKOUT Port ( P1_19 )</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-About-configure-Clock-of-CLKOUT-Port-P1-19/m-p/674192#M26999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;I am trying to configure 8MHz Clock of CLKOUT ( Port/Pin : P1_19)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;This clock will be used output for external Peri device&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Develop Environment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;- Testing Board : LPC-LINK2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;- MCU : LPC4370&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;- Develop Tools : LPCXpresso (free) and LPCOpen (demo code)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Question&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;1. How can i set up (configure) CLKOUT Clock out of LPC4370 ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;- what is right setup flow ?, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;- where is technical doc or sample code to configure CLKOUT of 8MHz clock?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;If you have any example code to configure External Clock, Please Let me know&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;The following figure is for LPC4370 CGU and You can see CLKOUT in red color&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_9.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/17768i20DF4E1B746C0580/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_9.png" alt="pastedImage_9.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 01:59:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-About-configure-Clock-of-CLKOUT-Port-P1-19/m-p/674192#M26999</guid>
      <dc:creator>leeyoungjae</dc:creator>
      <dc:date>2017-05-10T01:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4370 About configure Clock of CLKOUT Port ( P1_19 )</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-About-configure-Clock-of-CLKOUT-Port-P1-19/m-p/674193#M27000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello LEE Young Jae,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here I will tell you the step to configure the CLKOUT in P1_19.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 1. Select the clock source for CLKOUT in CGU BASE_OUT_CLK, take an example, if you select the crystal oscillator.&lt;/P&gt;&lt;P&gt;Chip_Clock_SetBaseClock(CLK_BASE_OUT, CLKIN_CRYSTAL, true, false);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Configure the P1_19 function as CLKOUT in register SFSP[1][19].&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18235i306952ED56B7CDF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;From the user manual, you can get that the CLKOUT is the FUNC4.&lt;/P&gt;&lt;P&gt;So, you can use this code to configure it:&lt;/P&gt;&lt;P&gt;Chip_SCU_PinMuxSet(0x1, 19, (SCU_PINIO_FAST | SCU_MODE_FUNC4));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. About the 8Mhz, a simple way, you can change your external crystal to 8MHZ, then CLKOUT select the 8Mhz, you can get the 8Mhz in CLKOUT pin(P1_19) directly.&lt;/P&gt;&lt;P&gt;4. About the P1_19 test point position, please refer to this picture:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18285i631A5D8B852430F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. About the code, I modify it in the lpcopen systick&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18353i5BD223E1332651C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the external crystal is 12Mhz, then I can get 12Mhz in the P1_19.&lt;/P&gt;&lt;P&gt;You can test it on your side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Fri, 12 May 2017 07:58:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-About-configure-Clock-of-CLKOUT-Port-P1-19/m-p/674193#M27000</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-05-12T07:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4370 About configure Clock of CLKOUT Port ( P1_19 )</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-About-configure-Clock-of-CLKOUT-Port-P1-19/m-p/674194#M27001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Kerry Zhou,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested to make External Clock by your way.&lt;/P&gt;&lt;P&gt;It is very helpful for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day ^^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 10:03:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-About-configure-Clock-of-CLKOUT-Port-P1-19/m-p/674194#M27001</guid>
      <dc:creator>leeyoungjae</dc:creator>
      <dc:date>2017-05-15T10:03:55Z</dc:date>
    </item>
  </channel>
</rss>

