<?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>S32K中的主题 Re: How to Evaluate the Efficiency Difference Between Synchronous and Asynchronous LPSPI Transfers</title>
    <link>https://community.nxp.com/t5/S32K/How-to-Evaluate-the-Efficiency-Difference-Between-Synchronous/m-p/2098455#M48858</link>
    <description>&lt;P class=""&gt;Thank you for your response.&lt;/P&gt;&lt;P class=""&gt;In addition to the execution time, I would also like to evaluate the efficiency of the two approaches in other aspects, such as CPU load, system responsiveness, or potential blocking impacts on other tasks.&lt;/P&gt;&lt;P class=""&gt;Are there any recommended methods, tools, or metrics to assess these factors, especially in an environment without an RTOS?&lt;/P&gt;</description>
    <pubDate>Thu, 15 May 2025 23:06:54 GMT</pubDate>
    <dc:creator>malove</dc:creator>
    <dc:date>2025-05-15T23:06:54Z</dc:date>
    <item>
      <title>How to Evaluate the Efficiency Difference Between Synchronous and Asynchronous LPSPI Transfers</title>
      <link>https://community.nxp.com/t5/S32K/How-to-Evaluate-the-Efficiency-Difference-Between-Synchronous/m-p/2097851#M48812</link>
      <description>&lt;P class=""&gt;Hello,&lt;/P&gt;&lt;P class=""&gt;Previously, our scheduler called the Lpspi_Ip_SyncTransmit() function every 10ms to perform SPI communication in polling mode, as shown below:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;while True:
    if 10ms_flag_on:
        Lpspi_Ip_SyncTransmit();
         
     &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recently, we switched to an interrupt-driven approach using LPSPI0_IRQn with Lpspi_Ip_AsyncTransmit(), as shown below:&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;While True:
    if 10ms_flag_on:
        Lpspi_Ip_AsyncTransmit();&lt;/LI-CODE&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I would like to ask if there is any recommended or reliable method to &lt;STRONG&gt;quantitatively evaluate the efficiency difference between the synchronous and interrupt-based asynchronous transmission methods&lt;/STRONG&gt;.&lt;/P&gt;&lt;P class=""&gt;Thank you in advance for your support.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 06:52:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-Evaluate-the-Efficiency-Difference-Between-Synchronous/m-p/2097851#M48812</guid>
      <dc:creator>malove</dc:creator>
      <dc:date>2025-05-15T06:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Evaluate the Efficiency Difference Between Synchronous and Asynchronous LPSPI Transfers</title>
      <link>https://community.nxp.com/t5/S32K/How-to-Evaluate-the-Efficiency-Difference-Between-Synchronous/m-p/2098082#M48840</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;you can measure the time taken for data transmission from start to finish for both methods. This can be e.g. done using high-resolution timers to capture the precise duration of each transmission.&lt;BR /&gt;In RTOS system you can refer to below&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Use-FreeRTOS-OS-Awareness-with-S32Debugger-and-PEMicro/ta-p/1940207" target="_blank"&gt;https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Use-FreeRTOS-OS-Awareness-with-S32Debugger-and-PEMicro/ta-p/1940207&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://mcuoneclipse.com/2019/12/31/implementing-freertos-performance-counters-on-arm-cortex-m/" target="_blank"&gt;https://mcuoneclipse.com/2019/12/31/implementing-freertos-performance-counters-on-arm-cortex-m/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 10:25:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-Evaluate-the-Efficiency-Difference-Between-Synchronous/m-p/2098082#M48840</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2025-05-15T10:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to Evaluate the Efficiency Difference Between Synchronous and Asynchronous LPSPI Transfers</title>
      <link>https://community.nxp.com/t5/S32K/How-to-Evaluate-the-Efficiency-Difference-Between-Synchronous/m-p/2098455#M48858</link>
      <description>&lt;P class=""&gt;Thank you for your response.&lt;/P&gt;&lt;P class=""&gt;In addition to the execution time, I would also like to evaluate the efficiency of the two approaches in other aspects, such as CPU load, system responsiveness, or potential blocking impacts on other tasks.&lt;/P&gt;&lt;P class=""&gt;Are there any recommended methods, tools, or metrics to assess these factors, especially in an environment without an RTOS?&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 23:06:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-Evaluate-the-Efficiency-Difference-Between-Synchronous/m-p/2098455#M48858</guid>
      <dc:creator>malove</dc:creator>
      <dc:date>2025-05-15T23:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to Evaluate the Efficiency Difference Between Synchronous and Asynchronous LPSPI Transfers</title>
      <link>https://community.nxp.com/t5/S32K/How-to-Evaluate-the-Efficiency-Difference-Between-Synchronous/m-p/2098970#M48917</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;synchronous methods might use more CPU resources due to continuous polling, can block the main loop or delay other peripherals, whereas asynchronous methods might be more efficient by leveraging interrupts. To compare Lpspi_Ip_SyncTransmit() and Lpspi_Ip_AsyncTransmit() without an RTOS, you can:&lt;/P&gt;
&lt;P&gt;- Measure execution time using the DWT cycle counter.&lt;BR /&gt;- Mark timing with GPIO toggles for oscilloscope/logic analyzer.&lt;BR /&gt;- Estimate CPU load by counting idle loop iterations.&lt;BR /&gt;- Assess responsiveness by measuring interrupt latency during SPI activity.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 11:06:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-Evaluate-the-Efficiency-Difference-Between-Synchronous/m-p/2098970#M48917</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2025-05-16T11:06:33Z</dc:date>
    </item>
  </channel>
</rss>

