Using PICKit2 as a Debugger ? How to update watch window

Status
Not open for further replies.

saeed_pk

Full Member level 4
Joined
May 20, 2006
Messages
237
Helped
35
Reputation
68
Reaction score
28
Trophy points
1,308
Location
Islamabad, Pakistan
Activity points
2,655
I am using PICKit2 as a debugger in MPLAB. and C-30 Compiler
Please any one tell when i step through target i want to see the values of SFR
how do i update watch window of MPLAB
 

Re: Using PICKit2 as a Debugger ? How to update watch windo

Your two main controls in debugger are F9 to Run and F7 to single step.
F7 will update the Watch and File Register windows on each instruction step.

In your code you add a Breakpoint at the place you want to start single stepping, so in debugger you first F9 Run and it will go through your code at full speed and then stop at the Breakpoint so you can F7 Single step and examine the contents of the registers.

If you use 2 breakpoints then you can use the Stopwatch to measure how long a specific routine like a delay takes.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…