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 5.5 Practice Problems
1.
True or false: All bits of Port B are accessible on the Arduino Uno R3.
2.
True or false: To change the data direction of pins on Port B, the register
DDRB is used.
3.
What is the difference between
PORTC = 0x00 and
DDRC = 0x00?
Answer .
PORTC = 0x00 sets the output value of all pins on Port C to be equal to logic LOW.
DDRC = 0x00 sets the directionality of all pins on Port C to be input pins.
4.
True or false: All of the ATmega328P ports have 8 bits.
5.
True or false: Upon power-up, the I/O pins are configured as output ports.
6.
True or false: The
PORTx register is used to send data out to ATmega328P pins.
7.
True or false: The
PINx register is used to bring data into the CPU from ATmega328P pins.