A microcontroller is a compact integrated circuit that combines a processor core, memory and programmable input and output peripherals on a single chip, designed to run a dedicated control program. Unlike a general-purpose processor, it embeds the resources needed for embedded control directly, enabling low-cost, low-power operation in devices that sense and actuate their environment. Microcontrollers execute firmware in real time and are the computational heart of countless embedded and robotic systems.

Overview

  • Microcontrollers trade raw computational power for integration, low cost and low power: everything needed to control a small system is on one chip, so the device can run for years on modest energy.
  • They are programmed with firmware that interacts directly with peripherals such as timers, analogue-to-digital converters, pulse-width-modulation generators and serial interfaces, giving precise, deterministic control over hardware.
  • Because their behaviour is predictable and their resources constrained, microcontrollers are typically programmed against the bare metal or a lightweight real-time operating system rather than a full general-purpose OS.

Key aspects

  • An on-chip processor core executes the control program directly from integrated flash memory.
  • Built-in peripherals handle timing, analogue sensing, digital I/O and communication buses.
  • Deterministic, real-time execution allows tight control loops for sensing and actuation.
  • Low power modes let the device sleep between events to conserve energy.

Applications

  • Robotics control loops driving motors, servos and sensors.
  • Internet-of-things endpoints that sense, process and report data.
  • Appliance, automotive and industrial embedded controllers.
  • Wearables and battery-powered devices needing long operating life.

Provenance