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.

F28032 iq math exectution time



Hello,

I am doing some IQ math experiences with F28032 to see the mathematical performance compared to Panasonic MCU(MN103SFK0K) and the performance result was not good as I expected. Both F28032 and MN103S have the same CPU frequency(60MHz). Below are the test condition

 F28032                                                                       MN103S

1. _IQcos() => about 1us                                         166nS

2. _IQsin() => about 1us                                        166nS

3. _Sqrt() => about 1us                                             188nS

 I found that MN103 supports mathematical instructions which take a couple of machine cycle and IQ math which takes at least 40~44 cycle for sin and cos functions. Below is brief table for the performance

                               F28032                                                                            MN103S

1. _IQcos() => 44 execution cycle                                                            5 machine cycles

2. _IQsin() => 46 execution cycle                                                             5 machine cycles

3. _Sqrt() => 63 execution cycle                                                                3~10 machine cycles

Are there any way to improve the performance of mathematical functions for F28032? I need to use a lot of sin, cos, sqrt functions for solar application and get mathematical functions done within 30us.

Thank you.