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.

TMS320F28035: 测试.ASM文件中代码的执行时间

Part Number: TMS320F28035
Other Parts Discussed in Thread: C2000WARE

我在CLA中使用汇编语言,如在文件Cla.asm文件中使能任务1,如下以代码

_Cla1Task1:

    ;  位置1

    MMOVF32 MR0,#0.0

    ........................

             MMOVF32 MR1,#16.0
             MF32TOUI16R MR0,MR1

             MSTOP
             MNOP
             MNOP
             MNOP

    ; 位置2
_Cla1T1End:

中间的代码省略,如果我想测试一下_Cla1Task1所需要时间,我想在代码位置1将GPIO9置高,在位置2将GPIO9置低,再用示波器测试GPIO9的波形,来获得_Cla1Task1的运行时间;

现在的问题:1、如何用汇编代码控制GPIO9的高低电平变化?

      2、有没有其它的方法来测试_Cla1Task1的运行时间?