0
\$\begingroup\$

The MPLAB SIM has a nice stopwatch that shows the cycle count. But when using a PICKit 3, the stopwatch is not there. Any suggestions on how to bring this function back?

\$\endgroup\$

1 Answer 1

2
\$\begingroup\$

The stopwatch is only available with the simulator. You have to use other techniques if you are using a debugger, such as cycle counting, or outputting a pulse at the beginning and end of the code sequence, and using a scope to measure the time between the pulses.

This sort of question is best asked on the Microchip forums.

\$\endgroup\$
1
  • \$\begingroup\$ Thanks. I got the time using your second method, the scope, which is very quick. A 16 bit timer for cycle counting may be a better long term solution, but that needs some configuration that takes time... \$\endgroup\$ Commented Feb 5, 2013 at 15:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.