
dsPICDEM 2 Development Board User’s Guide
FIGURE 8-3:
CONFIGURATION BITS WINDOW
8.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/30F3012 folder con-
tains fully annotated code files that you can examine, compare and copy.
8.7
SUMMARY
This chapter has provided specific instructions for using the dsPICDEM 2 Development
Board with a dsPIC30F3012 device. If you have reviewed this process, you should be
able to:
DS51558A-page 56
?
?
?
?
?
Configure the dsPICDEM 2 Development Board for the dsPIC30F3012 device.
Set up MPLAB IDE to use the MPLAB ICD 2 In-Circuit Debugger.
Locate the sample application for the dsPIC30F3012 device.
Program the chip with the MPLAB ICD 2.
Examine the sample application and identify applicable code for your embedded
solution.
? 2005 Microchip Technology Inc.