7 Most Common MCU Peripheral Modules
As we all know, to perceive the physical world and control external hardware, the CPU must rely on integrated hardware modules inside the chip, known as peripherals. Mastering peripherals is the true gateway into embedded system development. If we compare the CPU to a "mayor," then peripherals are the various "functional departments" of the municipal government. This article systematically reviews the seven most widely used and fundamental MCU peripherals, combined with current industry trends.What Are MCU Peripherals?
Simply put, peripherals are dedicated hardware modules integrated around the CPU core inside a microcontroller, each responsible for a specific function.
They share the same silicon die with the CPU and are tightly connected via system buses such as AHB/APB buses.
The CPU configures peripherals by reading and writing registers, allowing it to control operating modes, retrieve data, or issue commands.
In modern low-power system design, peripherals are often the main contributors to power consumption. Therefore, in today’s IoT and wearable devices, one of the most critical power-saving strategies is disabling unused peripheral clocks through software.
Deep Dive into the 7 Fundamental Peripherals
GPIO (General Purpose Input/Output)
GPIO is the most basic and intuitive peripheral. Almost every MCU pin can be configured as a GPIO. It is also the module used when an engineer lights up their very first LED.
Function: Directly controls the logic level of a pin (high or low).
Common Modes:
- Push-Pull Output: The most common output mode, capable of driving strong high/low levels. Used for LEDs, relays, buzzers, and digital switches.
- Floating Input: High-impedance state used to read external digital signals (0 or 1), typically for buttons or simple sensors.
- Alternate Function: GPIO pins can be reassigned to other peripherals (e.g., UART TX/RX), requiring alternate function configuration.
Industry Context:
In modern smart home hardware, GPIO is increasingly used to control next-generation low-power solid-state relays, supporting more compact and energy-efficient designs.
UART (Universal Asynchronous Receiver/Transmitter)
UART is often referred to as the “lifeline of debugging” in embedded systems.
Function:
Enables full-duplex asynchronous serial communication between the MCU and external devices such as PCs, GPS modules, or Bluetooth modules. Typically requires only three wires: TX, RX, and GND.
Characteristics:
Flexible configuration (baud rate, data bits, stop bits, parity), relatively low speed, but extremely important for development and debugging.
It remains the primary interface for:
printf()log output debugging- logic analyzer and oscilloscope-based communication analysis
Applications:
- PC-side debugging tools (serial terminals)
- Wi-Fi / Bluetooth transparent transmission modules
- GPS data acquisition systems
Timer (Counter / Timer)
If GPIO represents the limbs of an MCU, the timer represents its heartbeat and internal clock.
In industrial systems, it is far more than a simple software delay mechanism.
Core Functions:
- Timing: Generates precise time intervals based on internal clock sources.
- Counting: Counts external pulse signals.
- Interrupt Triggering: Forces CPU to execute time-critical tasks (e.g., 1ms display refresh).
- Input Capture: Measures frequency or pulse width of external signals (e.g., infrared remote control signals).
Applications:
- Real-time scheduling in embedded systems
- Encoder pulse measurement in industrial conveyor systems
- Deterministic timing in control systems
PWM (Pulse Width Modulation)
PWM is typically a timer-based feature, but due to its importance in control systems, it is often treated as a standalone peripheral.
Function: Controls the duty cycle of a square wave to simulate analog voltage levels.
Principle: Devices with physical inertia (motors, heaters, LEDs) respond to the average energy of rapidly switched signals, effectively “smoothing” digital pulses into analog behavior.
Industry Trends: Driven by the rapid growth of new energy vehicles, intelligent cockpits, and drones, PWM is widely used for:
- Servo motor angle control
- BLDC motor speed regulation
- LED brightness and breathing effects
ADC (Analog-to-Digital Converter)
MCUs are digital systems that only understand 0s and 1s, while the physical world is analog in nature.
Function:
Converts continuous analog voltage signals (e.g., 0V–3.3V) into digital values (e.g., 0–4095 for a 12-bit ADC).
Key Parameters:
- Resolution (10-bit, 12-bit, 16-bit)
- Sampling rate (conversion speed)
Applications:
- NTC temperature sensing
- Lithium battery monitoring
- Light sensing systems
Industry Context:
In edge AI voice wake-up devices, high-performance ADCs are increasingly used for continuous audio sampling from analog microphones.
I2C (Inter-Integrated Circuit)
I2C is a classic low-speed synchronous serial communication protocol originally developed by Philips.
Function:
Uses only two wires—SDA (data) and SCL (clock)—to connect multiple devices on the same bus using unique addresses.
Characteristics:
- Minimal pin usage
- Suitable for short-distance, low-speed communication
- Multi-device shared bus architecture
Applications:
- OLED displays
- EEPROM memory chips (e.g., AT24C02)
- Environmental sensors (e.g., AHT20)
- IMUs (e.g., MPU6050)
SPI (Serial Peripheral Interface)
Compared to I2C, SPI is designed for high-speed data transfer and full-duplex communication.
Function:
Typically requires four wires: MISO, MOSI, SCK, and CS.
Characteristics:
- Very high speed
- Simple protocol
- Higher pin usage, especially when multiple slaves are connected
Applications & Trends:
- TFT LCD display drivers
- External flash memory (e.g., W25Q64)
- SD card communication
- High-speed ADC/DAC interfaces
In modern systems such as FPGA configuration storage and automotive sensor data pipelines, advanced multi-channel SPI modes (e.g., Quad-SPI) have become a key data transfer standard.
Conclusion: Building a Complete Embedded System Mindset
As highlighted in recent semiconductor industry white papers, chip design is rapidly evolving toward higher integration and intelligence. However, regardless of how complex peripheral automation becomes, the underlying logic remains unchanged:
Register configuration → physical signal output → interrupt/bus feedback to CPU
For engineers, mastering these seven fundamental peripherals means being able to quickly visualize complete hardware architectures when designing systems — whether selecting industrial displays, FPGA boot components, or protection circuits such as Schottky diode arrays.
Ultimately, understanding peripherals is not just about learning MCU functions, it is more about understanding how modern intelligent electronic systems truly interact with the physical world.