Datasheet
Emulator User’s Guide for MPLAB X IDE
DS52085A-page 102 2013 Microchip Technology Inc.
11.3.1 Trace and Profiling
Depending on the device you have selected for your project, you may be able to use
trace or PC sampling/profiling when debugging. Enable and set up these features as
specified below.
8-Bit and 16-Bit Devices
Options available on this page depend on the trace/profiling features of the project
device. For more on trace and profiling, see
Chapter 6. “Specific Debug Functions: 8-
and 16-Bit Devices”
.
TABLE 11-1: TRACE/PROFILING OPTION CATEGORY
Data Collection Selection Enable/Disable data collection.
• Off - Do not use trace or PC sampling.
• User Instrumented Trace - see
Section 6.3 “Instrumented Trace”.
• PC Sampling - see Section 6.4 “PC Sampling”.
Data File Path and Name Enter or change the path and/or name of the file
used to store data.
Data File Maximum Size (bytes) Set the maximum size of the data file.
Data Buffer Maximum Size (bytes) Set the size of the data buffer, up to 54600 bytes (on
board the emulator unit.)
User Instrumented Trace Items
Disable Trace Macros Check to temporarily disable trace macros or
uncheck to enable trace macros.
To disable trace, remove all macros and select “Off”
under “Data Collection Selection”.
Communications Medium Select the trace medium, if available (device depen-
dent): Native, I/O Port, SPI.
I/O Port Selection Specify the device port to be used for I/O port trace.
The available combinations for the selected device
will be listed.
SPI Selection Specify the device SPI pins to be used for SPI trace.
The available pins for the selected device will be
listed.
PC Sample Items - Only on Some 16-bit Devices
Timer Selection (Not Used by Applica-
tion Code)
Select a device timer to use to count PC samples.
Note: You will no longer be able to use this timer in
your application. It will be dedicated to PC sampling.
Note: You may select only one timer; you cannot
combine two timers to get a 32-bit timer. Use of one
of a 32-bit timer pair will prohibit that pair from oper-
ating as a 32-bit timer.
Timer Interrupt Priority Select an interrupt priority for the timer.
Note: Select a priority that is higher than other priori-
ties you have set in your application. If you do not,
the other priorities will preempt the sampling priority
and you will not capture these samples.
Timer Interval Enter a sampling interval.
This must be integer values (1, 2, 3, and so forth).
If you are not capturing data, you may be missing
samples given your current interval. Try adjusting the
unit selection and interval, for example, if you had 1
millisecond, try 990 microseconds.