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.

cla.asm变量值



我在用cla.asm模块时,在其它.c文件中定义一个变量A,用A来改变cla.asm中的变量B,初始化也对,我发现无论A怎么改变,B都不随A的值改变,我想问的是,难道去CLA.asm文件中的变量B改变时还需要其它触发源或者寄存器配置吗》?

  • ti官网上运行28035的例程,运行cla.asm。C:\tidcs\c28\DSP2803x\v121\DSP2803x_examples\cla_adc_fir_flash

    我应用的28035的例程,第一步将10赋值给_VoltFilt是对的,这是_VoltFilt等于10,在向下运行时,我设置的A4是200.375,为何_VoltFilt的不更新呢,还一直是10?请看:在Example_2803xClaAdcFir.c中定义:

    #pragma DATA_SECTION(A,          "CpuToCla1MsgRAM");

    float32 A [FILTER_LEN] = {62.5L, -100.25L, 200.375L, -300.25L, 10.0625L};

    在cla.asm中:

    _X4 .set _X+8
    _X3 .set _X+6
    _X2 .set _X+4
    _X1 .set _X+2
    _X0 .set _X+0

    _A4 .set _A+8
    _A3 .set _A+6
    _A2 .set _A+4
    _A1 .set _A+2
    _A0 .set _A+0

    MDEBUGSTOP
    MMOVF32 MR0,#10.6
    MF32TOUI16 MR2, MR0 ; Get back to Uint16 value
    MMOV16 @_VoltFilt, MR2

    MMOV32 MR0,@_X4 ;1 Load MR0 with X4
    MMOV32 MR1,@_A4 ;2 Load MR1 with A4
    MF32TOUI16 MR2, MR1 ;T Get back to Uint16 value
    MMOV16 @_VoltFilt, MR2 ;T
    MNOP ;3 Wait till I8 to read result

  • 根据这条语句float32 A [FILTER_LEN] = {62.5L, -100.25L, 200.375L, -300.25L, 10.0625L}; ,A4应该是10.0625.

  • 谢谢您的支持啊