STM32 Software CRC and Hardware CRC Speed ​​Test

First, the test conditions

Hardware: STM32L432KC

Main frequency: 80MHz

Compiler: IAR 8.20.1

Compilation options: High Speed ​​no size constraints

CRC generator polynomial: 0x782f

Second, the test method

The software generates CRC tables in advance for querying. A buffer is calculated using the software CRC algorithm and the hardware CRC peripheral, respectively, in order to find the synchronization header from the cache. The sync header has a total of 11 bytes and the first two bytes are the CRC of the last nine bytes. The iterative algorithm calculates and compares 11 bytes in sequence, and returns the synchronization header offset after finding the synchronization header. By comparing the time between the two.

Third, the test results

After 24,464 iterations, find the sync header from the cache.

When the compile-time optimization is not enabled, the software algorithm takes 238ms and the hardware CRC uses 220ms.

STM32 Software CRC and Hardware CRC Speed ​​Test

After the compile-time optimization is turned on, the software algorithm takes 159ms and the hardware CRC uses 186ms.

STM32 Software CRC and Hardware CRC Speed ​​Test

Fourth, with the test code

STM32 Software CRC and Hardware CRC Speed ​​Test


STM32 Software CRC and Hardware CRC Speed ​​Test


STM32 Software CRC and Hardware CRC Speed ​​Test


STM32 Software CRC and Hardware CRC Speed ​​Test


Bi Directions Thyristor (Triac)

Bi Directions Thyristor (Triac) is equivalent to the antiparallel connection of two unidirectional thyristors, but only one control pole.
Bidirectional thyristors are made of N-P-N-P-N five-layer semiconductor materials, and three electrodes are also derived from the outside. Its structure is shown in the figure. Bi-directional thyristor volt-ampere characteristic curve Since the forward and reverse characteristics of the bidirectional thyristor are symmetrical, it can be turned on in any direction and is an ideal AC switching device.

Bi Directions Thyristor,Electronic Components Triac,Power Thyristor For Inverter,Silicon Power Bipolar Transistors

YANGZHOU POSITIONING TECH CO., LTD. , https://www.yzpst.com

Posted on