Machine-translated by Google. Questions are authored in English.
Top

Discussion

Microcontroller 8051 operates with 12 MHz oscillator and one machine cycle is defined as 12 oscillator periods. The execution time for a 4 machine cycle instruction would therefore be :

  • A.4 µs
  • B.8 µs
  • C.1 µs
  • D.2 µs

Answer: A

The execution time is 4 µs.

\[ \begin{aligned} T_{osc} &= \frac{1}{12\ \text{MHz}} = \frac{1}{12}\ \mu s \\ T_{cycle} &= 12 \times \frac{1}{12}\ \mu s = 1\ \mu s \\ T_{instr} &= 4 \times 1\ \mu s = 4\ \mu s \end{aligned} \]

With the usual 12 MHz crystal, each machine cycle of the 8051 takes exactly 1 µs, so a 4-cycle instruction (such as MUL or DIV) takes 4 µs. 1 µs is a single machine cycle, and 8 µs or 2 µs would need a 6 MHz or 24 MHz clock.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.