<?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>topic Re: FRDM-K22F execution time vs. clock frequency in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K22F-execution-time-vs-clock-frequency/m-p/1601396#M64721</link>
    <description>&lt;P&gt;What is the value of your CPU_CORE_CLK_HZ?&lt;/P&gt;&lt;P&gt;I could use the debugger to step through the clock initialization to verify it is really doing what you think it is doing.&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
    <pubDate>Sat, 18 Feb 2023 05:54:36 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2023-02-18T05:54:36Z</dc:date>
    <item>
      <title>FRDM-K22F execution time vs. clock frequency</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K22F-execution-time-vs-clock-frequency/m-p/1601365#M64720</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to turn on the RGB LEDs after some time delay. Here is a code (KDS 3.2.0):&lt;/P&gt;&lt;P&gt;void LED_ON()&lt;BR /&gt;{&lt;BR /&gt;uint16_t i, n;&lt;BR /&gt;for(i=0;i&amp;lt;3000;i++)&lt;BR /&gt;{&lt;BR /&gt;for(n=0;n&amp;lt;9000;n++)&lt;BR /&gt;{&lt;BR /&gt;__asm("nop");&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;Bit1_ClrVal();&lt;BR /&gt;Bit2_ClrVal();&lt;BR /&gt;Bit3_ClrVal();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;PE_low_level_init();&lt;BR /&gt;#ifdef PEX_RTOS_START&lt;BR /&gt;PEX_RTOS_START();&lt;BR /&gt;#endif&lt;BR /&gt;LED_ON();&lt;BR /&gt;for(;;){}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;First I set clocks to the maximum possible values :Core clock=120MHz, Bus clock=60MHz, Flash clock=24MHz. Now I generate Processor Expert code and then compile the project. No warnings, no errors. Then Run=&amp;gt;Flash from file. Works fine. Double loop delay in LED_ON function takes 14 seconds before LEDs turn ON. Now I set clocks to a minimum possible frequencies: Core clock=8MHz, Bus clock=8MHz, Flash clock=8MHz. Again, Processor Expert code generation, compilation and Flashing.&lt;/P&gt;&lt;P&gt;And again it works fine, however, the double loop delay is exactly the same, i.e. 14 seconds. I was expecting a longer time. How to explain it?&lt;/P&gt;&lt;P&gt;RGDS, Stachu&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 23:40:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K22F-execution-time-vs-clock-frequency/m-p/1601365#M64720</guid>
      <dc:creator>Stachu</dc:creator>
      <dc:date>2023-02-17T23:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K22F execution time vs. clock frequency</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K22F-execution-time-vs-clock-frequency/m-p/1601396#M64721</link>
      <description>&lt;P&gt;What is the value of your CPU_CORE_CLK_HZ?&lt;/P&gt;&lt;P&gt;I could use the debugger to step through the clock initialization to verify it is really doing what you think it is doing.&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 05:54:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K22F-execution-time-vs-clock-frequency/m-p/1601396#M64721</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2023-02-18T05:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K22F execution time vs. clock frequency</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K22F-execution-time-vs-clock-frequency/m-p/1601599#M64726</link>
      <description>&lt;P&gt;Unfortunately I have no idea what is the value of&amp;nbsp;&lt;SPAN&gt;CPU_CORE_CLK_HZ. I have inspected CXPI_Config.h file and found several clock configurations defined. But which one is choosen, I don't know. Anyway, I would appreciate if you can do me a favour and check how it works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RGDS, Stachu&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 02:57:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K22F-execution-time-vs-clock-frequency/m-p/1601599#M64726</guid>
      <dc:creator>Stachu</dc:creator>
      <dc:date>2023-02-20T02:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K22F execution time vs. clock frequency</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K22F-execution-time-vs-clock-frequency/m-p/1601609#M64727</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Stachu,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Maybe attach your project directly so we can find the problem faster.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Robin&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 03:14:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K22F-execution-time-vs-clock-frequency/m-p/1601609#M64727</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2023-02-20T03:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K22F execution time vs. clock frequency</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K22F-execution-time-vs-clock-frequency/m-p/1601887#M64729</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/211745"&gt;@Stachu&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I recommend that you step through your PE_low_level_init(); and check what it is doing.&lt;/P&gt;&lt;P&gt;It sets up the clocking, so you should see there what values it is using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 10:31:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K22F-execution-time-vs-clock-frequency/m-p/1601887#M64729</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2023-02-20T10:31:27Z</dc:date>
    </item>
  </channel>
</rss>

