|
51795B Datasheet, PDF (62/100 Pages) Microchip Technology – PICkit™ 3 Programmer/Debugger | |||
|
◁ |
PICkit⢠3 Userâs Guide
10.3.3 Stopwatch Dialog
Click Stopwatch in the Breakpoints Dialog to display the Stopwatch Setup dialog.
Use the stopwatch with breakpoints to time code execution. The stopwatch allows tim-
ing from one breakpoint/trigger condition to the next. The stopwatch value is in decimal.
TABLE 10-5: STOPWATCH SETUP
Control
Function
Start Condition
Stop Condition
Reset stopwatch on run
Select an available breakpoint or trigger condition to start the stop-
watch. Available breakpoints/triggers are those previously added
to the breakpoint dialog.
Select None to clear the start condition.
To halt the program run on this condition, check the check box next
to âStart condition will cause the target device to haltâ.
Select an available breakpoint or trigger condition to stop the stop-
watch. Available breakpoints/triggers are those previously added
to the breakpoint dialog.
Select None to clear the stop condition.
To halt the program run on this condition, check the check box next
to âStop condition will cause the target device to haltâ.
Reset the stopwatch values to zero every time the program is run.
To set a breakpoint in code, do one of the following:
⢠Double click or right click on a line of code to set up an individual breakpoint.
⢠Select Debugger>Breakpoints to open the Breakpoints dialog and set up multiple
breakpoints and breakpoint conditions. See Section 10.3.1 âBreakpoints
Dialogâ for more information.
To determine the time between the breakpoints, use the stopwatch:
1. Open the Breakpoints dialog (Debugger>Breakpoints).
1. Click Stopwatch on the Breakpoints dialog to open the Stopwatch dialog.
2. Under âStart Conditionâ, select a breakpoint from the drop-down list. Also decide
if âStart condition will cause the target device to haltâ.
3. Under âStop Conditionâ, select another breakpoint from the drop-down list. Also
decide if âStop condition will cause the target device to haltâ.
4. Decide if there will be a âReset stopwatch on runâ.
5. Click OK.
10.3.4 Event Breakpoints Dialog
Click Event Breakpoints in the Breakpoints Dialog to display this dialog.
Select a condition where the program will always break:
⢠Break on Watchdog Timer â Break every time the Watchdog Timer times out.
Make sure the Watchdog Timer is enabled in the Configuration bits.
⢠Break on SLEEP instruction â Break when a SLEEP instruction is encountered in
the program.
DS51795B-page 62
ï£ 2010 Microchip Technology Inc.
|
▷ |