I was reading one of my old books on programming pic micros in assembly. Its been a while since i have played with them. I'm running my pic micro at 4mhz and it does 1 instruction per clock cycle. So you would do 1/4 and it would equal to 0.00000025 x 4 = 1 instruction every 1us? Is my math correct?
Pic micro clock/instruction cycles
Started by darknoobie, Sep 07 2010 10:07 AM
2 replies to this topic
#1
Posted 07 September 2010 - 10:07 AM
|
|
|
#2
Posted 07 September 2010 - 10:42 AM
1 op/cycle * 4,000,000 cycle/second = 4,000,000 op/second. Invert and you get 0.00000025 seconds/op = 250 nano-seconds
#3
Posted 07 September 2010 - 11:33 AM
I think i just found a error in one of my books. Well its telling me that with a 4mhz clock and 1 op/cycle turns out to 1us. Yes if you 1/4 you get 0.00000025. Sounds right. Thank you. What was trowing me off was that the pic divides the clock cycle by 4 in order to process 1 operation per clock cycle, correct?


Sign In
Create Account


Back to top









