This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Time measurement in DScope

Does anybody know how I can measure the time between two breakpoints. I am using dscope monitor.

Leo

Parents Reply Children
  • I need to agree with you... ;-)

    - Alex

  • It would be nice if MON166 was able to link in a user function to run when it hits a breakpoint. Time measurement would be one thing you could do, but an even more valuable function would be to put the target hardware in a safe condition.

    I build systems with PWM controlled motors, it is always a challenge to safety these things during development.

  • It would be nice if MON166 was able to link in a user function to run when it hits a breakpoint.

    Ahhhh, but it can.

    Set a breakpoint that executes a debugger printf that reads and outputs the contents of one of the timer SFRs.

    Use the Breakpoints dialog to do this (it's easier). For the command, enter:

    printf("I Got Here\n")

    to test and see what happens when the breakpoint occurs. Then, go from there.

    Jon



  • jon,

    Thank you for the response, I really meant that I would like the monitor to call my function on any breakpoint. What you suggest would work fine for timing measurments. Be aware that usint the printf in a real time system is a real problem sinc the monitor uses a polled I/O mode that blocks all other tasks.

    Eric