MPLAB
®
ICE User’s Guide
DS51159B-page 50
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.
2.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
0x000A
into the Start box of the dialog to place the break1 break point
at the instruction
movwf PORTB
. Click Add.
Figure 2.14: Break Point Settings Dialog
Note:
To determine the address of an instruction, use the Program Mem-
ory Window (Window>Program Memory).
Содержание MPLAB ICE
Страница 1: ...2001 Microchip Technology Inc DS51159C MPLAB ICE EMULATOR USER S GUIDE M...
Страница 8: ...MPLAB ICE User s Guide DS51159B page viii 2001 Microchip Technology Inc...
Страница 18: ...MPLAB ICE User s Guide DS51159B page 18 2001 Microchip Technology Inc NOTES...
Страница 36: ...MPLAB ICE User s Guide DS51159B page 36 2001 Microchip Technology Inc NOTES...
Страница 58: ...MPLAB ICE User s Guide DS51159B page 58 2001 Microchip Technology Inc NOTES...
Страница 80: ...MPLAB ICE User s Guide DS51159B page 80 2001 Microchip Technology Inc NOTES...
Страница 126: ...MPLAB ICE User s Guide DS51159B page 126 2001 Microchip Technology Inc NOTES...
Страница 129: ...2001 Microchip Technology Inc DS51159B page 129 Verification Figure 7 3 Verify MPLAB ICE Run Mode Tests...
Страница 140: ...MPLAB ICE User s Guide DS51159B page 140 2001 Microchip Technology Inc NOTES...
Страница 158: ...MPLAB ICE User s Guide DS51159B page 158 2001 Microchip Technology Inc NOTES...
Страница 189: ...2001 Microchip Technology Inc DS51159B page 189 Index NOTES...
Страница 190: ...MPLAB ICE User s Guide DS51159B page 190 2001 Microchip Technology Inc NOTES...
Страница 191: ...2001 Microchip Technology Inc DS51159B page 191 Index NOTES...