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.

Question about CLA example from ControlSUITE

Other Parts Discussed in Thread: CONTROLSUITE, TMS320F28035

Hi,

I am studying CLA example from ControlSUITE for TMS320F28035. ----  "cla_adc"

In the Assembly file "CLA.asm" , under Cla1Task2 (line66 to line71) :

   66:       MMOVZ16    MR0,  @_ConversionCount            ;1 Current Conversion
   67:       MMOV16     MAR1, MR0, #_VoltageCLA               ;2 Point to VoltageCLA[ConversionCount]
   68:       MUI16TOF32 MR0,  MR0                                        ;3 Convert count to float32
   69:       MADDF32    MR0,  MR0, #1.0                                 ;4 Add 1 to conversion count
   70:       MCMPF32    MR0,  #NUM_DATA_POINTS.0       ;5 Compare count to max
   71:       MF32TOUI16 MR0,  MR0                                        ;6 Convert count to Uint16

My question is:

How come I could not find any description or examples in the CLA USER GUIDE about the Instruction format that was used in line 67 ?    the format was used in line 69?  and the format was used in line 70?

Is there any other reference from TI that I can use to learn these coding format/ techniques ?

Thank you,

Frank

  • Hi Frank,

    That instructions is not listed in the summary page but it is on page 94 of the user guide (SPRUGE6B). We have it under bug control to get all missing instructions (on the summary page) to be listed on the next revision for the user guide.

    For the rest, they are listed on the summary page:

    Line 69: the inistruction is listed on page 45. Under the desription there is a line: "This instruction can also be written as MADDF32 MRa,MRb,#16FHi." which is the variant used in the example

    Line 70: is listed on page 65

    Please see the operand nomenclature on page 37 for details on how immediate numbers are handled in the operations.

  • Thank you for your help.

    Frank