- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello ,
Can we get the details of TIME taken by PSoC to run the program and display the results ????
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Lastly you could use RTC as a time stamp, but its limited to 1 sec
resolution.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.