The short answer
A microcontroller (MCU) is a complete small computer on a single chip. It contains a processor core, program memory (usually flash), RAM, and peripherals such as timers, input/output pins and communication interfaces. It’s designed to control a specific device with very few extra parts.
A microprocessor (MPU) is primarily a processing unit. It needs external memory, storage and support chips to work, but it offers much more computing power and can run full operating systems like Linux or Windows.
In short: microcontrollers are built for control, with low cost, low power and predictable timing. Microprocessors are built for computation, with high performance and flexibility. Most embedded systems use microcontrollers, while PCs, servers and more complex embedded devices use microprocessors.
Comparison table
| Feature | Microcontroller (MCU) | Microprocessor (MPU) |
|---|---|---|
| What’s on the chip | CPU core, flash, RAM, timers, ADCs, GPIO, communication peripherals | Mainly CPU cores and cache (often with some peripherals in SoC designs) |
| External parts needed | Very few: power, sometimes a crystal | External RAM, storage, power management and other support chips |
| Typical memory | Kilobytes to a few megabytes of on-chip flash and RAM | Gigabytes of external RAM; storage on flash, SSD or SD card |
| Typical clock speed | Roughly tens to hundreds of MHz | Often around 1 GHz or higher, frequently multi-core |
| Operating system | Bare metal or a real-time OS (RTOS) | Full OS such as Linux, Android or Windows |
| Memory management unit (MMU) | Usually none | Yes, which allows full operating systems |
| Power consumption | Very low; deep sleep modes for battery operation | Much higher; may need heatsinks or fans |
| Boot time | Typically near-instant | Can take seconds as the OS loads |
| Real-time behavior | Predictable and easy to make deterministic | Harder to guarantee under a general-purpose OS |
| Cost | From well under a dollar to a few dollars for many parts | Higher, plus the cost of memory and support chips |
| Typical uses | Appliances, remotes, sensors, motor control, wearables | PCs, servers, phones, smart TVs, routers, infotainment |
| Examples | ATmega328P, STM32 family, ESP32, RP2040 | Intel Core, AMD Ryzen, Arm Cortex-A processors |
What is a microcontroller?
A microcontroller packs everything needed for a dedicated control task onto one chip. The chip at the center of an Arduino Uno, the ATmega328P, is a classic example. It has an 8-bit processor running at 16 MHz on that board, 32 KB of flash memory for the program, 2 KB of RAM, and built-in peripherals including digital I/O pins, timers, PWM outputs, an analog-to-digital converter and serial interfaces.
That might sound tiny, but it’s enough to read sensors, control motors, run a display and talk to other chips. Modern 32-bit microcontrollers, such as those based on Arm Cortex-M cores or RISC-V, offer much more performance and memory, and some, like the ESP32, include Wi-Fi and Bluetooth radios.
Microcontrollers typically run their firmware directly from on-chip flash and start almost instantly when powered on. They’re found in nearly every embedded system: washing machines, thermostats, remotes, car modules, power tools and fitness trackers.
What is a microprocessor?
A microprocessor is a processor on a chip that relies on external components to form a complete computer. The CPU in a desktop PC is the familiar example. It sits on a motherboard with separate RAM modules, storage, and chips that handle USB, networking and other functions.
In embedded and mobile products, microprocessors usually appear as application processors, often combined with graphics, video and other blocks in a system-on-chip (SoC). The chip on a Raspberry Pi is an example: it contains multiple Arm Cortex-A cores and a GPU, and it relies on separate RAM and an SD card or other storage.
Microprocessors run full operating systems and are used where the workload is heavy or varied: user interfaces with graphics, networking stacks, multimedia, databases and general-purpose computing.
The key differences explained
Integration and external components
This is the defining difference. A microcontroller is self-sufficient: add power (and sometimes a crystal) and it can run. A microprocessor needs a supporting cast of memory, storage and power management chips. That makes MPU-based boards larger, more complex and more expensive to design.
Memory
Microcontrollers have small amounts of memory on the chip, often measured in kilobytes. That keeps cost and power down but means programs must be compact. Microprocessors use large external memory, typically gigabytes, which allows big applications and operating systems.
Performance and clock speed
Microprocessors are far faster. Desktop and phone processors run at gigahertz speeds with multiple cores and sophisticated features like deep pipelines and large caches. Microcontrollers usually run at tens to hundreds of megahertz, and for their intended tasks, that’s plenty.
Operating system and the MMU
A key technical reason microprocessors can run Linux, Android or Windows is the memory management unit (MMU). The MMU provides virtual memory, which lets an operating system give each program its own protected address space. Most microcontrollers don’t have an MMU, so they run bare-metal firmware or a lightweight real-time operating system instead. Some MCUs include a simpler memory protection unit (MPU, confusingly sharing the acronym) that can guard memory regions but doesn’t provide full virtual memory.
Power consumption
Microcontrollers are designed for very low power. Many can drop into deep sleep modes drawing microamps, waking on a timer or external event. That allows battery-powered devices to run for months or years. Microprocessors consume much more power, and high-performance ones need heatsinks or fans.
Real-time behavior and boot time
Because a microcontroller runs a single program with direct control of its hardware, it’s relatively easy to make its timing predictable, which matters for motor control, safety systems and communication protocols. It also starts running almost immediately after power-on. An MPU running a general-purpose OS may take seconds to boot, and its response times can vary depending on what else the OS is doing.
Cost and board complexity
Simple microcontrollers can cost well under a dollar in volume, and the board around them can be small and simple. A microprocessor costs more, and the external memory, storage, power management and more complex circuit board add to the total.
Architecture: Harvard vs von Neumann
You’ll often read that microcontrollers use Harvard architecture (separate paths for instructions and data) and microprocessors use von Neumann architecture (shared memory for both). That’s a rough generalization. Many microcontrollers, such as AVR and PIC, do use Harvard designs, and some Arm Cortex-M cores use separate instruction and data buses. But modern high-performance processors also use separate instruction and data caches internally, while presenting a single unified memory to software. It’s better to treat this as a historical tendency than a strict rule.
A familiar example: Arduino Uno vs Raspberry Pi
These two popular boards illustrate the difference well:
- The Arduino Uno is built around a microcontroller. It runs one program (a “sketch”) directly on the chip, starts instantly, uses very little power, and controls hardware with precise timing. It has no operating system and only 2 KB of RAM.
- The Raspberry Pi (the full-size models) is built around an application processor. It runs Linux from an SD card or other storage, has gigabytes of RAM, supports a desktop, networking and many programming languages, but takes time to boot and uses more power.
The Raspberry Pi Pico, despite the name, is a microcontroller board, built around the RP2040 or RP2350 chip. Our articles on whether Arduino is an embedded system and whether a Raspberry Pi is an embedded system go further.
Where the line blurs
The distinction is useful, but modern chips don’t always fit neatly:
- Systems-on-chip (SoCs) combine application processor cores with peripherals, graphics and radios on one chip, making MPU-based designs more integrated than before.
- High-end microcontrollers run at several hundred megahertz, include graphics accelerators and large memories, and can drive rich touchscreen interfaces.
- Hybrid chips combine application cores (to run Linux) with microcontroller cores (to handle real-time tasks) on the same piece of silicon.
- Some MCUs can run small Linux variants in special configurations, though this is unusual.
So it’s often more useful to ask what a design needs (an operating system, lots of memory, real-time control, very low power) than to focus on the label.
How to choose
Choose a microcontroller when:
- The device does a specific control task, like reading sensors and driving outputs.
- It needs to run on batteries or use very little power.
- It must respond with precise, predictable timing.
- It must start instantly.
- Cost and board size matter.
Choose a microprocessor when:
- You need a full operating system, such as Linux, for networking, file systems or existing software.
- The device has a rich graphical interface, plays video or handles heavy data processing.
- You need lots of memory or storage.
- Development speed with high-level software matters more than unit cost or power.
Many products use both: a microprocessor for the user interface and networking, plus one or more microcontrollers handling real-time control. A car’s infotainment unit and its brake controller are a good example of this division of labor.
Frequently asked questions
Is a CPU a microprocessor?
In everyday usage, yes. The CPU in a PC is a microprocessor. Strictly, “CPU” refers to the processing function, which exists inside both microprocessors and microcontrollers. A microcontroller contains a CPU core plus memory and peripherals.
Is Arduino a microcontroller or microprocessor?
Arduino boards such as the Uno are built around a microcontroller. The board itself is a development platform that makes the microcontroller easy to program and connect to other hardware.
Does a smartphone use a microcontroller or a microprocessor?
Both. The main chip is an application processor (a microprocessor-based SoC) that runs the operating system and apps. The phone also contains several microcontrollers and specialized controllers that handle tasks such as power management, sensors, touch input and wireless charging.
Which is better for beginners?
Both are good starting points for different things. A microcontroller board like an Arduino or Raspberry Pi Pico teaches how hardware really works: pins, timing, interrupts and peripherals. A Raspberry Pi is easier if you already know Linux and want to build networked or multimedia projects. Many people learn both.