User manual

MPLAB
®
REAL ICE
In-Circuit Emulator User’s Guide
DS51616B-page 44 © 2008 Microchip Technology Inc.
1. Select Debugger>Breakpoints to open the Breakpoints dialog. The breakpoint
set in the previous section will be displayed in this dialog. Click the Add Break-
point button to add another breakpoint.
2. On the Program Memory tab of the Set Breakpoint dialog, enter “29E“ as the
hex Address and click OK.
FIGURE 4-14: SET BREAKPOINTS DIALOG
The additional breakpoint will appear below the previous breakpoint in the Break-
points 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 4-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.