| |||||
Technical Support Support Resources
Product Information | DSCOPE: HIGH RESOLUTION TIMING FOR PROGRAM EXECUTIONInformation in this article applies to:
QUESTIONI am using the dScope debugger simulating a chip that runs at 24 MHz. The timing counter in the Register Window only provides 1 uSec resolution. Is there a way to get better resolution for timing my programs? ANSWERTo get better than 1 uSec resolution in the debugger, you may want to use the cycles variable along with the xtal variable.
If xtal is set to 12,000,000 (for 12 MHz) and cycles is set to 6,000,000, then half a second has elapsed. To get extremely accurate execution times, divide cycles by xtal. MORE INFORMATIONRefer to page 90 of the dScope for Windows User's Guide 01.97 for more information about the cycles variable. Last Reviewed: Tuesday, June 15, 2004 | ||||
| |||||