English
Language : 

SLAS191A Datasheet, PDF (27/86 Pages) Texas Instruments – Starter Kit Evaluation Kit Manual
In the HyperTerminal , type r0 <ENTER> to modify the program counter of the user program. The program
displays the current content of r0. Next type 0240 <ENTER> to set the start address as defined in
gs_stk1.asm. Exit the modify register mode by pressing the <ESC> key.
Each time the SPACE bar is pressed, the program executes one single step and the program displays the
registers contents. Typing a g followed by <ENTER> causes the program to continue from the current
address stored in the program counter. Pressing the <ESC> key stops the program.
NOTE: Single Step
The single step command should only be executed if the program counter points to an
instruction in the RAM. Otherwise this command acts like a go command.
>@0240
31 40 DE 03 B2 40 80 5A 20 01 F2 42 00 00 C2 43
01 00 C2 43 02 00 C2 43 03 00 FF 3F
q
>downloaded _PC_ _SP_ _SR_
reg 0000 4204 03de 0008 0000 f48c cd85 2ed4 10de
reg 0008 0c42 4068 0000 ffd0 2051 0e10 08ac b8
>r0
=reg 0000 4204 0240
=reg 0001 03de !
reg 000: 0008
>step
>executed _PC_ _SP_ _SR_
reg 0000 0244 03de 0008 0000 f48c cd85 2ed4 10de
reg 0008 0c42 4068 0000 ffd0 2051 0e10 08ac b842
>go..
>user break _PC_ _SP_ _SR_
reg 0000 025a 03de 0008 0000 f48c cd85 2ed4 10de
reg 0008 0c42 4068 0000 ffd0 2051 0e10 08ac b842
>
Figure 1–18. Terminal | execute gs_stk1.txt
Another way to start this program is to write the start address (in this instance 0240h) into memory location
03FEh. Each time the u user command is executed or the reset button is pressed, the start address (in this
instance 0240h) is written to the user program counter. Switch to the word mode by entering a w, and then
enter m3fe and <ENTER>. Now the start address can be entered (in this instance 0240), and press
<ENTER> and <ESC> to exit. Pressing u and then g starts the program.
NOTE: Use of the examples in MSP430 Simulation Environment
If the examples are used in the MSP430 Simulation Environment, the SIM constant (located
at the top of the assembler code) must be set to 1.
1–21