2001 Microchip Technology Inc.
DS51159B-page 51
Tutorial - PIC16CXXX
You should see break1 enabled at location
0x000A
in the Break Point
Settings dialog and you should see the corresponding instruction line change
color in the source code file window. Click Close on the Break Point Settings
dialog.
Figure 2.15: Break Point break1 Set
Run the program by selecting Debug>Run>Run or by clicking the toolbar
green stoplight icon. The status bar on the bottom of the MPLAB IDE window
will change color, indicating that the program is running. The program will halt
when it reaches the break point.
You may single step to see the value of PORTB in the Watch_1 watch window
change from
H’00’
to
H’FF’
.
2.10 Using Hardware Break Points
In addition to setting software break points on program memory addresses,
hardware break points may be set with more complex conditions.
Reset the program by selecting Debug>System Reset or by clicking on the
toolbar reset processor icon. This will clear all break points.
Go to the main loop of the program and click the right mouse button on the
line
movwf PORTB
. A menu will appear. This time select Complex Trigger
Break Point(s). The line of code will change color. If you don’t like this color,
you may change it by selecting Options>Environment Setup, clicking the
Color tab, and selecting a different Color for Trigger Point Text.
Содержание 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...