WorksheetsMicrocontroller Interrupts and ADC Quiz
Total questions: 14
Worksheet time: 7mins
What is the main advantage of using interrupts over polling in microcontrollers?
Polling is more efficient than interrupts.
Polling checks all devices in a round-robin fashion.
Interrupts allow prioritization of device servicing.
Interrupts can ignore devices for service.
Which of the following is NOT a source of interrupt in PIC microcontrollers?
Timer Interrupts
External Interrupts
Analog Comparator Interrupt
Digital Signal Interrupt
What does ISR stand for in the context of interrupts?
Integrated Service Routine
Interrupt Service Routine
Immediate Service Response
Interrupt Signal Register
Which register is responsible for enabling and disabling interrupts globally?
RCON
ADCON0
INTCON
PIR1
What type of interrupt is generated by external hardware?
Timer Interrupt
Software Interrupt
Hardware Interrupt
Polling Interrupt
In PIC microcontrollers, what does the GIE bit control?
General Input Enable
Global Interrupt Enable
Global Input Enable
General Interrupt Enable
What is the purpose of the ADC in a microcontroller?
To amplify signals
To convert analog signals to digital
To convert digital signals to analog
To filter signals
Which of the following is a characteristic of polling?
It continuously checks the status of devices.
It can assign priority to devices.
It is more efficient than interrupts.
It interrupts the current process immediately.
What does the A/D Result Format select bit (ADFM) control?
The justification of the A/D result
The speed of conversion
The number of channels
The reference voltage
Which instruction is used to enable the Timer0 interrupt?
INTCONbits.PEIE = 1
INTCONbits.GIE = 1
INTCONbits.TMR0IF = 1
INTCONbits.TMR0IE = 1
How many bits does a 10-bit ADC resolution provide?
256
2048
512
1024
What happens when the GO/DONE bit is set in the ADC?
The ADC conversion starts
The ADC conversion stops
The ADC is reset
The ADC is disabled
Which of the following is a feature of the PIC18 ADC?
It requires external power for operation
It has a resolution of 10 bits
It can operate without a reference voltage
It has only one channel
Calculate the digital output value, D0-D9 for an analog input Vin = 1.4V if the reference voltage, Vref = 3V.
0101010101
1010101010
1111011110
0111011110
