View Full Version : Command to Clock Cycle table
blainecf
- 24th July 2006, 19:10
Does anyone have a cross-reference table for PBP commands to the # of clock cycles needed to execute that command?
Would be useful in timing critical situations to know which commands to use / stay away from.
Thanks!
bcf
mister_e
- 24th July 2006, 22:47
none exist and there's a good reason for. How many different way you can write and IF THEN ELSE? FOR TO NEXT? WHile/WEND and so on?
you can use different methos to measure it, toggle a led before and after a statement block and measure it with a scope.
Start a timer before, stop it at the end, calculate the amount of tick then send it over serial to your pc or on a lcd.
Use MPLAB stopwatch
list is long...
EDIT: there's something to play with... say thanks to Darrel
http://www.picbasic.co.uk/forum/showthread.php?t=365&highlight=cycle
Powered by vBulletin® Version 4.1.7 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.