Microchip Technology MPLAB ICD 3 User Manual page 47

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

Advertisement

5.11.2
To set a single breakpoint:
1. Select Debugger>Reset>Processor Reset (or click the Reset toolbar button) to
reset the example program.
2. Highlight or place the cursor on the following line of code from counter.c:
counter++;
3. Double click on the line, or right click on the line and then select Set Breakpoint
from the shortcut menu. This line is now marked as a breakpoint (B in red stop
sign) as shown in Figure 5-11.
FIGURE 5-11:
4. Select Debugger>Run (or click the Run toolbar button) to run the program once
again in Real-Time mode. The program will halt at the line marked by the
breakpoint, but now there will be a green arrow over the breakpoint symbol.
FIGURE 5-12:
© 2008 Microchip Technology Inc.
Setting a Single Hardware Breakpoint
//increment counter
SET BREAKPOINT
PROGRAM HALTED
Tutorial
DS51766A-page 41

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