<?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: KEA8 clock configuration</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEA8-clock-configuration/m-p/613559#M36376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alessio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Try&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GPIOA_PTOR = 0x00010000;&amp;nbsp;&amp;nbsp;&amp;nbsp;// LED toggle&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GPIOA_PTOR |= 0x00010000;&amp;nbsp;&amp;nbsp;&amp;nbsp;// LED toggle&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It may speed it up 3x or 4x by avoiding the redundant OR function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Try commanding the Fast alias GPIO address (from 0xf8000000) instead since it is also quicker (eg.).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FGPIOA_PTOR = 0x00010000;&amp;nbsp;&amp;nbsp;&amp;nbsp;// LED toggle&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;assuming your environment recognises it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kinetis for professionals: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;KEA8 &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTRK-KEA8.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TRK-KEA8.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;KEA32 &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-KEAZN32Q64.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-KEAZN32Q64.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;KEA64 &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTRK-KEA64.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TRK-KEA64.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-KEAZ64Q64.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-KEAZ64Q64.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;KEA128 &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTRK-KEA128.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TRK-KEA128.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-KEAZ128Q80.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-KEAZ128Q80.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Nov 2016 18:09:24 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2016-11-22T18:09:24Z</dc:date>
    <item>
      <title>KEA8 clock configuration</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEA8-clock-configuration/m-p/613558#M36375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working with TRK-KEA8 board and try a simple toggle pin main cycle:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GPIOA_PTOR |= 0x00010000;&amp;nbsp;&amp;nbsp;&amp;nbsp;// LED toggle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with ICS configuration as FEI 40MHz and 20 MHz bus frequency:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ICS_C1 |= ICS_C1_IRCLKEN_MASK; /* Enable the internal reference clock*/&lt;/P&gt;&lt;P&gt;ICS_C3 = 0x90; /* Reference clock frequency = 31.25 KHz*/&lt;BR /&gt; while(!(ICS_S &amp;amp; ICS_S_LOCK_MASK)); /* Wait for PLL lock, now running at 40 MHz (1024 * 39.0625Khz) */&lt;BR /&gt; ICS_C2|=ICS_C2_BDIV(1); /*BDIV=2, Bus clock = 20 MHz*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm expecting a two edge of LED toggle time less of 100 ns, bus I see about 800 ns of main cycle time.&lt;/P&gt;&lt;P&gt;What's wrong?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Alessio De Marchi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 17:16:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEA8-clock-configuration/m-p/613558#M36375</guid>
      <dc:creator>alessiodemarchi</dc:creator>
      <dc:date>2016-11-22T17:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: KEA8 clock configuration</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEA8-clock-configuration/m-p/613559#M36376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alessio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Try&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GPIOA_PTOR = 0x00010000;&amp;nbsp;&amp;nbsp;&amp;nbsp;// LED toggle&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GPIOA_PTOR |= 0x00010000;&amp;nbsp;&amp;nbsp;&amp;nbsp;// LED toggle&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It may speed it up 3x or 4x by avoiding the redundant OR function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Try commanding the Fast alias GPIO address (from 0xf8000000) instead since it is also quicker (eg.).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FGPIOA_PTOR = 0x00010000;&amp;nbsp;&amp;nbsp;&amp;nbsp;// LED toggle&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;assuming your environment recognises it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kinetis for professionals: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;KEA8 &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTRK-KEA8.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TRK-KEA8.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;KEA32 &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-KEAZN32Q64.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-KEAZN32Q64.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;KEA64 &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTRK-KEA64.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TRK-KEA64.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-KEAZ64Q64.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-KEAZ64Q64.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;KEA128 &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTRK-KEA128.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TRK-KEA128.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-KEAZ128Q80.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-KEAZ128Q80.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 18:09:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEA8-clock-configuration/m-p/613559#M36376</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-11-22T18:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: KEA8 clock configuration</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEA8-clock-configuration/m-p/613560#M36377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my main is more faster. But I think that I'm not understand the Kinetis GPIO&amp;nbsp;behavior.&lt;/P&gt;&lt;P&gt;It the system clock is 40 MHz, bus clock 20 MHz. If I write one value on GPIO_PTOR in the next tick of the clock I have to see the physical pin to change (ARM M0+ is a RISC, right?). So in a main with 6 assembly instructions (a pin toggle and a cycle jump is about 6 simple instruction) I expected in the pin a square wave of about 6 * 25ns = 150 ns, without any use of the execution pipelines.&lt;/P&gt;&lt;P&gt;Where I'm wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 16:29:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEA8-clock-configuration/m-p/613560#M36377</guid>
      <dc:creator>alessiodemarchi</dc:creator>
      <dc:date>2016-12-02T16:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: KEA8 clock configuration</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEA8-clock-configuration/m-p/613561#M36378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alessio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You still need to try FAST IO access since this should be faster. You may then obtain the speed that you expect because there won't be slow port writes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To ensure fastest speed you may also need to run the code in SRAM (although a small loop will probably be in cache and not suffer from slow Flash access).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 17:25:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEA8-clock-configuration/m-p/613561#M36378</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-12-02T17:25:02Z</dc:date>
    </item>
  </channel>
</rss>

