<?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: LCP1114F/302 Without External Oscillator</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528228#M9571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sun Mar 08 09:55:52 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: brattchess&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;- Which toolchain are you using?&lt;BR /&gt;I don't like putting a lot of files without sense.&lt;BR /&gt;I am using the lcexpresso&lt;BR /&gt;&lt;BR /&gt;- Where does this toolchain setup your system?&lt;BR /&gt;I only include LCP11x.h&lt;BR /&gt;&lt;BR /&gt;- Which code is executed before you reach main?&lt;BR /&gt;I don't execute any code before main().&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you kidding me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where's your main function call?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No cr_startup_lpc11xx.c&amp;nbsp; :quest:&amp;nbsp; :exmark:&amp;nbsp; :~ &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:29:33 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:29:33Z</dc:date>
    <item>
      <title>LCP1114F/302 Without External Oscillator</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528213#M9556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by brattchess on Thu Mar 05 13:35:23 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can not use the micro without external oscillator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I configure the micro with IRC oscillator and I can see the CLKOUT pin to 12MHZ but I have the oscillator in the board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I remove the oscillator the micro doesn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Following the instructions, the configuration to use the IRC is easier than configure the PLL...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:29:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528213#M9556</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: LCP1114F/302 Without External Oscillator</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528214#M9557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu Mar 05 14:09:42 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: brattchess&lt;/STRONG&gt;&lt;BR /&gt;I can not use the micro without external oscillator.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; :quest: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then look in your toolchain ( :quest: ) and change setup settings there...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCOpen is doing that in board layer file board_sysinit.c:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;/* Setup system clocking */
STATIC void SystemSetupClocking(void)
{
volatile int i;

/* Powerup main oscillator */
Chip_SYSCTL_PowerUp(SYSCTL_POWERDOWN_SYSOSC_PD);

/* Wait 200us for OSC to be stablized, no status
&amp;nbsp;&amp;nbsp; indication, dummy wait. */
for (i = 0; i &amp;lt; 0x100; i++) {}

/* Set system PLL input to main oscillator */
Chip_Clock_SetSystemPLLSource(SYSCTL_PLLCLKSRC_MAINOSC);

/* Power down PLL to change the PLL divider ratio */
Chip_SYSCTL_PowerDown(SYSCTL_POWERDOWN_SYSPLL_PD);

/* Setup PLL for main oscillator rate (FCLKIN = 12MHz) * 4 = 48MHz
&amp;nbsp;&amp;nbsp; MSEL = 3 (this is pre-decremented), PSEL = 1 (for P = 2)
&amp;nbsp;&amp;nbsp; FCLKOUT = FCLKIN * (MSEL + 1) = 12MHz * 4 = 48MHz
&amp;nbsp;&amp;nbsp; FCCO = FCLKOUT * 2 * P = 48MHz * 2 * 2 = 192MHz (within FCCO range) */
Chip_Clock_SetupSystemPLL(3, 1);

/* Powerup system PLL */
Chip_SYSCTL_PowerUp(SYSCTL_POWERDOWN_SYSPLL_PD);

/* Wait for PLL to lock */
while (!Chip_Clock_IsSystemPLLLocked()) {}

/* Set system clock divider to 1 */
Chip_Clock_SetSysClockDiv(1);

/* Setup FLASH access to 3 clocks */
Chip_FMC_SetFLASHAccess(FLASHTIM_50MHZ_CPU);

/* Set main clock source to the system PLL. This will drive 48MHz
&amp;nbsp;&amp;nbsp; for the main clock and 48MHz for the system clock */
Chip_Clock_SetMainClockSource(SYSCTL_MAINCLKSRC_PLLOUT);
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:29:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528214#M9557</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: LCP1114F/302 Without External Oscillator</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528215#M9558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by brattchess on Fri Mar 06 05:29:25 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I use it to stop system oscillator and to force to use IRC oscillator?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;PDRUNCFG |= (0x1&amp;lt;&amp;lt;5);//Disable Sys oscillator&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:29:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528215#M9558</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: LCP1114F/302 Without External Oscillator</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528216#M9559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Fri Mar 06 06:39:49 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: brattchess&lt;/STRONG&gt;&lt;BR /&gt;Can I use it to stop system oscillator and to force to use IRC oscillator?&lt;BR /&gt;&lt;BR /&gt;LPC_SYSCON-&amp;gt;PDRUNCFG |= (0x1&amp;lt;&amp;lt;5);//Disable Sys oscillator&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; :D &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you power down Sys Oscillator (and it's your PLL source) you just force your code to fail&amp;nbsp;&amp;nbsp; :(( &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You have to switch IRC as PLL source manually...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:29:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528216#M9559</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: LCP1114F/302 Without External Oscillator</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528217#M9560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by brattchess on Fri Mar 06 07:31:19 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will use this code to configure IRC as main source clock:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;uint32_t counter = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//Enable AHB/APB bridge; ROM; RAM; FLASHREG; FLASHARRAY; GPIO; IOCON&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL = (1&amp;lt;&amp;lt;0)|(1&amp;lt;&amp;lt;1)|(1&amp;lt;&amp;lt;2)|(1&amp;lt;&amp;lt;3)|(1&amp;lt;&amp;lt;4)|(1&amp;lt;&amp;lt;6)|(1&amp;lt;&amp;lt;16);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Enable system oscillator and go into a little dummy delay&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;SYSOSCCTRL = 0x00;//No Bypass; 1-20Mhz Range&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;PDRUNCFG &amp;amp;= ~(0x1&amp;lt;&amp;lt;5);//Enable Sys oscillator&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for (counter = 0; counter &amp;lt; 200; counter++) __NOP();//Dummy wait for the system osc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//MAINCLOCK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;MAINCLKSEL&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x00;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 0x0: IRC oscillator|0x1:Input clock to system PLL|0x3:System PLL clock out&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;MAINCLKUEN&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x01;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Update MCLK Clock Source&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;MAINCLKUEN&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x00;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Toggle Update Register&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;MAINCLKUEN&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x01;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while (!(LPC_SYSCON-&amp;gt;MAINCLKUEN &amp;amp; 0x01));&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Wait Until Updated&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:29:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528217#M9560</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: LCP1114F/302 Without External Oscillator</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528218#M9561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Fri Mar 06 07:45:39 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;And why are you enabling System Oscillator (and waiting until it's ready) if you don't use it&amp;nbsp; :quest: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: brattchess&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;[color=#f00]//Enable system oscillator and go into a little dummy delay[/color]&lt;BR /&gt;LPC_SYSCON-&amp;gt;SYSOSCCTRL = 0x00;//No Bypass; 1-20Mhz Range&lt;BR /&gt;LPC_SYSCON-&amp;gt;PDRUNCFG &amp;amp;= ~(0x1&amp;lt;&amp;lt;5);//Enable Sys oscillator&lt;BR /&gt;for (counter = 0; counter &amp;lt; 200; counter++) __NOP();//Dummy wait for the system osc&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:29:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528218#M9561</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: LCP1114F/302 Without External Oscillator</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528219#M9562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by brattchess on Sat Mar 07 01:40:01 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I check that if I power down the system oscillator the micro doesn't work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:29:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528219#M9562</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: LCP1114F/302 Without External Oscillator</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528220#M9563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sat Mar 07 03:02:09 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: brattchess&lt;/STRONG&gt;&lt;BR /&gt;I check that if I power down the system oscillator the micro doesn't work.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you are obviously using the system oscillator as clock source...&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:29:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528220#M9563</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: LCP1114F/302 Without External Oscillator</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528221#M9564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by brattchess on Sat Mar 07 06:09:52 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes I am using the system oscillator but which is it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The external or the IRC oscillator?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:29:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528221#M9564</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: LCP1114F/302 Without External Oscillator</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528222#M9565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sat Mar 07 06:56:13 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;User Manual 10398:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;3.4 Clock generation&lt;BR /&gt;....&lt;BR /&gt;The LPC111x/LPC11Cxx include[color=#f00] three independent oscillators. These are the system oscillator, the Internal RC oscillator (IRC), and the watchdog oscillator[/color]. Each oscillator can be used for more than one purpose as required in a particular application.&lt;BR /&gt;...&lt;BR /&gt;Following reset, the LPC111x/LPC11Cxx will operate from the Internal RC oscillator until switched by software. This allows systems to operate without any external crystal and the bootloader code to operate at a known frequency&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Datasheet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;When the system oscillator is not used, connect XTALIN and XTALOUT as follows: XTALIN can be left floating or can be grounded (grounding is preferred to reduce susceptibility to noise). XTALOUT should be left floating.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So system oscillator is whatever you connect to XTALIN / XTALOUT: usually a (12MHz) crystal&amp;nbsp; :O &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:29:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528222#M9565</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: LCP1114F/302 Without External Oscillator</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528223#M9566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by brattchess on Sun Mar 08 04:06:13 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I check debugging that I don't powered the System osc and the register indicates that it was running.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I reset this block and it stops all the micro, having the block of IRC osc activated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL = (1&amp;lt;&amp;lt;0)|(1&amp;lt;&amp;lt;1)|(1&amp;lt;&amp;lt;2)|(1&amp;lt;&amp;lt;3)|(1&amp;lt;&amp;lt;4)|(1&amp;lt;&amp;lt;6)|(1&amp;lt;&amp;lt;16);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;SYSOSCCTRL = 0x00;//No Bypass; 1-20Mhz Range&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//MAINCLOCK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;MAINCLKSEL&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x00;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 0x0: IRC oscillator|0x1:Input clock to system PLL|0x3:System PLL clock out&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;MAINCLKUEN&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x01;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Update MCLK Clock Source&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;MAINCLKUEN&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x00;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Toggle Update Register&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;MAINCLKUEN&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x01;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while (!(LPC_SYSCON-&amp;gt;MAINCLKUEN &amp;amp; 0x01));&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Wait Until Updated&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;CLKOUTCLKSEL = 0x03; // 0:IRC oscillator|0x1:System oscillator|0x3:Main clock&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;CLKOUTUEN = 0x01; // Update clock&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;CLKOUTUEN = 0x00; // Toggle update register once&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;CLKOUTUEN = 0x01;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while ( !(LPC_SYSCON-&amp;gt;CLKOUTUEN &amp;amp; 0x01) ); // Wait until updated&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;CLKOUTDIV = 1; // Divided by 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;PIO0_1 &amp;amp;= ~0x07;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;PIO0_1 |= 0x01;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO0-&amp;gt;DIR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |= (1&amp;lt;&amp;lt;1);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //set pin direction to output (sec 12.3.2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;while(1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why has the PDRUNCFG the value 0x50? I don't active the PLL Block neither System Oscillator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't understand it. Could be affect that I am using debbuger?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:29:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528223#M9566</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: LCP1114F/302 Without External Oscillator</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528224#M9567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sun Mar 08 05:08:33 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: brattchess&lt;/STRONG&gt;&lt;BR /&gt;Why has the PDRUNCFG the value 0x50? I don't active the PLL Block neither System Oscillator.&lt;BR /&gt;I don't understand it. Could be affect that I am using debbuger?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is 0x50 the default value? No&amp;nbsp; :exmark: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So your code is changing it&amp;nbsp; :O &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Look in your toolchain ( :quest: ) System Init functions...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:29:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528224#M9567</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: LCP1114F/302 Without External Oscillator</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528225#M9568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by brattchess on Sun Mar 08 05:30:39 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My main function is that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL = (1&amp;lt;&amp;lt;0)|(1&amp;lt;&amp;lt;1)|(1&amp;lt;&amp;lt;2)|(1&amp;lt;&amp;lt;3)|(1&amp;lt;&amp;lt;4)|(1&amp;lt;&amp;lt;6)|(1&amp;lt;&amp;lt;16);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;SYSOSCCTRL = 0x00;//No Bypass; 1-20Mhz Range&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//MAINCLOCK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;MAINCLKSEL = 0x00; // 0x0: IRC oscillator|0x1:Input clock to system PLL|0x3:System PLL clock out&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;MAINCLKUEN = 0x01; // Update MCLK Clock Source&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;MAINCLKUEN = 0x00; // Toggle Update Register&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;MAINCLKUEN = 0x01;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while (!(LPC_SYSCON-&amp;gt;MAINCLKUEN &amp;amp; 0x01)); // Wait Until Updated&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;CLKOUTCLKSEL = 0x03; // 0:IRC oscillator|0x1:System oscillator|0x3:Main clock&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;CLKOUTUEN = 0x01; // Update clock&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;CLKOUTUEN = 0x00; // Toggle update register once&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;CLKOUTUEN = 0x01;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while ( !(LPC_SYSCON-&amp;gt;CLKOUTUEN &amp;amp; 0x01) ); // Wait until updated&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;CLKOUTDIV = 1; // Divided by 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;PIO0_1 &amp;amp;= ~0x07;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;PIO0_1 |= 0x01;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO0-&amp;gt;DIR |= (1&amp;lt;&amp;lt;1); //set pin direction to output (sec 12.3.2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;while(1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where I can modify the register??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:29:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528225#M9568</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: LCP1114F/302 Without External Oscillator</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528226#M9569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sun Mar 08 06:27:50 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: brattchess&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;My main function is that:..&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; :quest: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I this a language problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've seen that already&amp;nbsp; :exmark: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't help you if you don't follow my hints&amp;nbsp; |( &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Which toolchain are you using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Where does this toolchain setup your system?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Which code is executed before you reach main?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:29:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528226#M9569</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: LCP1114F/302 Without External Oscillator</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528227#M9570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by brattchess on Sun Mar 08 09:24:14 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Which toolchain are you using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't like putting a lot of files without sense.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the lcexpresso&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Where does this toolchain setup your system?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I only include LCP11x.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Which code is executed before you reach main?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't execute any code before main().&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:29:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528227#M9570</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: LCP1114F/302 Without External Oscillator</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528228#M9571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sun Mar 08 09:55:52 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: brattchess&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;- Which toolchain are you using?&lt;BR /&gt;I don't like putting a lot of files without sense.&lt;BR /&gt;I am using the lcexpresso&lt;BR /&gt;&lt;BR /&gt;- Where does this toolchain setup your system?&lt;BR /&gt;I only include LCP11x.h&lt;BR /&gt;&lt;BR /&gt;- Which code is executed before you reach main?&lt;BR /&gt;I don't execute any code before main().&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you kidding me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where's your main function call?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No cr_startup_lpc11xx.c&amp;nbsp; :quest:&amp;nbsp; :exmark:&amp;nbsp; :~ &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:29:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCP1114F-302-Without-External-Oscillator/m-p/528228#M9571</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:29:33Z</dc:date>
    </item>
  </channel>
</rss>

