News:

Let's find out together what makes a PIC Tick!

Main Menu

Debug & Stimulus & analysis of code

Started by Abdullah, Today at 01:27 PM

Previous topic - Next topic

Abdullah

Hi everyone
How to analysis the basic language code for example Execution time memory and more things
MPLAB users used debugging simulator and stimulus
Abdullah

JonW

You can use the ISIS simulator for some models, but IMHO I generally use IO toggling on a live device to measure execution times, along with the UART, for debugging. A low-cost scope or logic analyser is all that's generally needed. 


trastikata

Execution time is easy - use one of the timers with start/stop condition before and after the code of interest.

RGV250

Hi,
Post 2 here https://protoncompiler.com/index.php/topic,209.msg1098.html#msg1098
for finding out how many cycles a section of code uses, you can then multiply that by the cycle time.

Bob