Microchip Technology AC244006 User Manual

Page of 72
MPLAB
®
 REAL ICE
IN-CIRCUIT EMULATOR
© 2006 Microchip Technology Inc.
 
DS51616A-page 27
Chapter 5.  Using the Emulator as a Debugger
5.1
INTRODUCTION
How to use the MPLAB REAL ICE in-circuit emulator as a debugger is discussed.
• Debugger Overview
• Breakpoints
• Triggers
• Trace
• Debugging Functions
• Debugging Dialogs/WIndows
5.2
DEBUGGER OVERVIEW
Select Debugger>Select Tool>MPLAB REAL ICE to choose the MPLAB REAL ICE 
in-circuit emulator as the debug tool. The Debugger menu and MPLAB IDE toolbar will 
change to display debug options once the tool is selected. Also, the Output window will 
open and messages concerning ICE status and communications will be displayed on 
the MPLAB REAL ICE tab.
Select Debugger>Settings to open the Settings dialog and set up options as needed.
5.3
BREAKPOINTS
Select Debugger>Breakpoints to open the Breakpoints dialog and set up multiple 
breakpoints and breakpoint conditions, or right click on a line of code to set up an 
individual breakpoint.
Breakpoints and triggers use the same resources. Therefore, the available number of 
breakpoints is actually the available number of combined breakpoints/triggers.
SeSection 5.7.1 “Breakpoints Dialog” for more information.
5.4
TRIGGERS
Select Debugger>Triggers to open the Triggers dialog to set up:
• Real-time data capture triggers. Use real-time data capture for variables in 
MPLAB IDE windows to see real-time data updates of values instead of updates 
on halt.
• External triggers. Use external triggers to set up hardware triggers using the logic 
probe port.
Breakpoints and data capture triggers use the same resources. Therefore, the avail-
able number of breakpoints is actually the available number of combined 
breakpoints/triggers.
Note: There is a 60-instruction-cycle delay between data captures.