00:01
We'd like to find in this problem, how long does it take to scan and service the device? so we're given our frequency, which is 8 megahertz, and our clock cycle, which i'll just call t, is 1 over our frequency.
00:15
So we can plug in 1 divided by 8 times 10 to the 6 hertz, and we get 0 .125 microseconds.
00:23
Now, the time taken for 12 clock cycles, t for 12, you just start 12 clock cycles times are 0 .125 microseconds, and we get 1 .5 microseconds.
00:36
So this is the time to take for 12 clock cycles per instruction.
00:42
Now, we have two other instructions that are going to take place, so our total number of instructions is three instructions.
00:50
Now we can find our time taken, which we'll call t.
00:53
That's three times our t for our 12 cycles...