Microprocessor vs microcontroller: a CPU, or a computer on a chip
A microprocessor is a central processing unit on a single chip: it fetches and executes instructions, but it relies on separate chips for its main memory, storage and input/output. A microcontroller puts a whole small computer on one chip: a processor core plus its own program memory (usually flash), RAM and peripherals such as timers, analog-to-digital converters and serial ports, so it can run a dedicated program with very few parts around it. PCs, laptops and servers are built around microprocessors; washing machines, keyboards, sensors and hobby boards such as Arduino are built around microcontrollers. Both contain a processor; the difference is everything around it. A microprocessor borrows its memory and I/O from the rest of the board, a microcontroller brings its own.
What each one is good at
Microprocessors are built for performance and flexibility: fast cores, large external memory and an operating system that runs many programs at once. Microcontrollers are built for dedicated control at low cost and low power: one program, on-chip memory measured in kilobytes, and peripherals that talk directly to buttons, sensors and motors, often running for months on a battery. To simulate microcontroller projects in the browser, see Wokwi and Tinkercad Circuits.
Where digiwleea fits
digiwleea is about the processor core both of them contain. In the browser you build it from transistors up: gates, an ALU, registers, a program counter, a control unit and RAM, in a 40+ level course with an AI tutor (Wleea); the capstone CPU runs a stored LOAD, ADD, STORE, HALT program, and Act IV builds the parts behind SUB, JMP, JZ and OUT, including an output register. Memory and an output register next to a core are exactly what a microcontroller integrates on one chip, at a much larger scale. Step through a program in the CPU simulator.
Side by side
| Microprocessor | Microcontroller | |
|---|---|---|
| On the chip | A CPU (often several cores) | A CPU core, flash, RAM and peripherals |
| Memory | External RAM and storage | On-chip, usually kilobytes to a few megabytes |
| Typical software | An operating system and many programs | One dedicated program (firmware) |
| Power and cost | Higher | Low |
| Typical uses | PCs, laptops, servers, phones | Appliances, sensors, toys, hobby boards |
No sign-up is needed to start: open the lab and place your first transistor, or read the free theory course. The account (and the AI tutor) are optional.
More comparisons: Digital logic concepts compared
See for yourself: build a logic gate from transistors in the simulator, then follow the path from sand to an 8-bit CPU.
Open the digiwleea lab →Frequently asked
What is the main difference between a microprocessor and a microcontroller?
A microprocessor is a CPU on a chip that needs external memory and I/O chips. A microcontroller includes a CPU core, program memory, RAM and peripherals on one chip, so it works as a small computer by itself.
Is Arduino a microprocessor or a microcontroller?
Arduino boards are built around microcontrollers: the processor, its memory and its I/O pins are on one chip, which runs one program at a time.
Which is faster, a microprocessor or a microcontroller?
Usually a microprocessor. Microcontrollers trade speed for low cost, low power and built-in peripherals, which suits control tasks that do not need much computing.
How is an FPGA different from a microcontroller?
A microcontroller runs a program on a fixed processor, one instruction after another. An FPGA has no fixed processor: it is configured into the circuit you describe, so many operations run in parallel in hardware.