Microchip Technology DV164136 User Manual

Page of 38
Getting Started
© 2008 Microchip Technology Inc.
DS51721B-page 17
2.4.2
Loading the Program
This section describes how to program the PICDEM PIC18 Explorer Demonstration 
Board using the MPLAB
®
 Integrated Development Environment (IDE) and the sample 
Hex code on the compact disc in the PICDEM PIC18 Explorer Demonstration Board’s Kit.
2.4.2.1
REPROGRAMMING WITH THE COMPACT DISC SAMPLE CODE
To program the PIC18F8722:
1.
Launch the MPLAB IDE application and select Configure>Select 
Device>18F8722
.
2.
To start the programmer, select Programmer>Select Programmer> ICD2.
3.
To open the Hex code file, select File>Import>Open and select 
CD/Hex/18F8722/Demo8722.hex
.
4.
Connect the J4 jumper to Main (main controller), as shown in Figure 2-7.
FIGURE 2-7:
J4 JUMPER AND ‘MAIN’ SETTING
5.
Move the S4 switch to PIC MCU, as described in “Using the Board As Is” on 
page 10
.
To program the PIC18F87J11 on the PIM:
1.
Attach the PIM to the demonstration board.
2.
Move the S4 switch to ICE
3.
Launch the MPLAB IDE application and select Configure>Select 
Device>18F87J11
.
4.
To start the programmer, select Programmer>Select Programmer>ICD2.
5.
To open the Hex code file, select File>Import>Open and select 
CD/Hex/18F87J11/Demo87J11.hex
.
6.
Connect the J4 jumper to Main (main controller), as shown in Figure 2-7.
J4 Jumper
Jumper Location
Jumper Setting
USB
J4
Main
Note: