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

Discussion

The timer 0 of 8051 with 1 MHz clock can generate maximum delay of .................. with resolution ................ .

  • A.64 ms, 1 μs
  • B.64 μs, 1 ms
  • C.32 μs, 100 ms
  • D.256 ms, 1 μs

Answer: A

The maximum delay is about 64 ms, with a resolution of 1 μs.

Taking the 1 MHz clock as the rate at which timer 0 counts, each count lasts 1 μs, which is the resolution. In mode 1, timer 0 is a 16-bit counter, so the longest delay before overflow is:

\[ \begin{aligned} 2^{16} \times 1\ \mu\text{s} &= 65536\ \mu\text{s} \\ &\approx 65.5\ \text{ms} \approx 64\ \text{ms} \end{aligned} \]

The key rounds 65.536 ms to 64 ms (64 K counts). 256 ms would need a 4 μs count, and 64 μs with 1 ms or 32 μs with 100 ms put the delay below the resolution, which is impossible.

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

Post your comment

Please log in or register to post a comment.