Datasheet

Emulator User’s Guide for MPLAB X IDE
DS52085A-page 60 2013 Microchip Technology Inc.
6.3.7 Disabling Trace
To temporarily turn off trace data collection:
1. Select File>Project Properties
dialog, Categories: REAL ICE, Options
categories: Trace and Profiling.
2. Check “Disable Trace Macros”.
3. Click OK.
To disable the full trace capability:
1. Remove all trace and log macros from code.
2. Select File>Project Properties
dialog, Categories: REAL ICE, Options
categories: Trace and Profiling.
3. Under “Data Collection Selection”, choose “Off”.
4. Click OK.
6.3.8 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
argument 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 6-1: PIC18FXXJ DEVICE RUNNING AT 4MHZ (1 MIPS) WITH
ASSEMBLY PROJECT
EXAMPLE 6-2: PIC18FXXJ DEVICE RUNNING AT 40MHZ (10 MIPS) WITH C
PROJECT
EXAMPLE 6-3: dsPIC33F DEVICE RUNNING AT 10 MIPS WITH C PROJECT
Native SPI I/O Port
Library Size (in instructions) 23 + 30 37 + 30 25 + 30
GPRs Used (in bytes) 8 6 6
__TRACE(id) instruction cycles 80 54 42
__LOG(id, BYTE) instruction cycles 168 90 57
Native SPI I/O Port
Library Size (in instructions) 75 + 30 87 + 30 112 + 30
GPRs Used (in bytes) 10 8 8
__TRACE(id) instruction cycles 79 71 55
__LOG(id, INT) instruction cycles 225 169 162
Native SPI I/O Port
Library Size (in instructions) 87 + 9 92 + 9 93 + 9
GPRs Used (in bytes) 18 14 0
__TRACE(id) instruction cycles 80 53 32
__LOG(id, INT) instruction cycles 212 124 106