Easy Microprocessors & Microcontrollers Memory & I/O
What is GPIO and how is it configured?
Answer
GPIO (General Purpose Input/Output) pins can be software-configured as digital inputs or outputs. Configuration involves: Direction (input vs output), Pull-up/pull-down resistors (define default input state), Drive strength (current capability for outputs), and Alternate function selection (UART, SPI, etc.). As input, GPIO reads external digital signals (buttons, sensors). As output, it drives LEDs, relays, or control signals. GPIOs may have interrupt capability for edge or level detection. Proper configuration prevents floating inputs and excessive current draw.
IIT Certified
Master These Concepts with IIT Certification
175+ hours of industry projects. Get placed at Bosch, Tata Motors, L&T and 500+ companies.
Relevant for Roles
Embedded Engineer Firmware Developer Hardware Engineer