Professional Documents
Culture Documents
➋ Configure PC Communications
For RS-232 For USB Additional Information
1. Connect MPLAB ICD 2 to a PC COM port via an RS-232 IMPORTANT: Do not allow Windows® OS to pick a USB
cable. driver. You must follow the installation instructions in the
following file for proper driver installation: C:\Program MPLAB ICD 2 RJ-12 Jack Pinout Guidelines
MP
Files\ Microchip\MPLAB IDE\ICD2\Drivers\ • Oscillator – must be operational for MPLAB ICD 2 debug
PC
LA
R
WE R
PO RRO SY
E
Pin Signal operations.
BU
B
1 2 3 4 5 6 PGC 2 PGC and PGD are connected to MPLAB ICD 2's VDD when
RS-232 1. Connect MPLAB ICD 2 to a PC USB port via a USB cable. PGD 3 MPLAB ICD 2 is powering the target (less than 200 mA,
Ground 4
5V operation only). When the target has its own power
MP
VDD 5
supply, the target VDD is connected to these buffers. This
2. Select the COM port to set up for communication, i.e.,
PC
LA
R
WE R
PO RRO SY
MCLR/VPP 6
E
BU
B
Control Panel>System>Hardware>Device Manager>Ports>
ICD
voltage operation.
COMx, (where x = 1, 2, 3, etc.), right-click on the desired
2
• WDT – Disable the Watchdog Timer while debugging.
COM port, and select Properties. USB • Code Protect – Disable all code protection while
3. Click the Port Settings tab and set "Flow Control" to
Electrical Connections to Target debugging.
"Hardware". 2. Follow the instructions in ezicd2.htm mentioned above • Table Read Protect – Disable all table read protection
while debugging.
4. Click the Advanced button. In the Advanced Settings dialog, to install the drivers. MPLAB ICD 2 Target VDD (tVDD)
• Reserved Resources – Avoid reserved program memory
turn off (uncheck) "Use FIFO buffers". Internal Circuitry (simplified) VDD and file registers used by the debugger. See Reserved
10 kΩ XTAL* Resources section below.
+12V
tVDD VPP/MCLR • LVP – Do not enable Low Voltage Programming.
tVDD +5V 2 • PLL – Switching to PLL oscillator requires power down of
PICmicro MCU
Target VDD 1 target.
Application
(tVDD) is used 5
Target
Input/Output 3
drivers in proper power and ground.
Target Powered from Power Supply MPLAB ICD 2 • Ensure that configuration bits are correctly programmed,
Target Powered from MPLAB ICD 2 Programming with the Universal AVDD**
especially for the oscillator.
NOTE: Always apply power to MPLAB ICD 2 before tVDD
(<200 mA, 5V only to Target) Programming Module (AC162049) VSS AVSS**
applying power to your target applications.
tVDD 4.7 kΩ
MP
MP
LA
LA
R R R
WE R WE R WE R
PO RRO SY PO RRO SY PO RRO SY
E BU E BU E BU
B
ICD
ICD
MP
MP
LA
LA
R R R
WE R WE R WE R
X
PO RRO SY PO RRO SY PO RRO SY
E E E
5
BU BU BU
B
ICD
ICD