http://ww1.microchip.com/downloads/en/DeviceDoc/MPLAB_RI_Poster_51749a.pdf

Using MPLAB® REAL ICE™
In-Circuit Emulator
➊ Install the Latest Software
Additional Information
Electrical Connections to Target
Install the MPLAB® IDE software onto your PC using the MPLAB IDE CD-ROM or download the software from the MPLAB IDE page of
the Microchip web site (www.microchip.com/MPLAB). Check the latest Release Notes for additional information.
DO NOT run the MPLAB IDE program at this time.
Modular Connector Pin
1
2
3
4
5
6
➋ Configure PC USB Communications
COMPONENT
Oscillator
In-Circuit
MPLAB ®
PC
REAL ICE ™
Standard Connection
at Target
ACTIVE
STATUS
USB
FUNCTION
High-Speed Connection
at Target
J1
RESET
1
Top View
2
of Target
3
Board
4
5
6
7 - DAT*
8 - CLK*
2 4 6
1 3 5
Bottom View
of Target Board
Connect Power and Target Application
Note: See the MPLAB REAL ICE User’s Guide (DS51616) for more
component and setting information.
High-Speed Emulator System – Device with
on-board ICE circuitry
In-Circuit
MPLAB ®
USB
USB
REAL ICE ™
ACTIVE
VDD
REAL ICE ™
J3
J2
FUNCTION
RESET
STATUS
Target Device
or PIM
FUNCTION
RESET
J2 J3
Target Board
Standard Driver
Board
Target Device
or PIM
Target Board
High-Speed
Receiver Board
High-Speed
Driver Board
Power
Target VDD
(tVDD) is used
to power the
Input/Output
drivers in
MPLAB
REAL ICE
emulator
USB
MPLAB
REAL ICE ™
ACTIVE
4.7 kΩ
tVDD
AVDD**
VSS
4.7 kΩ
High-Speed
Header/Receiver Board
REAL ICE ™
J3
J2
ACTIVE
FUNCTION
RESET
Target Application PC Board
Device-ICE
Target Circuit Design Precautions
• Do not use mulitplexing on PGC/PGD –
they are dedicated for communications to
MPLAB REAL ICE.
• Do not use pull-ups on PGC/PGD –
they will divide the voltage levels since
these lines have 4.7 kΩ pull-down
resistors in MPLAB REAL ICE.
• Do not use capacitors on PGC/PGD –
they will prevent fast transitions on data
and clock lines during programming and
debug communications.
• Do not use capacitors on MCLR – they
will prevent fast transitions of VPP.
• Do not use diodes on PGC/PGD – they
will prevent bidirectional communication
between MPLAB REAL ICE and the target
PIC® MCU.
Incorrect
Target VDD (tVDD)
X
VDD
XTAL*
VPP/MCLR
2
1
5
4
3
X
X
PGC
PGD
X
AVDD**
AVSS**
VSS
Target Application PC Board
*Target device must be running with an oscillator for the emulator to function as a debugger.
**If the device has AVDD and AVSS lines, they must be connected for the emulator to operate.
RESET
J2 J3
Optional Trace Connections
Transition Socket
Target Board
AVSS**
MPLAB ®
STATUS
Standard Driver
Board
PGC
PGD
Power
In-Circuit
USB
Device-ICE
XTAL*
VPP/MCLR
High-Speed Emulator System – ICE Device
Processor Pak
Standard
Header
Adapter
STATUS
FUNCTION
2
1
5
4
3
tVDD
Standard Emulator System – ICE Device
In-Circuit
4.7 10 kΩ
Typical
tVDD
VPP
tVDD
tVDD
®
Target VDD (tVDD)
MPLAB ®
ACTIVE
STATUS
Correct
MPLAB REAL ICE
Internal Circuitry (simplified)
Performance Pak
In-Circuit
Target
Application
Device
Standard Emulator System – Device with
on-board ICE circuitry
*Used for optional SPI/UART
trace capability.
SETTING
• OSC bits set properly
• Running
Power
Supplied by target
WDT
Disabled (device dependent)
Code-Protect
Disabled
Table Read Protect Disabled
LVP
Disabled
BOD
VDD > BOD VDD min
JTAG
Disabled
All pins must be connected to
AVDD and AVSS
eliminate noise
PGCx/PGDx
Proper channel selected, if
applicable
Programming
VDD voltage levels meet
programming specs
Target
Application
Device
Connect MPLAB REAL ICE in-circuit emulator to a PC USB
port via a USB cable. Install the drivers as instructed in:
C:\Program Files\Microchip\MPLAB IDE\REAL
ICE\Drivers\ddri.htm.
Recommended Settings
Microcontroller Pin
MCLR/VPP
VDD
Ground
PGD (ICSPDAT)
PGC (ICSPCLK)
Not Used
High-Speed
Driver Board
Transition Socket
SPI Trace
Application
PC Board
Target Board
Device
5
SPI
7 DAT
8 CLK
RESET
FUNCTION
SDO
SCK
High Speed
Interface
Connector
STATUS
In-Circuit
MPLAB ®
➍ Configure MPLAB IDE
ACTIVE
Power
REAL ICE ™
Power
I/O Port Trace
1.
2.
3.
4.
Launch MPLAB IDE.
Find currently-supported devices in the release notes: Help>Release Notes>MPLAB REAL ICE Emulator Release Notes.
Select your device: Configure>Select Device.
Select the MPLAB REAL ICE in-circuit emulator as a debugger (Debugger>Select Tool>REAL ICE) or as a programmer
(Programmer>Select Programmer>REAL ICE).
5. When using the emulator as a debugger, select “Debug” on the toolbar
to reserve program memory and RAM space:
Application
PC
C Board
Board
d
To use the loop-back test board to verify the emulator is
functioning properly:
1. Disconnect the emulator from the target and PC.
2. Plug in the standard driver board.
3. Connect the loop-back test board to the emulator
using the modular cable.
4. Plug the loop-back test board into the emulator’s logic
probe socket, modular cable connector side up.
5. Connect the emulator to the PC.
6. Select the emulator as either a debugger or
programmer in MPLAB IDE.
7. Select Debugger>Settings or Programmer>Settings,
Status tab, and click Run Loopback Test.
7
RESET
FUNCTION
In-Circuit
Device
5
PORTx
Probe
Connector
Driver Board Slot
Emulator
Pod
STATUS
ACTIVE
MPLAB ®
REAL ICE ™
Interface
Connector
Loop-Back Test
PIC32MX Instruction Trace
Debug/Programmer
Interface
Logic Probe Connector
Standard Driver Board
Modular Cable
Loop-Back Test Board
© 2008 Microchip Technology Inc., 7/08 DS51749A
RESET
PIC32
Reserved Resources
Trace Cable
FUNCTION
STATUS
ACTIVE
MPLAB ®
In-Circuit
www.microchip.com
The Microchip name and logo, the Microchip logo, MPLAB and PIC are registered trademarks of
Microchip Technology Incorporated in the U.S.A. and other countries. The MPLAB Certified logo
and ICSP are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
© 2008 Microchip Technology Incorporated. Printed in the U.S.A. All Rights Reserved. 7/08
REAL ICE ™
TM
PIM
Trace
Adapter
Logic probe connector
Trace Port
Target Board
For information on reserved resouces used by the
emulator, see the MPLAB REAL ICE on-line help.