User`s guide
MPLAB
®
IDE User’s Guide
DS51519B-page 152 © 2006 Microchip Technology Inc.
12.16.3 SFRs Window FAQ
How do I:
Fill all registers with a value?
Right click in the window and select “Fill Registers” to open a dialog where you may
enter fill data.
12.17 TRACE MEMORY WINDOW
The Trace memory window (under the View menu) helps you to monitor much of the
processor operation.
The Trace buffer is shared with the logic analyzer. To enable the tracing of all executing
program lines to the Trace buffer, check the checkbox Debugger>Settings
, Trace tab,
Trace All. To enable the tracing of a select number of executing program lines to the
Trace buffer, use the Filter-Out or Filter-In Trace options on right mouse button menus.
If the trace buffer is empty, the window will say “No items to display”. Otherwise, the
window will display the contents of the trace buffer. Up to 32767 instruction cycles can
be displayed in the Trace memory window. Source code may be viewed in the lower
portion of the window, if desired. This code is read-only.
• Trace Window Display
• Trace Window Menu
• Trace Window FAQ
12.17.1 Trace Window Display
The Trace memory window may be left open at all times, moved or resized. Data in the
trace pane of the window may be edited “in place”.
Trace Pane
The Trace memory window contains the following information for each execution cycle:
• Line Number (Line) – Cycle's position relative to the trigger or halting point.
•Address (Addr) – Address of the instruction being fetched from program memory.
• Opcode (Op) – Instruction being fetched.
• Label (Label) – Label (if any) associated with the program memory address.
• Instruction (Instruction) – Disassembled instruction.
• Source Data Address (SA) – Address or symbol of the source data, if applicable.
• Source Data Value (SD) – Value of the source data, if applicable.
• Destination Data Address (DA) – Address or symbol of the destination data, if
applicable.
• Destination Data Value (DD) – Value of the destination data, if applicable.
• Time Stamp (Cycles/Time) – Time stamp value in cycles or seconds
• External Inputs (Probe #) – Value of the external inputs (if any). Not avail-
able/applicable for simulator trace.
The approximate trigger cycle will be numbered as cycle 0. All other cycles will be
numbered based on this cycle. Cycles that occurred before the trigger point will have
a negative cycle number, and cycles that occurred after the trigger point will have a
positive number.