English
Language : 

SLAS191A Datasheet, PDF (20/86 Pages) Texas Instruments – Starter Kit Evaluation Kit Manual
;****************************************************************************
;Getting Started 1 Demo Program
(C) TEXAS INSTRUMENTS on 2/96
;****************************************************************************
SIM
RAM_orig
SP_orig
.set 0
.set 00240h
.set 003DEh
; 1 = Simulator
; 0 = STK/EVK
; Free Memory startadress
; stackpointer
;––– Control register definitions
IE1
IE2
IFG1
IFG2
ME1
ME2
.equ 0h
.equ 01h
.equ 02h
.equ 03h
.equ 04h
.equ 05h
WDTCTL
WDTHold
WDT_wrkey
.equ
.equ
.equ
0120h
80h
05A00h
GIE
.equ 08h
;****************************************************************************
;Reset : Initialize processor
;****************************************************************************
.sect
RESET
MOV
MOV
“MAIN” ,RAM_orig
#SP_orig,SP
#(WDTHold+WDT_wrkey), &WDTCL
; initialize stackpointer
; Stop Watchdog Timer
;––– Clear
Special Function Registers
MOV.B #08h, IE1
CLR.B IE2
CLR.B IFG1
CLR.B IFG2
; ! Monitor !
JMP
File gs_stk1.asm
$
; Endless Loop
Figure 1–11. Getting Started Demo Program
1–14