#include <msp430x42x0.h>
; NAME main
; PUBLIC main
; ORG 0FFFEh
; DC16 main
ORG 08000h
;------------------------------------------------------------------------------
main nop
RESET mov.w #300h,SP ; Initialize stackpointer
StopWDT mov.w #WDTPW+WDTHOLD,&WDTCTL ; Stop WDT
SetupP1 bis.b #001h,&P1DIR ; P1.0 output
;
Mainloop xor.b #001h,&P1OUT ; Toggle P1.0
Wait mov.w #0ffffh,R15 ; Delay to R15
L1 dec.w R15 ; Decrement R15
xor.b #00ffh,0x3FD0
jnz L1 ; Delay over?
jmp Mainloop ; Again
;
;------------------------------------------------------------------------------
; Interrupt Vectors
;------------------------------------------------------------------------------
ORG 0FFFEh ; RESET Vector
DW RESET ;
END