+ Reply to Thread
Results 1 to 2 of 2

Thread: AVR Studio 4.12

  1. #1
    Night Rider Newbie
    Join Date
    Jan 2006
    Posts
    46

    Default AVR Studio 4.12

    I have mplab(microchip) and when i want to see how much time is from a line to another line in the program i use the "Stopwatch" option. i use breakpoints and i can see how much time the code does. For example to check a delay routine. Now, i make a start with avr(atmel) and i've got the avr studio. my problem is that i cant see anywhere an option like "Stopwatch" of mplab to check the timing of some code routines, delays etc. Is there any option? How can i do this job? Also i hear for another software, the "IAR". Is there any site to download it? Is it better for the avr studio?


  2. #2
    Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent
    Join Date
    Oct 2006
    Location
    Rochester, NY U.S.
    Posts
    9,826
    Blog Entries
    1

    Default

    Checking a delay routine is as simple as putting a break before the line of code that executes the delay routine and a break after the delay routine returns. The Stop Watch function can be used to do this. It's in the I/O view under processor. You run your program by hand or put a break point just before the call to the delay routine You right click on the stop watch value to reset it, or change the modulus. The you run your code to the next break point which should be immediately after the delay loop and look a the stop watch value.

    You should try the help files before you post in the forums as all the information both you and I have described is easily found in them. IAR is a commercial C compiler. AVRStudio is the free software provided by Atmel and is based on it's own internal compiler which is ASM, though it can be used with external C compilers (such as the AVR-GCC free C toolchain that is available) I'm highly reticent to recommend pay software for a hobbyist that is using AVR's because the amount of free software out there is sufficient for anyone willing to ask or look into it a bit.
    Last edited by Sceadwian; 9th June 2007 at 12:03 AM.
    "Because I be what I be. I would tell you what you want to know if I
    could, mum, but I be a cat, and no cat anywhere ever gave anyone a
    straight answer, har har."

+ Reply to Thread

Similar Threads

  1. Microsoft Robotics Studio; anyone using it?
    By blueroomelectronics in forum Robotics Chat
    Replies: 19
    Latest: 7th June 2007, 01:24 PM
  2. Avr And LCD
    By mohandessina in forum AVR
    Replies: 1
    Latest: 23rd February 2007, 10:42 PM
  3. An old thread, which is better PIC or AVR never compare the 18F or higher PICs
    By blueroomelectronics in forum Micro Controllers
    Replies: 24
    Latest: 17th February 2007, 06:26 PM
  4. adding C feature to AVR studio
    By Richard Principal in forum AVR
    Replies: 4
    Latest: 4th January 2007, 12:52 AM
  5. Microcode Studio ICD
    By Timmymna in forum Micro Controllers
    Replies: 1
    Latest: 2nd May 2004, 02:50 PM

Tags for this Thread