Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: RE: Counting Clock Cycles - Is there an alternative method?

$
0
0

Hi Thomas,

What I meant by first step is:

GpioDataRegs.GPBSET.bit.GPIO35 = 1;  //Set bit //Place your instruction here GpioDataRegs.GPBCLEAR.bit.GPIO35 = 1;  //Clear bit

By doing so your GPIO would toggle, this toggling can be easily captured on DSO. This will inturn give you the time taken for the instruction to execute. By dividing this time by the CPU cycle time, you'll get the number of cycles.

[quote]This makes me think of my piece of *** remote control supplied by my cable TV company. My goodness, what a buggy thing that is. :)[/quote]

lol :)

Regards,

Gautam


Viewing all articles
Browse latest Browse all 91752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>