I'm using uVision3 IDE V3.23 with C Compiler V6.03. My target device is XC161CK-16F. I want to measure execution time of my code's part in debug mode according to the length of external bus cycle. My source is very simple: i write in cycle 2K words to external SRAM. But regardless of the external cycle time (changing of TCONCSx value) i get the same times. How can i measure real time according to the length of external cycle?
The "simulator" is not cycle accurate for the XC16x products. You are best served using an emulator (Hitex or Lauterbach) to find your execution time. Alternately you could use the venerable port pin and a scope on an actual target to determine the execution time between pin toggles.