Connect with us

AVR timing loops

Discussion in '8bit Microcontrollers' started by Roy, Feb 28, 2004.

Scroll to continue with content
  1. Roy

    Roy Guest

    I'm new to the AVR chips but have used PIC chips IDE in which they have a
    STOPWATCH to test timing of the code.

    Does the AVR IDE have similar function or how do I test timing loops in the
    AVR IDE environment?

    Roy
     
  2. Rich Webb

    Rich Webb Guest

    Yes, AVR Studio 4 has both a "cycle counter" and a "stopwatch" in the
    processor tree of the workspace debugger window. The stopwatch value can
    be reset to zero by the user (the usual right-click popup menu).
     
  3. Roy

    Roy Guest

    Thanks - missed that in the first pass :-(
    Roy

     
  4. snidely

    snidely Guest

    Well some loops and nops will sometimes do the trick.
    Just add up the cycle counts.
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-