For MPLAB X IDE, a tuple represents an ANDed list of breakpoints. ANDed
breakpoints can be useful when a variable is modified in more than one location and you
need to break only when that variable is modified in one particular location.
Only two breakpoints can be ANDed and these must consist of one program
memory breakpoint and one data memory breakpoint. Breakpoint 1 AND breakpoint 2 must
occur at the same time before a program halt.
To Create a Breakpoint Tuple:
- 1.Click on the “Create New Breakpoint” icon
in the
upper left of the Breakpoints window to open the New Breakpoint dialog.
- 2.Create an address breakpoint. Click OK to add it to the
Breakpoints window.
- 3.Repeat steps 1 and 2 to create a data breakpoint.
- 4.Right click on one breakpoint and select Complex
Breakpoint>Add to New Tuple.
- 5.Enter a name for your tuple in the dialog box and click
OK.
- 6.The breakpoint will appear under the new tuple.
- 7.Right click on the other breakpoint and select Complex
Breakpoint>Move to Name, where Name is the name of the
tuple.
To Remove a Tuple or Breakpoint, do one of the following:
- Right click on the item and select “Disable” to temporarily remove the item.
- Right click on the item and select “Delete” to permanently remove the item.
Figure 1. Breakpoint Tuple Example