<?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のトピックChange system clock frequency to 150MHZ</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Change-system-clock-frequency-to-150MHZ/m-p/1458051#M48759</link>
    <description>&lt;P&gt;I need my system clock to run on 150 MHz. But I also need to read&amp;amp;write to Flash.&amp;nbsp;&lt;BR /&gt;To achieve this I wanted to change the clock from 150 MHz to 75 MHz and after the Flash operation bump the speed back up to 150 MHz.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;But I am not sure how to do this.&amp;nbsp;&lt;BR /&gt;I wanted to do is in the following way:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;void System::decreaseMainClockSpeed()&lt;BR /&gt;{&lt;BR /&gt;CLOCK_SetClkDiv(kCLOCK_DivAhbClk, 2U, false);&lt;BR /&gt;POWER_SetVoltageForFreq(75000000);&lt;BR /&gt;SystemCoreClock = 75000000;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;void System::resetMainClockToOriginalSpeed()&lt;BR /&gt;{&lt;BR /&gt;POWER_SetVoltageForFreq(150000000);&lt;BR /&gt;CLOCK_SetClkDiv(kCLOCK_DivAhbClk, 1U, false);&lt;BR /&gt;CLOCK_GetFreq(kCLOCK_BusClk);&lt;BR /&gt;SystemCoreClock = 150000000;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The decreaseMainClockSpeed function works like it should. But when I call the resetMainClockToOriginalSpeed everything breaks after the&amp;nbsp;CLOCK_SetClkDiv(kCLOCK_DivAhbClk, 1U, false); function.&lt;BR /&gt;&lt;BR /&gt;Can someone help me?&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2022 14:49:32 GMT</pubDate>
    <dc:creator>timmermans</dc:creator>
    <dc:date>2022-05-13T14:49:32Z</dc:date>
    <item>
      <title>Change system clock frequency to 150MHZ</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Change-system-clock-frequency-to-150MHZ/m-p/1458051#M48759</link>
      <description>&lt;P&gt;I need my system clock to run on 150 MHz. But I also need to read&amp;amp;write to Flash.&amp;nbsp;&lt;BR /&gt;To achieve this I wanted to change the clock from 150 MHz to 75 MHz and after the Flash operation bump the speed back up to 150 MHz.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;But I am not sure how to do this.&amp;nbsp;&lt;BR /&gt;I wanted to do is in the following way:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;void System::decreaseMainClockSpeed()&lt;BR /&gt;{&lt;BR /&gt;CLOCK_SetClkDiv(kCLOCK_DivAhbClk, 2U, false);&lt;BR /&gt;POWER_SetVoltageForFreq(75000000);&lt;BR /&gt;SystemCoreClock = 75000000;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;void System::resetMainClockToOriginalSpeed()&lt;BR /&gt;{&lt;BR /&gt;POWER_SetVoltageForFreq(150000000);&lt;BR /&gt;CLOCK_SetClkDiv(kCLOCK_DivAhbClk, 1U, false);&lt;BR /&gt;CLOCK_GetFreq(kCLOCK_BusClk);&lt;BR /&gt;SystemCoreClock = 150000000;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The decreaseMainClockSpeed function works like it should. But when I call the resetMainClockToOriginalSpeed everything breaks after the&amp;nbsp;CLOCK_SetClkDiv(kCLOCK_DivAhbClk, 1U, false); function.&lt;BR /&gt;&lt;BR /&gt;Can someone help me?&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 14:49:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Change-system-clock-frequency-to-150MHZ/m-p/1458051#M48759</guid>
      <dc:creator>timmermans</dc:creator>
      <dc:date>2022-05-13T14:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change system clock frequency to 150MHZ</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Change-system-clock-frequency-to-150MHZ/m-p/1458862#M48776</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend the use of the MCU config tool, try to change the frequency and evaluate what changes were made in the code then implement them in your application.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 22:20:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Change-system-clock-frequency-to-150MHZ/m-p/1458862#M48776</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2022-05-16T22:20:17Z</dc:date>
    </item>
  </channel>
</rss>

