GPIO Flashcards
In which circumstance would it be better to NOT use GPIO pins to communicate with a peripheral:
When you can use a built-in bus like I2C or SPI
When the peripheral specifies a very unusual custom interfacing protocol
When the peripheral is a long distance away
When the peripheral is read-only, and you can’t write to it
When you can use a built-in bus like I2C or SPI
Which of the following communication bus tells an internal module to read or to write?
Data bus
Control bus
Address bus
CPU bus
Control bus
GPIO pins can support which of the following:
Analogue output only
Analogue and digital input and output
Digital input and output
Analogue input and digital output
Digital input and output
Which of the following internal buses does the CPU use to specify which location or register it wishes to read from/write to:
USB
Control bus
Data bus
Address bus
Address bus
Most microcontrollers multiplex their GPIO pins with other functions
True False
True
GPIO can be used to implement an SPI bus:
True False
True
An 8-bit GPIO port must be configured to have all 8 pins as “all output” or “all input”:
True False
False
most microcontrollers and devices that offer an 8-bit GPIO port allow you to configure individual pins within the port as either inputs or outputs independently. You do not necessarily have to set all 8 pins as either “all output” or “all input” collectively.
GPIO pins always need to be used with an external resistor:
True False
False
GPIO pins do not always need to be used with an external resistor. Whether or not you need external resistors depends on the specific application and how the GPIO pin is being used.
In microcontrollers, GPIO stands for
General Purpose Input/Output
You would normally debounce an input key with a delay of more than 200 milliseconds
True False
False
Debouncing an input key with a delay of more than 200 milliseconds is not a standard or typical practice. In fact, such a long delay would likely result in a noticeable and undesirable delay in responsiveness for the user.