Is there a way to do this? I would like ot know what the execution time is between two points. I think theres a stopwatch somewhere in Studio, but not sure
I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie
"The critical shortage here is not stuff, but time." - Johan Ekdahl
"Step N is required before you can do step N+1!" - ka7ehk
"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman
"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?" - Lee "theusch"
Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-) - Source Unknown
Please Read: Code-of-Conduct
Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user
Nevermind. It only works in Simulator. Not in real time debugging.
I would like ot know what the execution time is between two points
toggle a pin at the 2 points & measure on a scope ?
Start a spare timer at one point and stop it at the other? Set a breakpoint at the latter and read the timer register.
#1 Hardware Problem? https://www.avrfreaks.net/forum/...
#2 Hardware Problem? Read AVR042.
#3 All grounds are not created equal
#4 Have you proved your chip is running at xxMHz?
#5 "If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand."
Set a breakpoint at the latter and read the timer register.
Not forgetting to set the timer to stop during "break".
Or, if you don't actually want to stop, save it to RAM somewhere for later inspection.
You could save multiple values to see if/how it varies ...
© 2020 Microchip Technology Inc.