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.

Constants in CLA (TMS320F28035)

Hi Guis,

I want to use constants in the CLA for computation.

Therefore I use the "cla_adc_fir" example. In this I wrote in the CLAShared.h header

#define ak1        1.4142        // 2*cos(2*pi*1/8)

 

and want to use it in the CLA like

MMOV32 MR0, #ak1

(yes I defined the header in the CLA document)

but that doesn't work. Can anybody help me?

 

Thanks

  • Hi Daniel,

    You could use the MMOVF32 instruction instead.

    _ak1 .equ 1.4142

    MMOVF32 MR0,#_ak1

     

     

  • Thanks for your answer, but if I want to use this command I get the following errormessage:

    Invalid mnemonic specification       _ak1 .equ 1.4142

    and the command MMOVF32 is not identifyed by the ccs4 compiler.

    Is there an other option?

  • If the cla0 support option is turned on in the Runtime Model Options the compiler should recognize the MMOVF32 mnemonic. This is  a snippet from code that I had written.

     

    _PI     .equ  3.1412
    _HP     .equ  0.707

           .sect        "Cla1Prog"
    _Cla1Prog_asm_Start
           .align       2
                 
    _Cla1Task1:
       MDEBUGSTOP
       MNOP
       MMOVF32 MR0,#_PI
       MMOVF32 MR1,#_HP