Microchip Technology DM300018 User Manual

Page of 115
dsPICDEM 2 Development Board User’s Guide
DS51558A-page 20
© 2005 Microchip Technology Inc.
FIGURE 2-7:
CONFIGURATION BITS WINDOW
2.6.2
Debugging the Code
The MPLAB ICD 2 In-Circuit Debugger can be used to run, halt and step the code. A 
breakpoint can be set to halt the program after the code has executed the instruction 
at the breakpoint. The contents of the RAM and registers can be viewed whenever the 
processor has been halted.
The MPLAB ICD 2 In-Circuit Debugger uses the following function keys to access the 
main debugging functions:
<F5>
Halt
<F6>
Reset
<F7>
Single Step
<F9>
Run
In addition, there are more functions available by right clicking on a line of source code. 
These functions include the ability to set simple and advanced breakpoints.
2.7
SUMMARY
This chapter has provided a suggested process for using the dsPICDEM™ 2 
Development Board to jump start your own application. If you have reviewed this 
process, you should be able to:
• Configure the dsPICDEM™ 2 Development Board for the dsPIC30F device you 
select for your application.
• Set up MPLAB IDE to use the MPLAB ICD 2 In-Circuit Debugger.
• Locate the sample application for your dsPIC30F device.
• Program the chip with the MPLAB ICD 2.
• View the code execution in program memory and source code.
• Reset, Run, Halt and Single-Step the code.