<?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: LPC844 clock out in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC844-clock-out/m-p/1242513#M44197</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe there is no error after all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I look in the user manual, then I don't think table 147 is the right table you refer too. I refer to table 146 (SYSAHBCLKCTRL0).&lt;/P&gt;&lt;P&gt;But continuing to table 148 (PRESETCTRL0) (maybe also the one you meant instead of table 147), then I can see that SWM is reset by default, but this can be changed in this register.&lt;/P&gt;&lt;P&gt;So I guess that&amp;nbsp;SYSAHBCLKCTRL0 can be changed on the fly in the code and&amp;nbsp;PRESETCTRL0 is a startup thing when it boots.&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;</description>
    <pubDate>Tue, 09 Mar 2021 12:03:15 GMT</pubDate>
    <dc:creator>tyassin1</dc:creator>
    <dc:date>2021-03-09T12:03:15Z</dc:date>
    <item>
      <title>LPC844 clock out</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC844-clock-out/m-p/1241360#M44169</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I m trying a very simple example, to get the CLKOUT to work on a LPC844.&lt;/P&gt;&lt;P&gt;I am using the below SDK&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tyassin1_0-1615104138515.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/138953i662D854E398FAD11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tyassin1_0-1615104138515.png" alt="tyassin1_0-1615104138515.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I make a project and use the code below to output the MAINCLK to PIO0_24:&lt;/P&gt;&lt;P&gt;SWM0-&amp;gt;PINASSIGN_DATA[11] &amp;amp;= ~(0xFF&amp;lt;&amp;lt;8);&lt;BR /&gt;SWM0-&amp;gt;PINASSIGN_DATA[11] |= (24&amp;lt;&amp;lt;8);&lt;BR /&gt;SYSCON-&amp;gt;CLKOUTSEL = 1;&lt;BR /&gt;SYSCON-&amp;gt;CLKOUTDIV = 1;&lt;/P&gt;&lt;P&gt;But nothing happens on the pin. I am missing something?&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 08:04:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC844-clock-out/m-p/1241360#M44169</guid>
      <dc:creator>tyassin1</dc:creator>
      <dc:date>2021-03-07T08:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPC844 clock out</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC844-clock-out/m-p/1241406#M44171</link>
      <description>&lt;P&gt;Hi, Thomas,&lt;/P&gt;
&lt;P&gt;How about using the code like:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="test-id__field-value slds-form-element__static slds-grow word-break-ie11"&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/LPC844-clock-out/td-p/1241360" target="_blank"&gt;SYSCON&lt;/A&gt;&lt;/SPAN&gt;-&amp;gt;SYSAHBCLKCTRL0|=1&amp;lt;&amp;lt;7; //or &lt;SPAN class="test-id__field-value slds-form-element__static slds-grow word-break-ie11"&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/LPC844-clock-out/td-p/1241360" target="_blank"&gt;//SYSCON&lt;/A&gt;&lt;/SPAN&gt;-&amp;gt;SYSAHBCLKCTRL[0]|=1&amp;lt;&amp;lt;7;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="test-id__field-value slds-form-element__static slds-grow word-break-ie11"&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/LPC844-clock-out/td-p/1241360" target="_blank"&gt;SWM0-&amp;gt;PINASSIGN_DATA[11] &amp;amp;= ~(0xFF&amp;lt;&amp;lt;8);&lt;BR /&gt;SWM0-&amp;gt;PINASSIGN_DATA[11] |= (24&amp;lt;&amp;lt;8);&lt;BR /&gt;SYSCON-&amp;gt;CLKOUTSEL = 1;&lt;BR /&gt;SYSCON-&amp;gt;CLKOUTDIV = 100; //decrease the output clcok frqeuency for test&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="test-id__field-value slds-form-element__static slds-grow word-break-ie11"&gt;Hope it can help you&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="test-id__field-value slds-form-element__static slds-grow word-break-ie11"&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="test-id__field-value slds-form-element__static slds-grow word-break-ie11"&gt;XiangJun Rong&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 01:03:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC844-clock-out/m-p/1241406#M44171</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2021-03-08T01:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: LPC844 clock out</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC844-clock-out/m-p/1241872#M44183</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for feedback.&lt;/P&gt;&lt;P&gt;First of all.....it works now &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;The missing part was the activation of the SWM:&amp;nbsp;&lt;SPAN class="test-id__field-value slds-form-element__static slds-grow word-break-ie11"&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/LPC844-clock-out/td-p/1241360" target="_blank" rel="noopener"&gt;SYSCON&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;-&amp;gt;SYSAHBCLKCTRL0|=1&amp;lt;&amp;lt;7;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But I had thought about it and looking in the manual:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tyassin1_0-1615221435546.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/139012iF7AE6772B0FEDA00/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tyassin1_0-1615221435546.png" alt="tyassin1_0-1615221435546.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It states that it is enabled from reboot or am I missing something?&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 16:38:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC844-clock-out/m-p/1241872#M44183</guid>
      <dc:creator>tyassin1</dc:creator>
      <dc:date>2021-03-08T16:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: LPC844 clock out</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC844-clock-out/m-p/1242092#M44184</link>
      <description>&lt;P&gt;Hi, Thomas,&lt;/P&gt;
&lt;P&gt;It is good new that it works well. Regarding the SWM bit which is set in default after reset based on the Table 147. System clock control 0 register, maybe it is documentation error, the bit SWM is cleared in default after reset.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 02:32:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC844-clock-out/m-p/1242092#M44184</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2021-03-09T02:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: LPC844 clock out</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC844-clock-out/m-p/1242513#M44197</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe there is no error after all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I look in the user manual, then I don't think table 147 is the right table you refer too. I refer to table 146 (SYSAHBCLKCTRL0).&lt;/P&gt;&lt;P&gt;But continuing to table 148 (PRESETCTRL0) (maybe also the one you meant instead of table 147), then I can see that SWM is reset by default, but this can be changed in this register.&lt;/P&gt;&lt;P&gt;So I guess that&amp;nbsp;SYSAHBCLKCTRL0 can be changed on the fly in the code and&amp;nbsp;PRESETCTRL0 is a startup thing when it boots.&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 12:03:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC844-clock-out/m-p/1242513#M44197</guid>
      <dc:creator>tyassin1</dc:creator>
      <dc:date>2021-03-09T12:03:15Z</dc:date>
    </item>
  </channel>
</rss>

