Skip to main content
Contents
Dark Mode Prev Up Next
\(\newcommand{\N}{\mathbb N} \newcommand{\Z}{\mathbb Z} \newcommand{\Q}{\mathbb Q} \newcommand{\R}{\mathbb R}
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Exercises 8.4 Practice Problems
1.
Which of the two techniques (interrupts or polling) requires more system resource usage on the microcontroller?
2.
What is the memory address of the watchdog timer interrupt on the ATmega328P?
3.
True or false: While servicing an interrupt service routine on the ATmega328P, interrupts are globally enabled.
4.
Is the reset interrupt on the ATmega328P maskable or nonmaskable?
5.
When two interrupts are invoked simultaneously, the one with the ____ memory address will be serviced first.
6.
If
INT0 and
INT1 are invoked simultaneously, which will be serviced first?
7.
The following interrupts are triggered while
PCINT2 is being serviced:
TIMER1 OVF,
ADC,
INT0, and
ADC. Which interrupts will be serviced, in what order, once the ISR concludes?
Answer .
INT0 will be serviced first, followed by
TIMER1 OVF, followed by
ADC. The
ADC interrupt will only be serviced once even though it was triggered twice.