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.

MSP430 by assembly language

Other Parts Discussed in Thread: MSP430G2231

I am familiar with programming pic microcontrollers with assembly language. But now I have TI Launchpad  kit and CCS . I would like to program MSP430 by assembly. Tell me  where to find good beginner tutorials  for that.

 

  • There are sample projects in C and assembly here:  http://www.ti.com/lit/zip/slac463

    The user guide for the processor should have a section on the instruction set, which is very useful as well.

     

    Good luck

     

  • Sorry, isn't "PIC" and "microcontroller" an oxymoron? It least the 12 and 14 series have been far from being a real controller and programming them was a PIA.

    But to answer the original question: assembly programming depends on teh ssembler you use. So there is no generic tutorial.

    The MSP users guide has a lot of assembly code examples btu these go only as far as the required instructions go. It also contains the complete mnemonics description (instructions et and structure description).

    However, the higher structures (defines, segments, labels, whatever) depend on the assembler you use and are often completely different between two assembelrs even for the same target.

    Both, IAR and CCS, have a section or a separate paper for assembly programming in the compiler manual. MSPGCC uses more or less the standard GNU assembler language (with some minor adjustments for the MSP).

  • I mean I have experience in programming Microchip's (www.microchip.com)  picmicro microcontrollers like pic 16F877A using their assembly language instructions. Most of the msp430 launchpad tutorials used C language. But I like assembly language and I wants follow assembly language beginners tutorials to program MSP430G2231 etc using TI CCS.

  • Nimal Rathnaweera said:
    I mean I have experience in programming Microchip's (www.microchip.com)  picmicro microcontrollers like pic 16F877A using their assembly language

    I assumed htis :) Yet programming a PIC in assembly is, well, 'different' is the most friendly word that comes in mind :)

    Unfortunately, there are no assembly tutorials, and very, very few assembly code at all. However, some of the larger projects contain parts in assembly language (watch out for .s43 files)
    Also, the users guides contain code snippets in assembly. However, no complete programs.

    The MSP opcodes are discussed in detail in the users guides. But as I said, the surrounding assembler syntax (including segment and data definitions) is assembler specific and differs depending on the IDE you use.

  • If you want to use assembly (which is not fashionable). You should try KickStart. It is free and no assembly code size limits. Complete documents are included under the Help Tab.

**Attention** This is a public forum