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.

Need to compile ASM PROGRAM

Other Parts Discussed in Thread: TMS320F2812, CONTROLSUITE

HI,

     am using tms320f2812 with xds100 usb version 1 emulator., am doing some projects in that board,. successfully i have completed the c programming using Ti header file. now i want to do some sample assembly programing in ccs3.3. can any one direct me to the correct path for study matreial or suggest some thing.............

Thiyagarajan

  • Note that you don't Compile assembly source code - a Compiler is the tool for translating High-Level Language (HLL) source code, such as 'C'.

    The tool you require is the Assembler.

    This might help you locate the appropriate section of the CCS documentation...

  • HI ANDY,

            ya i know that, now i simply done addition program in simulator ccs, it's worked. now i have to check in emulator ccs. what are the things we have to intialize before entring our logic in program.

  • Thiyagarajan,

    I would recommend considering whether or not your code needs to be in assembly or not.  For example, in many motor applications, assembly is often not required because the C2000 core runs instructions quite efficiently.  However, you will need to determine whether C or assembly makes sense based on your project's specific needs.

    ---

    For assembly reference guides,  I would recommend looking at the C28x instruction set guide.  (http://www.ti.com/lit/spru430)   This gives an in-depth look at the assembly instructions.

    If you'd prefer to look at a reference project, I would recommend looking at some source from the "digital power"-type projects available in controlSUITE (such as the TMDSHVRESLLCKIT).  Many of these have an assembly-based ISR (because often digital-power loops run at a very fast rate (>100kHz) and therefore are often required to be optimized).  Note that in many of these projects we use assembly-based C2000 digital power library.


    Thank you,
    Brett



  • hi brett,

      now i tried some basic assembly programs, with the help of that instruction set datasheet . i want some examples., in control suite my processor is un availble,.

  • Brett Larimore said:
    assembly is often not required because the C2000 core runs instructions quite efficiently. 

    The Core neither knows nor cares whether the instructions came from Assembly source, or 'C' source, or were hand-coded in hex!

    The question is how effeciently the Compiler generates code from the 'C' source.

    However, compilers these days usually are pretty good - it takes a highly skilled and experienced Assembly programmer to outsmart a modern optimising compiler!

    Thus I agree that one should think very carefully about whether one will actually gain any benefit from writing Assembly...

  • Andy,

    Yes, you're correct Andy.

    Brett Larimore said:
    assembly is often not required because the C2000 core runs instructions quite efficiently.

    I should have said:
    I would recommend considering whether or not your code needs to be in assembly or not.  For example, in many motor applications, assembly is often not required because the C2000 compiler generates assembly code quite efficiently.  However, you will need to determine whether C or assembly makes sense based on your project's specific needs.


    Thank you,
    Brett