You are here

Execution Time by PSoC | Cypress Semiconductor

Execution Time by PSoC

Summary: 4 Replies, Latest post by danaaknight on 23 Jan 2013 06:41 AM PST
Verified Answers: 0
Last post
Log in to post new comments.
user_209526657's picture
User
41 posts

Hello ,

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

Stub for 42107979's picture
User
19 posts

 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

user_14586677's picture
User
7646 posts

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.

user_14586677's picture
User
7646 posts

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.

user_14586677's picture
User
7646 posts

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

resolution.

Regards, Dana.

Log in to post new comments.