WorksheetsInterrupt
Total questions: 10
Worksheet time: 11mins
What is an interrupt?
A permanent stop of the CPU
A signal that temporarily halts the CPU to handle an event
A program stored in memory
A type of waveform
Which type of waveform is a simple ON/OFF pattern?
Sine
Triangular
Square
Sawtooth
What is the main problem with polling compared to interrupts?
Polling is faster
Polling requires more hardware
Polling cannot be used in embedded systems
Polling wastes CPU time by constantly checking status
Which best describes an Interrupt Service Routine (ISR)?
The main program loop
A background task that runs occasionally
A routine executed when an interrupt is triggered
A waveform generator
Why is PWM important in embedded systems?
It controls average power by adjusting duty cycle
It reduces CPU frequency
It converts analog to digital
It measures time intervals
A main program has 4 blocks, each taking 12 ms. After each block, an ISR runs for 3 ms. What is the total time?
48 ms
60 ms
72 ms
78 ms
A timer runs at 1 MHz. One clock cycle = ?
1 ms
1 µs
1 ns
10 µs
You generate a square wave by toggling a pin every 5 ms. What is the frequency?
10 Hz
50 Hz
100 Hz
200 Hz
A PWM signal has a period of 20 ms and an ON time of 5 ms. What is the duty cycle?
10%
20%
25%
50%
The time between two rising edges of a signal is 0.002 s. What is its frequency?
700 Hz
500 Hz
50 Hz
2 Hz
