This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LP-MSPM0G3507: What's the difference between these 2 example code in MathACL configuration to make the time for calculation different?

Part Number: LP-MSPM0G3507
Other Parts Discussed in Thread: MSPM0G3507

Tool/software:

Hi Team

I modify the example in M0 SDK to test the MATHACL, there are 2 example i used with the same code for div operation, the time consumption are quite differen. Could you help to check what's the configuration difference between these 2 and how to make sure the MATHACL is enable and work properly?

iqmath_mathacl_ops_test_LP_MSPM0G3507_nortos_ticlang.zip

Time used for DIV: 1.6us

iqmath_rts_ops_test_LP_MSPM0G3507_nortos_ticlang.zip

Time used for DIV: 22us

Thanks a lot 

Matthew Chen

  • Hi Mathew, looks like the difference is in the IQ library you are choosing when running the code. In one you have the  MATHACL selected and the other you have RTS. MATHACL utilizes hardware acceleration, and is generally designed to provide faster execution speeds for supported mathematical operations compared to the software-based RTS version. Hope this helps!