Microchip Technology DM300018 User Manual

Page of 115
Using the dsPIC30F3012
© 2005 Microchip Technology Inc.
DS51558A-page 53
8.4
DEVICE PROGRAMMING
Load the sample application program for the dsPIC30F3012 using this process:
1.
Plug the RJ11 (telephone) cable from the MPLAB ICD 2 into the ICD header (J1). 
Make sure the USB cable from the MPLAB ICD 2 is connected to your PC.
2.
Start MPLAB IDE.
3.
Open the dsPIC30F3012 sample project 
(
File>Open Workspace>[path/dsPIC30F4013 Sample Project]) from 
path/dsPICDEM 2 Development Kit/Example Soft-
ware/30F3012/Demo.mcw
.
4.
Build the sample project in MPLAB IDE (
Project>Build All).
5.
On the dsPICDEM™ 2 board set all positions on switches S3 and S4 to off. Then 
set switch S2 to GP 18. The MPLAB ICD 2 is now connected to the PGC and 
PGD pins on the dsPIC30F3012.
6.
Download the sample application (
Programmer>Program). The Output window 
(Figure 8-2) displays the status as the download occurs and indicates when the 
programming has succeeded.
FIGURE 8-2:
PROGRAMMING THE dsPIC30F3012 DEVICE
7.
Disconnect the MPLAB ICD 2 cable from the ICD header. The program is now 
ready to run (see Section 8.5 “Observing the Sample Application”).
Note:
For detailed information and procedures on using the MPLAB IDE and ICD 
2 refer to Chapter 2 “Getting Started”.