MPLAB
®
ICE User’s Guide
DS51159B-page 72
2001 Microchip Technology Inc.
Single step by selecting Debug>Run>Step, by pressing <F7> or by clicking
the toolbar single step icon. You should now see that the value of PORTB in
the Watch_1 watch window has changed from
H’00’
to
H’FF’
and should
be a different color.
This demonstrates how software break points work with MPLAB ICE. The
break point halts an emulation run before the line of code it is associated with
is executed. By single stepping once, the code is executed and displayed in
the watch window.
You may also set a temporary break point by selecting Run to Here instead of
Software Break Point(s) from the right mouse button menu.
3.9
Using Named Software Break Points
MPLAB allows up to 16 named software break points. These break points can
be selectively enabled and disabled. Break points set in this manner are
retained with the project. Right mouse button menu break points are not.
Reset the program by selecting Debug>System Reset or by clicking on the
toolbar reset processor icon. This will clear all break points.
Open the Break Point Settings dialog by selecting Debug>Break Settings.
Enter
0x0026
into the Start box of the dialog to place the break1 break point
at the instruction
movwf PORTB
. Click Add.
Figure 3.14: Break Point Settings Dialog
Note:
To determine the address of an instruction, use the Program Mem-
ory Window (Window>Program Memory).
Summary of Contents for MPLAB ICE
Page 1: ...2001 Microchip Technology Inc DS51159C MPLAB ICE EMULATOR USER S GUIDE M...
Page 8: ...MPLAB ICE User s Guide DS51159B page viii 2001 Microchip Technology Inc...
Page 18: ...MPLAB ICE User s Guide DS51159B page 18 2001 Microchip Technology Inc NOTES...
Page 36: ...MPLAB ICE User s Guide DS51159B page 36 2001 Microchip Technology Inc NOTES...
Page 58: ...MPLAB ICE User s Guide DS51159B page 58 2001 Microchip Technology Inc NOTES...
Page 80: ...MPLAB ICE User s Guide DS51159B page 80 2001 Microchip Technology Inc NOTES...
Page 126: ...MPLAB ICE User s Guide DS51159B page 126 2001 Microchip Technology Inc NOTES...
Page 140: ...MPLAB ICE User s Guide DS51159B page 140 2001 Microchip Technology Inc NOTES...
Page 158: ...MPLAB ICE User s Guide DS51159B page 158 2001 Microchip Technology Inc NOTES...
Page 189: ...2001 Microchip Technology Inc DS51159B page 189 Index NOTES...
Page 190: ...MPLAB ICE User s Guide DS51159B page 190 2001 Microchip Technology Inc NOTES...
Page 191: ...2001 Microchip Technology Inc DS51159B page 191 Index NOTES...