Skip to content
UPEEC

Embedded Programming

Writing software for microcontrollers: bare-metal code, interrupts, real-time operating systems and direct hardware access.

Intermediate
Comments 0

Embedded software runs on devices with limited memory and no screen, must react to the physical world in real time, and often has to run for years without crashing. It is usually written in C or C++, sometimes MicroPython or Rust.

Sub-topics (4)

Bare-Metal Programming

Program the microcontroller directly, without an operating system — a super-loop plus interrupts.

Intermediate♥ 0🔖 0💬 0

Interrupts and ISRs

Hardware events pause the main program and run a short Interrupt Service Routine immediately.

Intermediate♥ 0🔖 0💬 0

Real-Time Operating Systems

An RTOS runs multiple tasks with priorities and guaranteed timing on a microcontroller.

Advanced♥ 0🔖 0💬 0

Memory-Mapped I/O

Peripherals are controlled by reading and writing special memory addresses called registers.

Advanced♥ 0🔖 0💬 0

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.