Microchip Technology DM300018 User Manual

Page of 115
dsPICDEM 2 Development Board User’s Guide
DS51558A-page 38
© 2005 Microchip Technology Inc.
FIGURE 5-3:
CONFIGURATION BITS WINDOW
5.6.2
Examining the Code
After the application has been reprogrammed to use the MPLAB ICD 2 as a debugger, 
you can use MPLAB IDE to run, halt and step the program. You can set breakpoints to 
halt the program and examine the actual code at any point. You can also examine the 
contents of the RAM and registers whenever the processor is halted.
Refer to Section 2.3 “Getting Started” for an overview of the sample application. 
Flowcharts illustrate each of these processes:
• Startup and initialization
• Main loop processing
• A/D conversion processing
• External interrupt processing
The 
dsPICDEM 2 Development Kit/Example Software/30F2012
 folder 
contains fully annotated code files that you can examine, compare and copy.
5.7
SUMMARY
This chapter has provided specific instructions for using the dsPICDEM 2 Development 
Board with a dsPIC30F2012 device. If you have reviewed this process, you should be 
able to:
• Configure the dsPICDEM 2 Development Board for the dsPIC30F2012 device.
• Set up MPLAB IDE to use the MPLAB ICD 2 In-Circuit Debugger.
• Locate the sample application for the dsPIC30F2012 device.
• Program the chip with the MPLAB ICD 2.
• Examine the sample application and identify applicable code for your embedded 
solution.