Page 2
Endurance, UNI/O, WiperLock and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies.
• Customer Support DOCUMENT LAYOUT This document describes how to use the MPLAB REAL ICE in-circuit emulator as a development tool to emulate and debug firmware on a target board, as well as how to program devices. The document is organized as follows: •...
Readme for MPLAB REAL ICE In-Circuit Emulator For the latest information on using the MPLAB REAL ICE in-circuit emulator, read the “Readme for MPLAB REAL ICE Emulator.txt” file (an ASCII text file) in the Readmes subdirectory of the MPLAB IDE installation directory.
Page 8
MPLIB™ and MPLAB LIB30 object librarians. • Emulators – The latest information on Microchip in-circuit emulators.This includes the MPLAB REAL ICE in-circuit emulator, MPLAB ICE 2000 and MPLAB ICE 4000 emulators. • In-Circuit Debuggers – The latest information on the Microchip in-circuit debugger, MPLAB ICD 2.
• How the MPLAB REAL ICE In-Circuit Emulator Helps You • MPLAB REAL ICE In-Circuit Emulator Kit Components MPLAB REAL ICE IN-CIRCUIT EMULATOR DEFINED MPLAB REAL ICE in-circuit emulator is an in-circuit emulator that is controlled by a PC ® running MPLAB IDE software on a Windows platform.
In-Circuit Emulator User’s Guide ® ™ MPLAB REAL ICE IN-CIRCUIT EMULATOR KIT COMPONENTS The components of the MPLAB REAL ICE in-circuit emulator system kit are listed below. 1. MPLAB IDE Quick Start Guide (DS51281) 2. CD-ROM with MPLAB IDE software and on-line documentation 3.
MPLAB REAL ICE IN-CIRCUIT EMULATOR VS. MPLAB ICD 2 DEBUGGER The MPLAB REAL ICE in-circuit emulator system is similar to the MPLAB ICD 2 in-circuit debugger system, but surpasses it in speed and functionality. Even with standard communication, the MPLAB REAL ICE in-circuit emulator is faster than the MPLAB ICD 2.
™ SYSTEM CONFIGURATIONS The MPLAB REAL ICE in-circuit emulator system consists of these basic items: • Emulator pod with indicator lights, push buttons and a logic probe connector • USB cable to connect a PC to the emulator pod and power the pod •...
2.5.1 Standard Communications Target Connection Using the standard driver board, the MPLAB REAL ICE in-circuit emulator is connected to the target device with the modular interface (six-conductor) cable. The pin numbering for the connector is shown from the bottom of the target PC board in Figure 2-6.
Page 18
2.5.3 Target Connection Circuitry Figure 2-8 shows the interconnections of the MPLAB REAL ICE in-circuit emulator to the connector on the target board. The diagram also shows the wiring from the connector to a device on the target PC board. A pull-up resistor (usually around 10 kΩ)
Page 19
The interconnection is very simple; any problems experienced are often caused by other connections or components on these critical lines that interfere with the operation of the MPLAB REAL ICE in-circuit emulator system, as discussed in the next section. 2.5.4...
Operation DEBUG MODE There are two steps to using the MPLAB REAL ICE in-circuit emulator system as a debugger. The first requires that an application be programmed into the target device. The second uses the internal in-circuit debug hardware of the target Flash device to run and test the application program.
Page 22
• The target device is held in Reset by keeping the V /MCLR line low. 2.7.2 Debug Mode Details Figure 2-13 illustrates the MPLAB REAL ICE in-circuit emulator system when it is ready for debugging. ® FIGURE 2-13: MPLAB REAL ICE™...
PROGRAM MODE When using the Programmer>Program selection to program a device, MPLAB IDE will disable the in-circuit debug registers so the MPLAB REAL ICE in-circuit emulator will program only the target application code and the Configuration bits (and EEPROM data, if available and selected) into the target device. The debug executive will not be loaded.
In-Circuit Emulator User’s Guide ® ™ RESOURCES USED BY THE MPLAB REAL ICE IN-CIRCUIT EMULATOR The MPLAB REAL ICE in-circuit emulator may use on-chip resources when debugging, depending on the device. 2.9.1 dsPIC DSC/PIC24 Devices The emulator device (Device-ICE) and header board may be used with the emulator for debugging functions without loss of pins.
MPLAB IDE v7.43 or greater is required for MPLAB REAL ICE in-circuit emulator functionality. INSTALLING THE USB DEVICE DRIVERS MPLAB REAL ICE in-circuit emulator USB device drivers must be installed before the emulator can use USB communications. Follow the html instructions found at the location below to install the drivers: MPLAB IDE installation directory\REAL ICE\Drivers\ddri.htm...
The logic probes may be connected into the logic probe connector on the emulator pod. These probes will allow halting the MPLAB REAL ICE in-circuit emulator by external triggers, and will provide output triggers to synchronize external equipment such as oscilloscopes and logic analyzers.
® ™ IN-CIRCUIT EMULATOR Chapter 4. General Setup INTRODUCTION How to get started using the MPLAB REAL ICE in-circuit emulator is discussed. • Starting the MPLAB IDE Software • Creating a Project • Viewing the Project • Building the Project •...
Program Memory Tab This tab of the Programmer dialog allows you to set up debug/programming options. • Allow MPLAB REAL ICE to select memories and ranges – the emulator uses your selected device and default settings to determine what to program.
REAL ICE ® ™ IN-CIRCUIT EMULATOR Chapter 5. Using the Emulator as a Debugger INTRODUCTION How to use the MPLAB REAL ICE in-circuit emulator as a debugger is discussed. • Debugger Overview • Breakpoints • Triggers • Trace • Debugging Functions •...
I/O Port trace can be used with either standard or high-speed communications. Trace clock and data are provided from a device I/O port through the MPLAB REAL ICE in-cir- cuit emulator logic probe connector. For hardware connections, see Section 2.5.6 “I/O Port Trace Connections”.
• Select Project>Build Options>Project, Trace tab. Select “Off” for Transport. Click DEBUGGING FUNCTIONS When you select the MPLAB REAL ICE in-circuit emulator from the Debugger menu, debug items will be added to the following MPLAB IDE functions: • Debugger Menu •...
Set the Program Counter (PC) to the cursor location. 5.6.3 Toolbars/Status Bar When the MPLAB REAL ICE in-circuit emulator is selected as a debugger, these toolbars are displayed in MPLAB IDE: • Basic debug toolbar (Run, Halt, Animate, Step Into, Step Over, Step Out, Reset).
™ IN-CIRCUIT EMULATOR Chapter 6. Using the Emulator as a Programmer INTRODUCTION How to use the MPLAB REAL ICE in-circuit emulator as a programmer is discussed. • Programmer Overview • Programming Functions PROGRAMMER OVERVIEW Select Programmer>Select Programmer>MPLAB REAL ICE to choose the MPLAB REAL ICE in-circuit emulator as the programmer tool.
Page 44
® ™ 6.3.2 Toolbars/Status Bar When the MPLAB REAL ICE in-circuit emulator is selected as a programmer, these toolbars are displayed in MPLAB IDE: • Basic program toolbar (Blank Check All, Read, Program, Verify, Erase Flash Device). The selected programmer (MPLAB REAL ICE), as well as other programming information, is displayed in the status bar on the bottom of the MPLAB IDE desktop.
Date: August 2006 Important Information Concerning the Use of the MPLAB REAL ICE In-Circuit Emulator Due to the special nature of the MPLAB REAL ICE in-circuit emulator, the user is advised that it can generate higher than normal levels of electromagnetic radiation which can interfere with the operation of all kinds of radio and other equipment.
™ USB PORT/POWER The MPLAB REAL ICE in-circuit emulator is connected to the host PC via a Universal Serial Bus (USB) port, version 2.0 compliant. The USB connector is located on the back of the pod. A USB port on the host PC is required.
The actual power comes from the MPLAB REAL ICE in-circuit emulation system as the V sense line is used as a reference only to track the target voltage. The V connection is isolated with an optical switch.
3. Connect the self-test board to the emulator using the modular cable. 4. Connect the emulator to the PC. 5. Select the MPLAB REAL ICE in-circuit emulator as either a debugger or programmer in MPLAB IDE. 6. MPLAB IDE will automatically detect and run the complete self test and give you a status (pass/fail).
Page 61
The entire program memory is mapped externally. Mnemonics Text instructions that can be translated directly into machine code. Also referred to as opcodes. MPASM™ Assembler Microchip Technology’s relocatable macro assembler for PICmicro microcontroller ® devices, KeeLoq devices and Microchip memory devices. MPLAB ASM30 Microchip’s relocatable macro assembler for dsPIC30F digital signal controller devices.
Need help?
Do you have a question about the MPLAB REAL ICE and is the answer not in the manual?
Questions and answers