Other Parts Discussed in Thread: C2000WARE
Tool/software:
please use the attached testcase which can run on 280025 DEMO board directly. CCS11.1 with Compiler V21.6 is used.
It is found that:
if (VAC_rms_fil_DS3 <= Pr_VL1_DS3) consumes 13 system clocks
++VAC_Pr_VL1_cnt_DS3; consumes 12 system clocks
if (VAC_rms_fil_DS3 >= Pr_VH1_DS3) consumes19 system clocks
I tried changing the variable type from float32_t to float, and also tried changing to constant (such as changing to if (VAC_rms_fil_DS3 <= 574.6) ), and the execution time is still the same.
Please advise why the execution of a simple comparison line consumes 13 or 19 system clocks. Thanks!