User manual
Tutorial
© 2008 Microchip Technology Inc. DS51766A-page 43
The additional breakpoint will appear below the previous breakpoint in the
Breakpoints dialog and also as a breakpoint symbol next to the following line of
code:
PORTA = counter; //display on port LEDs
The breakpoint symbol is yellow in this case because it was set based on an
address.
FIGURE 5-15: TWO BREAKPOINTS
3. Run the program to see it halt at the first breakpoint. The values in the Watch win-
dow will not change. Then run again to see it stop at the second breakpoint. (The
program may skid past this breakpoint.) Now the values in the Watch window will
change.
5.11.4 Using the Stopwatch with Breakpoints
To determine the time between the breakpoints, use the Stopwatch.
1. Click Stopwatch (on the Breakpoints dialog) to open the Stopwatch dialog.
FIGURE 5-16: STOPWATCH DIALOG