<?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: Changing the main frequency clock</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-the-main-frequency-clock/m-p/571600#M18426</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by koonyook on Tue Dec 08 07:38:05 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using LPC54102 and I want to make the main clock slower from 100MHz to 32MHz.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so I change in sysinit_5410x.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SetupIrcClocking(100000000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SetupIrcClocking(32000000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but after running, the SystemCoreClock is still at 96000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to change something else?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:10:23 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:10:23Z</dc:date>
    <item>
      <title>Changing the main frequency clock</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-the-main-frequency-clock/m-p/571597#M18423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fjrg76 on Tue Jul 28 22:48:54 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The LPC812-Max board works at 24 MHz. But what if I want to make it work slower (using the IRC) or at its max freq, say 30 MHz using a 10 MHz external crystal?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are not clear ways to change the 24 MHz freq. I have followed the function calls chain and I couldn't see a single one that receives a parameter indicating not only the external crystal freq, but also a PLL multiplier. In other words, the 24 MHz freq seems to be fixed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A design I'm working on is supposed to use a 10 MHz crystal (we bought hundreds of them&amp;nbsp; :p ) in order to get 30 MHz system clock. For now 24 MHz is ok, but 30 MHz is a must.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas? Something that I have over-locked?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:10:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-the-main-frequency-clock/m-p/571597#M18423</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the main frequency clock</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-the-main-frequency-clock/m-p/571598#M18424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nerd herd on Wed Jul 29 07:38:19 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi fjrg76,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you using the latest LPCOpen package for the LPC81x? If so, have you looked at Chip_SetupIrcClocking in sysinit_8xx.c? This function should be called in SystemInit(), prior to entering main().&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:10:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-the-main-frequency-clock/m-p/571598#M18424</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the main frequency clock</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-the-main-frequency-clock/m-p/571599#M18425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fjrg76 on Thu Jul 30 00:50:02 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked at the functions you pointed me out, but although that has answered my original question (thanks!), two more have arose:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.- I need to touch system files. Very bad idea.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.- That workaround won't work when in the same workspace I have two o more projects, some using an external crystal, and some using the internal clock. One workspace per project? Maybe. Conditional compilation? We'll go back to point 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Right?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:10:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-the-main-frequency-clock/m-p/571599#M18425</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the main frequency clock</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-the-main-frequency-clock/m-p/571600#M18426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by koonyook on Tue Dec 08 07:38:05 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using LPC54102 and I want to make the main clock slower from 100MHz to 32MHz.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so I change in sysinit_5410x.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SetupIrcClocking(100000000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SetupIrcClocking(32000000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but after running, the SystemCoreClock is still at 96000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to change something else?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:10:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-the-main-frequency-clock/m-p/571600#M18426</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the main frequency clock</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-the-main-frequency-clock/m-p/571601#M18427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fjrg76 on Tue Dec 08 23:44:21 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not familiar with the LPC54102 chip, but I guess it's following the same principles from the LPCXpresso framework, so it's not enough to change the frequency as you did in&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SetupIrcClocking(32000000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You must also inform the crystal frequency and the oscillation source. Pretty nasty, uh? That's the NXP way :P&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some time ago I wrote a little tutorial (mostly for myself) in regards how to choose the correct oscillation source. Maybe you want to check it out:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://https://fjrg76.wordpress.com/2012/11/02/configuring-the-clock-options-for-the-lpc1227/"&gt;https://fjrg76.wordpress.com/2012/11/02/configuring-the-clock-options-for-the-lpc1227/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:10:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-the-main-frequency-clock/m-p/571601#M18427</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:10:23Z</dc:date>
    </item>
  </channel>
</rss>

