User manual

Using the dsPIC30F4011
© 2005 Microchip Technology Inc. DS51558A-page 71
11.4 DEVICE PROGRAMMING
Load the sample application program for the dsPIC30F4011 using this process:
1. Plug the RJ11 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 dsPIC30F4011 sample project (
File>Open Workspace
) from
path\dsPICDEM2 Development Kit\Example Soft-
ware\30F4011\Demo.mcw
4. Build the sample project in MPLAB IDE (
Project>Build All)
.
5. Program the dsPIC30F4011 (
Programmer>Program
). The Output window
(Figure 11-2) displays the status as the download occurs and indicates when the
programming has succeeded.
FIGURE 11-2: PROGRAMMING THE dsPIC30F4011 DEVICE
6. Disconnect the MPLAB ICD 2 cable from the ICD header. The program is now
ready to run (see Section 11.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”.