English
Language : 

SLAS191A Datasheet, PDF (79/86 Pages) Texas Instruments – Starter Kit Evaluation Kit Manual
The following example demonstrates how to implement and test the emergency come-back to the monitor
routine:
1. Set the variable DVLP to 0 after the routine has been successfully tested in RAM. The variable
TRIAL indicates the number of interrupt tables that have been burned. The last necessary input
is the start address BEGIN.
2. Insert the address where the program is stored. To find a free section in EPROM, use the m or
the e command.
3. The terminal is switched off and the program enters an endless loop after burning the program
and executing a reset, or after starting it with the go command.
4. To come back to the monitor, press and hold down the demo button and press the button.
;****************************************************************************
; Demo for Emergency Burn-over of already written ID = AA55h
;****************************************************************************
DVKO .set
TRIAL .set
BEGIN .set
1
1
0C000h
; Development = 1, Final = 0
; Progressing trial number )start=1)
; Startaddress of (new) code in EPROM
;––– definition of testpin
pin .set
01h
P0DIR .set
12h
P0IN .set
10h
; testpin is P0.0
; Port 0 direction control register
; Port 0 input register
;––– ddfine working sections
.if DVLP =1
.text 00240h
.else
.text BEGIN
.endif
; code in RAM during development
; code in EPROM at final run
;––– test routine is waiting for low at testpin
start
bic.b
bit.b
jnz
#pin, P0DIR
#pin, P0IN
user_prg
; testpin is input
; test testpin
; jump to user program if testpin = 1
clr
003DEh
br
0FFDCh
; clear ID in RAM (005DEh on MSP430X33x)
; branch indirect to Monitor
;––– insert here the start up of your user program
user_prg
jmp
user_prg
; Dummy endless loop
;––– define reset vector in RAM for development
.sect
“RAM_RES”, 03FEh ; 05FEh on MSP430X33x
6–3