;------------------------------------------------------------------------- ; MSP430-P1121 - MSP430F1121 PROTOTYPE DEVELOPMENT BOARD ;------------------------------------------------------------------------- ; http://www.olimex.com/dev ; ; Hardware: MSP430-P1121-E ; POWER SUPPLY +9VDC, MCU MSP430F1121 / 32768 Hz crystall ; LED at P1.0 ; ; Date: 14.04.2002 ; ; This software is provided "as is" for evaluation of our MSP430-P1121 ; development board. You are free to use this code in your projects, but ; without warranty of any kind. If you can't understand how and what the ; code does it's better to start by learning the MSP430 datasheets, and ; assembly language, but don't call OLIMEX with questions regarding this ; software. OLIMEX will not teach you how to write assembly language nor ; how to use MSP430 peripherials, there is plenty of datasheets about them. ; ; (C) 2002 OLIMEX Ltd, All rights reserved ;------------------------------------------------------------------------- #include "msp430x11x1.h" ;------------------------------------------- ; PORT definitions ;------------------------------------------- #define LED BIT0,&P1OUT /* LED connected at port P1.0 */ ;------------------------------------------- ; Program constants ;------------------------------------------- #define DLY 50000 /* DELAY constant */ ;-------------------------------------------- ; Register variables ;-------------------------------------------- #define CNTR R15 /* Dallas routines counter */ ;-------------------------------------------- ; Code memory ;-------------------------------------------- org 0F000h ; RESET mov.w #0300h,SP ;initialize stack pointer StopWDT mov.w #WDTPW+WDTHOLD,&WDTCTL ;stop WDT SetupP1 bis.b #001h,&P1DIR ;make P1.0 output ; mainloop xor.b LED ;toggle LED mov.w #050000,CNTR ;delay L1 dec.w CNTR ; jnz L1 ; jmp mainloop ; ; ;-------------------------------------------- ; Interrupt Vectors MSP430F1121 ;-------------------------------------------- rseg INTVEC dw RESET ;0 reserved dw RESET ;1 reserved dw RESET ;2 port 1 Vector dw RESET ;3 port 2 Vector dw RESET ;4 reserved dw RESET ;5 reserved dw RESET ;6 reserved dw RESET ;7 reserved dw RESET ;8 TIMER_A CC1-2 TA Vector dw RESET ;9 TIMER_A CC0 Vector dw RESET ;10 WDT Vector dw RESET ;11 Comparator Vector dw RESET ;12 reserved dw RESET ;13 reserved dw RESET ;14 NMI Vector dw RESET ;15 RESET Vector END