<?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 Execution optimization of MPC5744p in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Execution-optimization-of-MPC5744p/m-p/1660833#M23738</link>
    <description>&lt;P&gt;Hello NXP professors:&lt;/P&gt;&lt;P&gt;As a newbie to MPC5744p, I've met a problem about how to optimize the execution time of my program.&lt;/P&gt;&lt;P&gt;This is a picture of a code line in my interrupt service routine.&lt;/P&gt;&lt;P&gt;↓This picture show the timer value before executing the code line I have tested&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snipaste_2023-05-31_21-11-51.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225642i61914AABB997394F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snipaste_2023-05-31_21-11-51.png" alt="Snipaste_2023-05-31_21-11-51.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;↓This picture show the timer value after executing the code line I have tested&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snipaste_2023-05-31_21-12-35.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225643i3AB716B5A5ACD82F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snipaste_2023-05-31_21-12-35.png" alt="Snipaste_2023-05-31_21-12-35.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I configured a e-timer(etimer2, channel0) to measure the time intervals between my codes. This timer is configured to clock from MOTC source, and divided by 1, which is 160MHz. My system clock also configured to 160MHz.&lt;/P&gt;&lt;P&gt;Then I found the time to execute this code line is 40 timer cycles, according to 0.25us, &lt;U&gt;that's too slow.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;So I wanna know is it normal to use such a long time, or is there any method to further optimize the execution of my codes so that it can use less time.&lt;/P&gt;&lt;P&gt;Greatly thankful!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 13:22:12 GMT</pubDate>
    <dc:creator>jakozhang</dc:creator>
    <dc:date>2023-05-31T13:22:12Z</dc:date>
    <item>
      <title>Execution optimization of MPC5744p</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Execution-optimization-of-MPC5744p/m-p/1660833#M23738</link>
      <description>&lt;P&gt;Hello NXP professors:&lt;/P&gt;&lt;P&gt;As a newbie to MPC5744p, I've met a problem about how to optimize the execution time of my program.&lt;/P&gt;&lt;P&gt;This is a picture of a code line in my interrupt service routine.&lt;/P&gt;&lt;P&gt;↓This picture show the timer value before executing the code line I have tested&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snipaste_2023-05-31_21-11-51.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225642i61914AABB997394F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snipaste_2023-05-31_21-11-51.png" alt="Snipaste_2023-05-31_21-11-51.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;↓This picture show the timer value after executing the code line I have tested&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snipaste_2023-05-31_21-12-35.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225643i3AB716B5A5ACD82F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snipaste_2023-05-31_21-12-35.png" alt="Snipaste_2023-05-31_21-12-35.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I configured a e-timer(etimer2, channel0) to measure the time intervals between my codes. This timer is configured to clock from MOTC source, and divided by 1, which is 160MHz. My system clock also configured to 160MHz.&lt;/P&gt;&lt;P&gt;Then I found the time to execute this code line is 40 timer cycles, according to 0.25us, &lt;U&gt;that's too slow.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;So I wanna know is it normal to use such a long time, or is there any method to further optimize the execution of my codes so that it can use less time.&lt;/P&gt;&lt;P&gt;Greatly thankful!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 13:22:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Execution-optimization-of-MPC5744p/m-p/1660833#M23738</guid>
      <dc:creator>jakozhang</dc:creator>
      <dc:date>2023-05-31T13:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Execution optimization of MPC5744p</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Execution-optimization-of-MPC5744p/m-p/1661861#M23752</link>
      <description>&lt;P&gt;In general optimization methods are desrcibed in&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4939.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN4939.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;main impact have flash configuration, proper PLL setup and enabling cache.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Possibly you could choose higher level of code optimization in the compiler.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 11:50:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Execution-optimization-of-MPC5744p/m-p/1661861#M23752</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2023-06-01T11:50:27Z</dc:date>
    </item>
  </channel>
</rss>

