Hi,
Where i can get the asm instructions list which is used for msp430g2533 IAR WORKBENCH?
If i used any .s files in project i am geting like bad instruction, invalid syntax.
Thanks,
Akila.
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.
Hi,
Where i can get the asm instructions list which is used for msp430g2533 IAR WORKBENCH?
If i used any .s files in project i am geting like bad instruction, invalid syntax.
Thanks,
Akila.
Additionally you should look for IAR's documentation for their assembler; the TI equivalent is the MSP430 Assembly Language Tools v 4.4 User's Guide.
That will explain tool-specific details like assembler directives and statement format which are not covered in slau144.
Have you even tried the examples?
Create New Project... > asm >asm
paste over the "default" code with one of the examples from: http://www.ti.com/lit/zip/slac485
Like this one:
include <msp430.h> ;------------------------------------------------------------------------------- ORG 0F800h ; Program Reset ;------------------------------------------------------------------------------- RESET mov.w #0280h,SP ; Initialize stackpointer SetupWDT mov.w #WDT_MDLY_32,&WDTCTL ; WDT ~30ms interval timer bis.b #WDTIE,&IE1 ; Enable WDT interrupt SetupP1 bis.b #001h,&P1DIR ; P1.0 output ; Mainloop bis.w #CPUOFF+GIE,SR ; CPU off, enable interrupts nop ; Required only for debugger ; ;------------------------------------------------------------------------------- WDT_ISR; Toggle P1.0 ;------------------------------------------------------------------------------- xor.b #001h,&P1OUT ; Toggle P1.0 reti ; ; ;------------------------------------------------------------------------------- ; Interrupt Vectors ;------------------------------------------------------------------------------- ORG 0FFFEh ; MSP430 RESET Vector DW RESET ; ORG 0FFF4h ; WDT Vector DW WDT_ISR ; END
**Attention** This is a public forum