Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Microcontroller Interrupts and ADC Quiz

Total questions: 14

Worksheet time: 7mins

Name
Class
Date
1.

What is the main advantage of using interrupts over polling in microcontrollers?

a)

Polling is more efficient than interrupts.

b)

Polling checks all devices in a round-robin fashion.

c)

Interrupts allow prioritization of device servicing.

d)

Interrupts can ignore devices for service.

2.

Which of the following is NOT a source of interrupt in PIC microcontrollers?

a)

Timer Interrupts

b)

External Interrupts

c)

Analog Comparator Interrupt

d)

Digital Signal Interrupt

3.

What does ISR stand for in the context of interrupts?

a)

Integrated Service Routine

b)

Interrupt Service Routine

c)

Immediate Service Response

d)

Interrupt Signal Register

4.

Which register is responsible for enabling and disabling interrupts globally?

a)

RCON

b)

ADCON0

c)

INTCON

d)

PIR1

5.

What type of interrupt is generated by external hardware?

a)

Timer Interrupt

b)

Software Interrupt

c)

Hardware Interrupt

d)

Polling Interrupt

6.

In PIC microcontrollers, what does the GIE bit control?

a)

General Input Enable

b)

Global Interrupt Enable

c)

Global Input Enable

d)

General Interrupt Enable

7.

What is the purpose of the ADC in a microcontroller?

a)

To amplify signals

b)

To convert analog signals to digital

c)

To convert digital signals to analog

d)

To filter signals

8.

Which of the following is a characteristic of polling?

a)

It continuously checks the status of devices.

b)

It can assign priority to devices.

c)

It is more efficient than interrupts.

d)

It interrupts the current process immediately.

9.

What does the A/D Result Format select bit (ADFM) control?

a)

The justification of the A/D result

b)

The speed of conversion

c)

The number of channels

d)

The reference voltage

10.

Which instruction is used to enable the Timer0 interrupt?

a)

INTCONbits.PEIE = 1

b)

INTCONbits.GIE = 1

c)

INTCONbits.TMR0IF = 1

d)

INTCONbits.TMR0IE = 1

11.

How many bits does a 10-bit ADC resolution provide?

a)

256

b)

2048

c)

512

d)

1024

12.

What happens when the GO/DONE bit is set in the ADC?

a)

The ADC conversion starts

b)

The ADC conversion stops

c)

The ADC is reset

d)

The ADC is disabled

13.

Which of the following is a feature of the PIC18 ADC?

a)

It requires external power for operation

b)

It has a resolution of 10 bits

c)

It can operate without a reference voltage

d)

It has only one channel

14.

Calculate the digital output value, D0-D9 for an analog input Vin = 1.4V if the reference voltage, Vref = 3V.

a)

0101010101

b)

1010101010

c)

1111011110

d)

0111011110