User manual

Using the Emulator as a Debugger
© 2006 Microchip Technology Inc. DS51616A-page 35
5.7.5 Sequenced Breakpoints Dialog
Set up a sequential occurrence of breakpoints. Sequence execution of breakpoints is
bottom-up; the last breakpoint in the sequence occurs first.
To add a breakpoint to a sequence:
Select a breakpoint from the list of “Available Breakpoints”. Available
breakpoints/triggers are those previously added to the breakpoint dialog.
Select a sequence for the list of “Sequences”.
•Click Add.
To change the order of breakpoints in a sequence, drag-and-drop the breakpoint in the
“Sequences list”.
To remove a breakpoint from a sequence:
Select the breakpoint in the “Sequences” list.
•Click Remove.
5.7.6 AND Dialog
Set up an ANDED condition for breaking, i.e., breakpoint 1 AND breakpoint 2 must
occur at the same time before a program halt. This can only be accomplished if a data
breakpoint and a program memory breakpoint occur at the same time.
To add a breakpoint to the AND condition:
Select a breakpoint from the list of “Available Breakpoints”. Available
breakpoints/triggers are those previously added to the breakpoint dialog.
•Click Add.
To remove a breakpoint from a sequence:
Select the breakpoint in the “ANDed Breakpoints” list.
•Click Remove.
5.7.7 Triggers Dialog
Set up triggers in this dialog. Click on Add Data Capture to open the Data Capture
Properties Dialog to set up a real-time data capture. Click on Add External Triggers
to open the Add External Trigger Dialog to set up hardware triggers.
When complete, trigger information will appear in this dialog. Each trigger may be
enabled/disabled individually.
5.7.8 Data Capture Properties Dialog
Use this dialog to set up real-time data capture for a data address. Real-time data
capture provides updating of variables in the Watch, File Register and Special Function
Register window in real time instead of on halt.
Enter the hex address of the data address for capture.
Specify if the capture happens on read or write from the X bus.
Data capture can only be performed on register-sized variables. For dsPIC DSC/PIC24
devices, only 16-bit variables can be captured, such as shorts and ints, but not floats
and longs.
Triggers use the same resources as breakpoints, so the maximum available number of
breakpoints applies to the maximum number of available triggers and breakpoints. As
an example, if 4 breakpoints are available, and two breakpoints are set, up to two
triggers may be set also.
If Capture trace is used, then real-time data capture triggers cannot be used because
of hardware constraints. However, breakpoints are still available.