Execution Time by PSoC

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello ,

   

            Can we get the details of TIME taken by PSoC to run the program and display the results ????

0 Likes
4 Replies
Anonymous
Not applicable

 A simple technique to find the time taken to execute a piece of code is to toggle a pin and measure the pulse width using an oscilloscope. The code used to toggle pin takes some time to execute. To reduce that time, use techniques given in AN60630

   

Regards,

   

Praveen

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Creator currently does not offer time stamped trace capability during debug.

   

 

   

This thread discusses a possible future release http://www.cypress.com/?app=forum&id=2492&rID=52192

   

 

   

For simple routines you can get accurate timing by counting instruction cycles using the *.lst file.

   

 

   

Regards, Dana.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Lastly you could use RTC as a time stamp, but its limited to 1 sec

   

resolution.

   
   

   
   

Regards, Dana.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

For more precision you could always enable a timer running at 10 Mhz,

   

100 nSec resolution, then disable and read it at end of code segment.

   

 

   

Regards, Dana.

0 Likes