What is the difference between a microcontroller and a microprocessor, and when would you choose one over the other for a product?
FoundationalHow to answer
What they’re really asking
They want to confirm you understand the basic system-on-chip versus discrete CPU tradeoff and can reason about it at a product level, not just recite a definition.
Strong answer structure
Microcontroller integrates CPU, RAM, flash, and peripherals (timers, ADC, UART) on one die; microprocessor is just the CPU and needs external memory and peripherals. Choose an MCU for cost-sensitive, low-power, deterministic control tasks (motor control, sensors). Choose an MPU when you need an OS, high compute, lots of RAM, or a rich UI (Linux gateway, camera). Mention BOM cost, board complexity, boot time, and power as decision drivers.
Likely follow-ups
- How does boot time differ between an MCU running bare metal and an MPU booting Linux?
- Where does an application-class MCU with an MMU fit in this picture?