Microcontrollers MCQs (Set-3)

At 12 MHz, how long is one classic 8051 machine cycle?

A 12 microseconds
B 12 nanoseconds
C 1 microsecond
D 1 millisecond

In timer mode, what advances Timer 0 or Timer 1?

A Port changes
B Machine cycles
C Interrupt vectors
D Serial frames

In counter mode, which input transition increments the count?

A Either edge
B No transition
C Low to high
D High to low

Which register selects timer operating modes?

A TMOD
B IP
C IE
D TCON

Which register contains TR0 and TF0?

A SCON
B PSW
C TCON
D TMOD

What is the timer width in Mode 0?

A 13-bit
B 16-bit
C 8-bit
D 24-bit

What is the timer width in Mode 1?

A 8-bit
B 16-bit
C 24-bit
D 13-bit

What does Timer Mode 2 provide?

A 13-bit capture
B 16-bit compare
C 32-bit cascade
D 8-bit auto-reload

Which timer is split into TL0 and TH0 in Mode 3?

A Timer 0
B Timer 1
C Both timers
D Neither timer

Which bit starts Timer 0 running?

A IT0
B TF0
C TR0
D IE0

Which bit records Timer 0 overflow?

A TF1
B TF0
C TR0
D IE0

With GATE0 set, what else must be high?

A ALE pin
B RxD pin
C RST pin
D INT0 pin

How many vectored interrupt sources are in the base 8051?

A Four
B Three
C Five
D Six

Where is the INT0 interrupt vector?

A 0003H
B 0000H
C 000BH
D 0013H

Where is the Timer 0 interrupt vector?

A 0003H
B 000BH
C 0013H
D 001BH

Where is the Timer 1 interrupt vector?

A 000BH
B 0023H
C 0013H
D 001BH

Where is the serial interrupt vector?

A 0023H
B 0030H
C 0013H
D 001BH

Which IE bit enables Timer 1 interrupts?

A ET0
B EX1
C ET1
D ES

When IT0 equals one, INT0 is triggered by what?

A Rising edge
B Low level
C High level
D Falling edge

Which register sets interrupt priority levels?

A TCON
B IP
C IE
D TMOD

What can a high-priority interrupt do during a low-priority ISR?

A Replace its vector
B Disable its clock
C Preempt it
D Clear its code

What does hardware save when entering an ISR?

A Program counter
B Timer mode
C Serial mode
D Port latch

Which instruction returns from an interrupt service routine?

A RETI only clears
B JMP
C RET
D RETI

Why can 8051 serial transmit and receive concurrently?

A Shared timer
B Separate SBUF registers
C Two CPUs
D Dual program counters

Which flags share the serial interrupt vector?

A RI and TI
B TF0 and TF1
C CY and AC
D IE0 and IE1