Datasheet

122
1.2.11 How to Use Breakpoints
Continue the Getting Started exercise by assembling and downloading the file gs_stk2.asm in the examples
directory as described previously.
This program includes a section for the reset vector, so the program counter is initialized after the download
and each time a user performs a reset.
;****************************************************************************
; Interrupt vectors
;****************************************************************************
.sect Int_Vect, USER_END-1
.word RESET ; POR, ext. Reset, Watchdog
.end
1. Start the program by typing g <ENTER>. The display indicates 0, then 1 on the LCD.
2. Press the <ESC> key to stop the program.
3. Type u <ENTER> to execute a user reset.
4. Set the breakpoint by typing s, and then 0264 (address) <ENTER>. This breakpoint stops the
program prior to changing the display.
5. Type s <ENTER> to stop the program. It stops prior to changing the display. Step through the
program by pressing the space bar showing how the display changes.
6. Clear the breakpoint by typing c, and then 0264 (address) <ENTER>.
Figure 119 shows these commands as they appear on the display.