<?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>Kinetis MicrocontrollersのトピックRe: K70 MCU frequency change</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-MCU-frequency-change/m-p/568703#M34036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Evgeni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your question is fairly vague. How you can alter your clock frequency depends on your clock configuration. If you are using the FLL or PLL you can always lower the multiplication factor it's scaling the respective reference clock by in the MCG module. You can also increase the pertinent clock divider in the SIM module to lower the frequency. Or if you want to raise the frequency, just do the opposite of the prior suggestions. :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's totally up to you how and where in your program you decide to change your clock configuration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Aug 2016 18:57:56 GMT</pubDate>
    <dc:creator>charlesasquith</dc:creator>
    <dc:date>2016-08-04T18:57:56Z</dc:date>
    <item>
      <title>K70 MCU frequency change</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-MCU-frequency-change/m-p/568702#M34035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;How can I reduce Kinetis K70 MCU frequency before going to STOP mode and increase after wakeup?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Evgeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 08:46:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-MCU-frequency-change/m-p/568702#M34035</guid>
      <dc:creator>evgenik</dc:creator>
      <dc:date>2016-08-04T08:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: K70 MCU frequency change</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-MCU-frequency-change/m-p/568703#M34036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Evgeni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your question is fairly vague. How you can alter your clock frequency depends on your clock configuration. If you are using the FLL or PLL you can always lower the multiplication factor it's scaling the respective reference clock by in the MCG module. You can also increase the pertinent clock divider in the SIM module to lower the frequency. Or if you want to raise the frequency, just do the opposite of the prior suggestions. :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's totally up to you how and where in your program you decide to change your clock configuration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 18:57:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-MCU-frequency-change/m-p/568703#M34036</guid>
      <dc:creator>charlesasquith</dc:creator>
      <dc:date>2016-08-04T18:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: K70 MCU frequency change</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-MCU-frequency-change/m-p/568704#M34037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the next configuration in&amp;nbsp;System_Init() (attached 2 files):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #339966;"&gt;// Initialize PLL0 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN style="color: #339966;"&gt; // PLL0 will be the source for MCG CLKOUT so the core, system, FlexBus, and flash clocks are derived from it&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; mcg_clk_hz = pll_initialization(OSCINIT, &lt;SPAN style="color: #339966;"&gt;// Initialize the oscillator circuit &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;OSC_0, &lt;SPAN style="color: #339966;"&gt;// Use CLKIN0 as the input clock &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;CLK0_FREQ_HZ, &lt;SPAN style="color: #339966;"&gt;// CLKIN0 frequency&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;LOW_POWER, &lt;SPAN style="color: #339966;"&gt;// Set the oscillator for low power mode&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;CLK0_TYPE, &lt;SPAN style="color: #339966;"&gt;// Crystal or canned oscillator clock input &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;PLL_0, &lt;SPAN style="color: #339966;"&gt;// PLL to initialize, in this case PLL0&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;PLL0_PRDIV, &lt;SPAN style="color: #339966;"&gt;// PLL predivider value&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;PLL0_VDIV, &lt;SPAN style="color: #339966;"&gt;// PLL multiplier&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;MCGOUT); &lt;SPAN style="color: #339966;"&gt;// Use the output from this PLL as the MCGOUT &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN style="color: #339966;"&gt; // Check the value returned from pll_initialization() to make sure there wasn't an error&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; if (mcg_clk_hz &amp;lt; 0x100)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; while(1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #339966;"&gt;// Initialize PLL1 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN style="color: #339966;"&gt; // PLL1 will be the source for the DDR controller, but NOT the MCGOUT&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; pll_1_clk_khz = (pll_initialization(NO_OSCINIT, &lt;SPAN style="color: #339966;"&gt;// Don't init the osc circuit, already done&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;OSC_0, &lt;SPAN style="color: #339966;"&gt;// Use CLKIN0 as the input clock&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;CLK0_FREQ_HZ, &lt;SPAN style="color: #339966;"&gt;// CLKIN0 frequency&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;LOW_POWER, &lt;SPAN style="color: #339966;"&gt;// Set the oscillator for low power mode &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;CLK0_TYPE, &lt;SPAN style="color: #339966;"&gt;// Crystal or canned oscillator clock input &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;PLL_1, &lt;SPAN style="color: #339966;"&gt;// PLL to initialize, in this case PLL1 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;PLL1_PRDIV, &lt;SPAN style="color: #339966;"&gt;// PLL predivider value &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;PLL1_VDIV, &lt;SPAN style="color: #339966;"&gt;// PLL multiplier&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;PLL_ONLY) / 1000); &lt;SPAN style="color: #339966;"&gt;// Don't use the output from this PLL as the MCGOUT&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;My system all time stay in STOP&amp;nbsp;mode and wake up on RTC alarm. Therefore I want to reduce MCU frequency to minimal power consumption before STOP&amp;nbsp;mode and on RTC Wake up restore to working frequency.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Evgeni&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 08:07:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-MCU-frequency-change/m-p/568704#M34037</guid>
      <dc:creator>evgenik</dc:creator>
      <dc:date>2016-09-20T08:07:18Z</dc:date>
    </item>
  </channel>
</rss>

