<?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>LPC MicrocontrollersのトピックRe: LPC824_Xpresso board testing system oscillator using XTALIN and XTALOUT</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-Xpresso-board-testing-system-oscillator-using-XTALIN-and/m-p/1822727#M55580</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I solved the problem. There was an issue in the IOCON configuration&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Mar 2024 21:38:39 GMT</pubDate>
    <dc:creator>topspin</dc:creator>
    <dc:date>2024-03-06T21:38:39Z</dc:date>
    <item>
      <title>LPC824_Xpresso board testing system oscillator using XTALIN and XTALOUT</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-Xpresso-board-testing-system-oscillator-using-XTALIN-and/m-p/1821543#M55564</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a&amp;nbsp;LPC824_Xpresso&amp;nbsp; board OM13071 and I would like to output on P0_27 (blue led on the board) the clock produced by the system oscillator.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="topspin_0-1709640001876.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/266580i2CD2DA76ECDE6B38/image-size/medium?v=v2&amp;amp;px=400" role="button" title="topspin_0-1709640001876.png" alt="topspin_0-1709640001876.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Firstly I moved the SJ3 and SJ4 to pin 1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="topspin_1-1709640033748.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/266581i0F1AD2845CFA540A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="topspin_1-1709640033748.png" alt="topspin_1-1709640033748.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Since I would like to understand properly how the registers work, I wrote this function&amp;nbsp;&lt;/P&gt;&lt;P&gt;void output_XTAL(void){&lt;BR /&gt;/* power IOCON*/&lt;BR /&gt;SYSCON-&amp;gt;SYSAHBCLKCTRL|=((0x1&amp;lt;&amp;lt;7) | (0x1&amp;lt;&amp;lt;18));&lt;BR /&gt;/* Crystal Oscillator (SYSOSC) setup */&lt;BR /&gt;IOCON-&amp;gt;PIO[8]&amp;amp;= ~(1&amp;lt;&amp;lt;3)|(1&amp;lt;&amp;lt;4); // remove pullup and pulldown resistor&lt;BR /&gt;IOCON-&amp;gt;PIO[9]&amp;amp;= ~(1&amp;lt;&amp;lt;3)|(1&amp;lt;&amp;lt;4);&lt;BR /&gt;SWM0-&amp;gt;PINENABLE0&amp;amp;=~(1&amp;lt;&amp;lt;6)|(1&amp;lt;&amp;lt;7); // XTALIN XTALOUT pin enabled&lt;BR /&gt;SYSCON-&amp;gt;SYSAHBCLKCTRL&amp;amp;=~((0x1&amp;lt;&amp;lt;7)|(0x1&amp;lt;&amp;lt;18));&lt;BR /&gt;SYSCON-&amp;gt;SYSOSCCTRL=0x0; // disable the bypass bit&lt;BR /&gt;SYSCON-&amp;gt;PDRUNCFG &amp;amp;= ~(1&amp;lt;&amp;lt;5); // power on SYSOSC&lt;BR /&gt;for(volatile uint32_t i=0; i&amp;lt;200; i++) __NOP(); /* wait */&lt;BR /&gt;/* Clockout setup */&lt;BR /&gt;SYSCON-&amp;gt;CLKOUTSEL=0x1;&amp;nbsp;&lt;BR /&gt;SYSCON-&amp;gt;CLKOUTDIV=100;&lt;BR /&gt;SYSCON-&amp;gt;CLKOUTUEN=0;&lt;BR /&gt;SYSCON-&amp;gt;CLKOUTUEN=1;&lt;BR /&gt;/* assign clockout pin */&lt;BR /&gt;SYSCON-&amp;gt;SYSAHBCLKCTRL|=(1&amp;lt;&amp;lt;7); // Enable SWM clock&lt;BR /&gt;SWM0-&amp;gt;PINASSIGN_DATA[11]&amp;amp;=~(0xFF&amp;lt;&amp;lt;16); // clear register&lt;BR /&gt;SWM0-&amp;gt;PINASSIGN_DATA[11]|=(0x1B&amp;lt;&amp;lt;16); // assign CLOCK to pin PIO_27&lt;BR /&gt;SYSCON-&amp;gt;SYSAHBCLKCTRL&amp;amp;=~(1&amp;lt;&amp;lt;7); // Disable SWM clock&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;However I do not get the SYSOSC clock on&amp;nbsp;&amp;nbsp;PIO_27. If I try to have the IRC oscillator on the same output pin simply changing this&amp;nbsp;SYSCON-&amp;gt;CLKOUTSEL=0x0; ....it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know why? I am basically doing the operations described below when setting up the SYSOSC&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="topspin_2-1709640290688.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/266583i8D4B3848B7FB70F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="topspin_2-1709640290688.png" alt="topspin_2-1709640290688.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look forward to your suggestions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 12:06:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-Xpresso-board-testing-system-oscillator-using-XTALIN-and/m-p/1821543#M55564</guid>
      <dc:creator>topspin</dc:creator>
      <dc:date>2024-03-05T12:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: LPC824_Xpresso board testing system oscillator using XTALIN and XTALOUT</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-Xpresso-board-testing-system-oscillator-using-XTALIN-and/m-p/1822202#M55575</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218574"&gt;@topspin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How about use Configure tool inside MCUXpresso IDE to config the&amp;nbsp;&lt;SPAN&gt;system oscillator and pins.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then generated code.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_1-1709711231460.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/266739i33439DDB70B32902/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_1-1709711231460.png" alt="Alice_Yang_1-1709711231460.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1709711182509.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/266738iF09FE9DF0E6DC689/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1709711182509.png" alt="Alice_Yang_0-1709711182509.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 07:47:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-Xpresso-board-testing-system-oscillator-using-XTALIN-and/m-p/1822202#M55575</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-03-06T07:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPC824_Xpresso board testing system oscillator using XTALIN and XTALOUT</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-Xpresso-board-testing-system-oscillator-using-XTALIN-and/m-p/1822227#M55576</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to write a brand new function to have the the system oscillator on the CLOCKOUT pin.&lt;/P&gt;&lt;P&gt;I do no want to use the code generated by the config tools.&lt;/P&gt;&lt;P&gt;Do you think the function I wrote is correct?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 08:09:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-Xpresso-board-testing-system-oscillator-using-XTALIN-and/m-p/1822227#M55576</guid>
      <dc:creator>topspin</dc:creator>
      <dc:date>2024-03-06T08:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: LPC824_Xpresso board testing system oscillator using XTALIN and XTALOUT</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-Xpresso-board-testing-system-oscillator-using-XTALIN-and/m-p/1822727#M55580</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I solved the problem. There was an issue in the IOCON configuration&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 21:38:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-Xpresso-board-testing-system-oscillator-using-XTALIN-and/m-p/1822727#M55580</guid>
      <dc:creator>topspin</dc:creator>
      <dc:date>2024-03-06T21:38:39Z</dc:date>
    </item>
  </channel>
</rss>

