DS00161 Microchip Technology, DS00161 Datasheet - Page 42
DS00161
Manufacturer Part Number
DS00161
Description
Technical Library CD-ROM
Manufacturer
Microchip Technology
Specifications of DS00161
Tool Type
Manuals
Lead Free Status / RoHS Status
na
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
DS00161
Manufacturer:
MICROCHIP
Quantity:
12 000
ICEPIC™ User’s Guide
DS51103B-page 36
Now you will set a breakpoint in the source code file window. Go to the main
loop of the program and click the right mouse button on the line movwf
PORTB. A menu will appear. Select 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 Break Point Text.
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 breakpoint.
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 breakpoints work with the ICEPIC In-Circuit Emulator.
The breakpoint halts an emulation run after the line of code it is associated
with is executed.
Figure 2.14: Set Breakpoint
2000 Microchip Technology Inc.