Microchip Technology DM300019 Scheda Tecnica

Pagina di 50
Tutorial
© 2006 Microchip Technology Inc.
DS51584B-page 19
2.6
PROGRAMMING THE CHIP
The MPLAB ICD 2 In-Circuit Debugger is used to program and debug the 
dsPIC30F6014A device in-circuit on the dsPICDEM 80-Pin Starter Development 
Board.
Use the procedures in the following section to program the dsPIC30F6014A device.
2.6.1
Set Up The Device Configuration
1. Use the Configure>Configuration Bits menu to display the configuration settings. 
2. Set up the configuration bits, as shown in Figure 2-10. 
The settings that will most likely need to change are:
FIGURE 2-10:
CONFIGURATION SETTINGS
2.6.2
Connect the MPLAB ICD 2 In-Circuit Debugger
1. Connect the MPLAB ICD 2 to the PC with the USB cable (see Figure 2-11).
2. Connect the MPLAB ICD 2 to the dsPICDEM 80-Pin Starter Development Board 
with the short RJ-11 (telephone) cable. 
3. Apply power to the board.
Note: Before proceeding, make sure that the USB driver for the MPLAB ICD 2 has 
been installed on the PC (see the “MPLAB
®
 ICD 2 In-Circuit Debugger 
User’s Guide” (DS51331) for more details regarding the installation of the 
MPLAB ICD 2). 
Oscillator
XT w/PLL 4x
Watchdog Timer
Disabled
CAUTION
Before you apply power to the board, observe these voltage precautions:
If a dsPIC33F device is being used, J5 should be OPEN or OFF to enable 3.3V to the V
DD
 
or supply voltage. Operating a dsPIC33F device at 5.0V will cause a catastrophic failure 
of the device.
If a dsPIC30F device is being used, J5 can be open or closed. You will get 3.3V or 5.0V 
voltage to the V
DD
 pin.