Research Careers Contact

GlossaryMicrocontroller

Microcontroller

A microcontroller, or MCU, is a single chip that combines a processor core, flash memory for the program, RAM and peripherals such as timers, ADCs and serial interfaces. It runs one dedicated firmware program that senses, decides and drives outputs inside an embedded device.

How it works

At power-up, the core starts executing firmware from internal flash, often through a bootloader. The firmware configures the clock and the peripherals, then works through them. GPIO pins read switches and drive enable lines. Timers generate PWM for motors and capture encoder or pulse inputs. ADCs read voltages from sensors. UART, SPI, I2C, CAN and USB controllers move data to other chips. Interrupts let a peripheral pause the core's current work when an event needs attention, and DMA moves data between peripherals and memory without the core.

Many 32-bit MCUs use cores built on the Arm architecture, and others use RISC-V or proprietary cores. They range from tiny parts with a few pins to devices with floating-point units, DSP instructions, hardware cryptography and secure boot.

Microcontroller vs microprocessor

A microprocessor, or application processor, has a faster core and memory management, and relies on external DRAM and storage to run an operating system such as Linux. An MCU runs from its internal memory, starts almost instantly, draws little power and responds to events with predictable timing. Robots and drones use both: MCUs for control and I/O, application processors for perception and planning.

Why it matters

The MCU sets what a board can do in real time: how many PWM channels it has, how fast control can run, which buses are available and how much code fits. It also drives pin assignment and layout, since each peripheral function is tied to specific pins. A supply problem with one MCU part number can stop a whole product, so the choice touches sourcing as much as design.

How to get it right

  • List every peripheral and pin the design needs, then check the MCU's pin multiplexing before choosing a package.
  • Leave margin in flash, RAM and CPU time for later firmware features.
  • Follow the reference design for decoupling, crystal and reset circuits.
  • Bring out a debug port such as SWD or JTAG on every board.
  • Check long-term availability, and qualify an alternate part where possible.

Microcontrollers in robotics and drone hardware

A flight controller is built around an MCU that reads the IMU, runs attitude control and commands the ESCs. Robot joints, BMS boards, ESCs, gimbals and sensor modules each carry their own MCU, often talking over CAN or RS-485 to a central computer. In production, each MCU must be flashed, given its serial number and keys, and tested, which makes programming access part of the board design from the start.

Learn more