PICkit™ 2 User’s Guide
DS51553B-page 34
©
2006 Microchip Technology Inc.
4.2.9
PIC16F917 Debug Demo
The PICkit 2 Microcontroller Programmer executes in either Real-Time or Step mode.
Real-Time execution occurs when the PIC16F917, on the 44-Pin Demo Board, is in the
MPLAB IDE Run mode. Step mode execution can be accessed after the processor is
halted.
The following toolbar buttons can be used for quick access to commonly used debug
operations:
4.2.9.1
REAL-TIME MODE
Open the
PIC16F917 Debug Demo.asm
file:
1.
Double click on the
PIC16F917 Debug Demo.asm
file from the Project
Window or select File > Open from the toolbar menu.
2.
Select Debugger > Run, or click the Run button.
3.
Turn the potentiometer (RA0), located on the demo board and observe the LEDs.
If the program was working properly, the LEDs would rotate faster or slower depending
on which direction the potentiometer is turned. However, a bug has been intentionally
placed in the code for debugging demonstration purposes. See the next section
Section 4.2.10 “Debugging the PIC16F917 Debug Demo Code” for debugging
instructions.
4.
Select Debugger > Halt, or click the Halt button to stop the program execution.
5.
Select Debugger > Reset to reset the program.
Debugger Menu
Toolbar Buttons
Run
Halt
Animate
Step Into
Step Over
Step Out
Reset
Summary of Contents for PICkit 2
Page 2: ...2006 Microchip Technology Inc DS51553B PICkitTM 2 Microcontroller Programmer USER S GUIDE...
Page 45: ...PICkit 2 User s Guide DS51553B page 40 2006 Microchip Technology Inc NOTES...
Page 47: ...PICkitTM 2 User s Guide DS51553B page 42 2006 Microchip Technology Inc NOTES...
Page 52: ...2006 Microchip Technology Inc DS51553B page 47 PICkit 2 User s Guide NOTES...