Using dsPIC30F Devices
©
2006 Microchip Technology Inc.
DS70099D-page 25
2.6.4
Program the dsPIC30F6014A Device
1.
From the Debugger menu, select Program. The Output window (Figure 2-14)
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 2-14:
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 2-15.
FIGURE 2-15:
TUTORIAL LCD DISPLAY
2.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
PIC30F 16-
BIT
D
IGITAL
Si
GNAL
C
ONTROLLER
Содержание dsPICDEM 1.1 Plus
Страница 1: ...2006 Microchip Technology Inc DS70099D dsPICDEM 1 1 Plus Development Board User s Guide...
Страница 12: ...dsPICDEM 1 1 Plus Development Board User s Guide DS70099D page 8 2006 Microchip Technology Inc NOTES...
Страница 64: ...dsPICDEM 1 1 Plus Development Board User s Guide DS70099D page 60 2006 Microchip Technology Inc NOTES...
Страница 78: ...dsPICDEM 1 1 Plus Development Board User s Guide DS70099D page 74 2006 Microchip Technology Inc NOTES...
Страница 88: ...dsPICDEM 1 1 Plus Development Board User s Guide DS70099D page 84 2006 Microchip Technology Inc NOTES...
Страница 91: ...Index 2006 Microchip Technology Inc DS70099D page 87 NOTES...