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

Discussion

In 8051 which interrupt has highest priority ?

  • A.IE1
  • B.TF0
  • C.IE0
  • D.TF1

Answer: C

In the 8051 the highest priority interrupt among those listed is IE0, external interrupt 0.

When interrupts of the same priority level are pending together, the 8051 resolves them by a fixed internal polling sequence:

  1. IE0, external interrupt 0
  2. TF0, timer 0 overflow
  3. IE1, external interrupt 1
  4. TF1, timer 1 overflow
  5. RI/TI, serial port

So TF0 comes second, IE1 third and TF1 fourth. (Reset has the highest priority of all, but it is not one of the options.) The IP register can raise any source to the high priority level, but the question asks about the default order.

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

Post your comment

Please log in or register to post a comment.