MPLAB ? REAL ICE ? In-Circuit Emulator User’s Guide
7.3.3.1
NATIVE TRACE
Native trace can be used with either standard or high-speed communications, with no
additional connections - the information is conveyed via the PGD/PGC/EMUC/EMUD
pins. This two-wire interface uses the trace macro format (see Section 7.3.5 “Setting
If Native trace is used, then real-time data capture triggers cannot be used because of
hardware constraints. However, breakpoints are still available. To use data capture
triggers, you must disable Native trace (see Section 7.3.8 “Disabling Trace” ).
7.3.3.2
I/O PORT TRACE
I/O Port trace can be used with either standard or high-speed communications. Trace
clock and data are provided from a device 8-pin I/O port through the MPLAB REAL ICE
in-circuit emulator logic probe connector.
The I/O port must have all 8 pins available for trace. The port must not be multiplexed
with the currently-used PGC and PGM pins. Therefore, review the data sheet of the
selected device to determine the uninitialized/default port pin states and change them
as necessary.
For hardware connections, see Section 2.5.3 “I/O Port Trace Connections” .
The port interface uses the trace macro format (see Section 7.3.5 “Setting Up Trace
7.3.3.3
SPI TRACE
SPI trace can be used only with high-speed communications. Trace clock and data are
provided through pins 7 (DAT) and 8 (CLK) of the high-speed connection.
For hardware connections, see Section 2.5.2 “SPI Trace Connections (High-Speed
The SPI interface uses the trace macro format (see Section 7.3.5 “Setting Up Trace
7.3.4
Setting Up the Project for Trace
Refer to Chapter 5. “General Setup” for a discussion of how to set up MPLAB IDE
and an MPLAB IDE project to use the MPLAB REAL ICE in-circuit emulator.
To enable trace:
? Select Project>Build Options>Project , Trace tab. (See Section 11.3.12 “Build
? If it is not already selected, click to check “Enable Trace”. For full trace capability,
“Disable Trace Macros” should be unchecked.
? Select the type of trace you want ( Section 7.3.3 “Types of Trace” ).
? Click OK .
7.3.5
Setting Up Trace in MPLAB IDE
To set up MPLAB IDE to use trace for the MPLAB REAL ICE in-circuit emulator, first
set up options on the Settings dialog ( Debugger>Settings .)
? Click the Clock tab. For data capture and trace, the emulator needs to know the
instruction cycle speed. (See Section 11.5.6 “Settings Dialog, Clock Tab” for
more information.)
? Click the Trace tab. The trace buffer can be set to a maximum value specified on
the tab. The trace buffer is circular, so data will wrap if the maximum is exceeded.
Next, enter trace macros in your application code.
DS51616B-page 70
? 2008 Microchip Technology Inc.
相关PDF资料
AC244006 KIT MPLAB REAL ICE TRACE
AC2626M6 PROBE TEMP 6" GENERAL PURP
AC300024 MOTOR STEPPER 2PHASE 8WIRE
AC300030 KIT ACOUSTIC ACCESSORY
ACM-16 CABLE MODULE FR3 16BIT 40-DIP
ACM-2X8 ACTIVE CABLE MODULE DUAL 8 BIT
ACM-8 CABLE MODULE FR3 8BIT 28/32-DIP
ACS9510EVB EVALUATION BOARD FOR ACS9510
相关代理商/技术参数
AC244005-2 功能描述:处理器配件 MPLAB REAL ICE w/ Performace Pak RoHS:否 制造商:Olimex Ltd. 产品:Cable 用于:
AC244006 功能描述:仿真器/模拟器 MPLAB REAL ICE TRACE INTERFACE Brd KIT RoHS:否 制造商:Blackhawk 产品:System Trace Emulators 工具用于评估:C6000, C5000, C2000, OMAP, DAVINCI, SITARA, TMS470, TMS570, ARM 7/9, ARM Cortex A8/R4/M3 用于:XDS560v2
AC244007 制造商:Microchip Technology Inc 功能描述:MPLAB REAL ICE JTAG ADAPTER - Boxed Product (Development Kits) 制造商:Microchip Technology Inc 功能描述:ADAPTER MPLAB REAL ICE JTA 制造商:Microchip Technology Inc 功能描述:ADAPTER, MPLAB, REAL, ICE, JTAG 制造商:Microchip Technology Inc 功能描述:ADAPTER, MPLAB, REAL, ICE, JTAG; Accessory Type:JTAG adaptor Board; For Use With:Microchip PIC32MX devices; SVHC:No SVHC (19-Dec-2012) ;RoHS Compliant: Yes
AC244008 功能描述:处理器配件 MPLAB REAL ICE Power Monitor RoHS:否 制造商:Olimex Ltd. 产品:Cable 用于:
AC244022 功能描述:插座和适配器 Procs Extnsn Pak for PIC24FJ128GA010-ICE RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
AC244022 制造商:Microchip Technology Inc 功能描述:Processor Extension Pak for PI
AC244023 功能描述:插座和适配器 PROCESSOR EXTNSN PAK FOR PIC18F1xK50 RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
AC244024 功能描述:插座和适配器 Processor Ext Pak for PIC18LF14K50 RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x