MPLAB ? REAL ICE ? In-Circuit Emulator User’s Guide
If(var > 5)
{
__LOG(ID, var)
}
? Leave __TRACE and __LOG macros in your code for future debugging, if this is
allowable. (For Project>Build Options>Project , Trace tab, select “Disable Trace
Macros“.)
7.3.8
Disabling Trace
To temporarily turn off trace data collection:
1. Select Project>Build Options>Project , Trace tab. Check “Disable Trace Macros”.
Click OK .
2. Rebuild the project ( Project>Build All ).
3. Reprogram the device ( Debugger>Program ).
To disable the full trace capability:
1. Remove all trace and log macros from code.
2. Select Project>Build Options>Project , Trace tab. Uncheck “Enable Trace”. Click
OK .
3. Rebuild the project ( Project>Build All ).
4. Reprogram the device ( Debugger>Program ).
7.3.9
Resource Usage Examples
The following examples are for illustration only. Your results may vary based upon
compiler/assembler version, command line options, MPLAB IDE version, size of data
variable being logged, interrupt state, and device in use. All examples include argu-
ment setup, function call, and return time in their cycle counts.
The PIC18FXXJ MCU examples are compiled/assembled for non-priority interrupt
usage (30 instructions.) For priority interrupt usage, the value is 57, and for no interrupt
usage, the value is 15.
The dsPIC33F DSC examples show 9 instructions specified in the 16-bit library size for
memcpy() .
EXAMPLE 7-1:
PIC18FXXJ DEVICE RUNNING AT 4MHZ (1 MIPS) WITH
ASSEMBLY PROJECT
Native
SPI
I/O Port
Library Size (in instructions)
GPRs Used (in bytes)
__TRACE(id) instruction cycles
__LOG(id, BYTE) instruction cycles
23 + 30
8
80
168
37 + 30
6
54
90
25 + 30
6
42
57
EXAMPLE 7-2:
PIC18FXXJ DEVICE RUNNING AT 40MHZ (10 MIPS) WITH C
PROJECT
Native
SPI
I/O Port
Library Size (in instructions)
GPRs Used (in bytes)
__TRACE(id) instruction cycles
__LOG(id, INT) instruction cycles
75 + 30
10
79
225
87 + 30
8
71
169
112 + 30
8
55
162
DS51616B-page 72
? 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