Microchip Technology DM300024 Data Sheet

Page of 92
Using dsPIC33F and PIC24H/24F Devices
©
 2006 Microchip Technology Inc.
DS70099D-page 55
4.6.4
Program the dsPIC33FJ256GP710 Device
1.
From the Debugger menu, select Program. The Output window (Figure 4-13) 
displays the program steps as they occur.
2.
Observe the process in the Output window. When “MPLAB ICD 2 Ready” 
displays, the device is programmed and ready to run.
FIGURE 4-13:
PROGRAMMING THE dsPIC30F6014A DEVICE
3.
Use the Debugger>Reset menu to reset the code, then Debugger>Run to run the 
code. LED1 should start blinking and the LCD display should show the text in 
Figure 4-14.
FIGURE 4-14:
TUTORIAL LCD DISPLAY
4.7
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. 
The most important of these are “Set Breakpoint” and “Run to Cursor”.
DS
PICDEM 1.1 Plus
D
EVELOPMENT
 Board
T
UTORIAL