<?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 How to calculate CRC HW performance in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-calculate-CRC-HW-performance/m-p/838853#M50653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a K64F processor and I am currently performing CRC's through software.&amp;nbsp; I would like to evaluate the performance of the CRC through hardware and compare it to the software version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this, I am using the Cycle Counter in SWO Counters in MCUXpresso.&amp;nbsp; Is this the correct way to compare the two versions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The results of my testing show that my software-implemented CRC calculation actually takes 100 less cycles than the hardware version.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a lookup table for the software-implemented version.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2018 13:54:31 GMT</pubDate>
    <dc:creator>jschepler</dc:creator>
    <dc:date>2018-07-02T13:54:31Z</dc:date>
    <item>
      <title>How to calculate CRC HW performance</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-calculate-CRC-HW-performance/m-p/838853#M50653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a K64F processor and I am currently performing CRC's through software.&amp;nbsp; I would like to evaluate the performance of the CRC through hardware and compare it to the software version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this, I am using the Cycle Counter in SWO Counters in MCUXpresso.&amp;nbsp; Is this the correct way to compare the two versions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The results of my testing show that my software-implemented CRC calculation actually takes 100 less cycles than the hardware version.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a lookup table for the software-implemented version.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 13:54:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-calculate-CRC-HW-performance/m-p/838853#M50653</guid>
      <dc:creator>jschepler</dc:creator>
      <dc:date>2018-07-02T13:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate CRC HW performance</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-calculate-CRC-HW-performance/m-p/838854#M50654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think using the Cycle Counter in SWO Counters in MCUXpresso is the correct way to compare the two versions.&lt;BR /&gt;This function is able to measure the number of cycles between break points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am refer &lt;A href="https://mcuoneclipse.com/2017/06/01/mcuxpresso-ide-swo-performance-counters/"&gt;ARM SWO Performance Counters &lt;/A&gt;, measure the CRC-16/CCIT-FALSE(line 197 and 198) of crc example in MCUXpresso &lt;A href="https://mcuxpresso.nxp.com/en/select"&gt;SDK_2.4.1_FRDM-K64F&lt;/A&gt;. That hardware-implemented CRC calculation takes 201 Cycle counter(120MHz).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CRC-16 CCIT-FALSE.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/64918i54AE0335EA7CBF4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="CRC-16 CCIT-FALSE.png" alt="CRC-16 CCIT-FALSE.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Would you please show us the software and hardware CRC function measure result images?&lt;BR /&gt;Maybe you can attached your test project here, so that we can check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2018 07:38:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-calculate-CRC-HW-performance/m-p/838854#M50654</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2018-07-05T07:38:11Z</dc:date>
    </item>
  </channel>
</rss>

