User`s guide
MPLAB
®
IDE User’s Guide
DS51519B-page 150 © 2006 Microchip Technology Inc.
Load a previously saved Watch window?
Click the right mouse button in the window to open a menu. Select Load Watch to load
a previously saved watch into the currently selected watch. Or, select Import to load
Watch values.
Change the order of watch items?
Simply drag-and-drop items where you want them in the watch list.
Watch a single bit from a register?
Set the variable format to binary. See Section 13.30 “Watch/Locals Dialog”.
Watch a 16-bit variable?
Set the variable size to 16 bit. See Section 13.30 “Watch/Locals Dialog”.
Watch C pointers and structure members?
See Section 6.3.7 “C Language Usage – Watch Window”.
12.15 CALL STACK WINDOW
For dsPIC digital signal controller (DSC) devices, a call stack window is available to
view calls and gotos in executing code.
It is recommended that code optimization be turned off when using the call stack.
12.16 SPECIAL FUNCTION REGISTERS WINDOW
The Special Function Registers window displays the contents of the Special Function
Registers (SFRs) for the selected processor.
The format provided by this window is more useful for viewing the SFRs than the
normal file register window, since each SFR name is included and several number
formats are presented. Whenever a break occurs, the contents of the Special Function
Registers are updated.
• SFRs Window Display
• SFRs Window Menu
• SFRs Window FAQ
Note: If the program stops on the declaration of the function, the display will not
show the calling function.
Note: If a data memory register is not physically implemented on a device, it may
not appear in the SFR list. Some tools, such as simulators, may allow you
to see registers that do not exist on the actual device, such as prescalers.
Note: If “Freeze Peripherals On Halt” is selected, the I/O port bits in the SFR or
the Watch windows will not update when single stepping. The pin will be
modified, but the read request to retrieve the new value is blocked by the
freeze and cannot be updated until the next step or run command.