Microchip Technology MPLAB ICD 3 User Manual page 48

In-circuit debugger
Hide thumbs Also See for MPLAB ICD 3:
Table of Contents

Advertisement

®
MPLAB
ICD 3 In-Circuit Debugger User's Guide
5. Open a new Watch window to watch the counter variable change value as the
program executes. Select View>Watch. The Watch dialog opens with the Watch
1 tab selected. Select "counter" from the list next to Add Symbol, and then click
the button. counter is added to the Watch window. Select "PORTA" from the list
next to Add SFR, and then click the button. PORTA is added to the Watch
window. The selected symbols should now be visible in the Watch window as
shown in Figure 5-13.
FIGURE 5-13:
6. Select Debugger>Run (or click the Run toolbar button) to run the program once
again. The program will halt at the breakpoint and you will notice that the value
of both variables has incremented by 1.
7. Run again as desired to see the values increase. When done, use
Debugger>Reset>Processor Reset (or click the Reset toolbar button) to reset
the processor.
5.11.3
To set multiple breakpoints, either set numerous single breakpoints as specified in the
previous section, or use the Breakpoints dialog (see Section 9.3.1 "Breakpoints
Dialog"). The Breakpoints dialog also allows you to control breakpoint interaction.
Note:
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
Breakpoint button to add another breakpoint.
2. On the Program Memory tab of the Set Breakpoint dialog, enter "2e6" as the hex
Address and click OK.
FIGURE 5-14:
DS51766A-page 42
WATCH WINDOW
Setting Multiple Hardware Breakpoints
If you exceed the maximum allowed number of breakpoints for your device,
MPLAB IDE will warn you.
SET BREAKPOINTS DIALOG
© 2008 Microchip Technology Inc.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MPLAB ICD 3 and is the answer not in the manual?

Table of Contents