Home / Embedded C Programming

Embedded C Programming: free complete tutorial with a live in-browser C sandbox and diagrams

Learn C for microcontrollers from the ground up: the C language itself, memory and pointers, bitwise operations and registers, GPIO, timers and PWM, interrupts, UART/SPI/I2C, ADC/DAC, memory-mapped I/O, RTOS basics, low power, bootloaders, build systems, debugging, MISRA-C and real chip families (AVR, STM32, ESP32). Simple English, many diagrams, 312 lessons and 628 live C examples that compile and run right in your browser, with a small simulated board for GPIO/UART/ADC/PWM output.

How to learn:Go in order. Read the theory, run the example, change it and run again, then read the checklist at the end of each lesson.

Getting Started

C Language Refresher for Embedded

Memory and Storage

Bitwise Operations and Registers

GPIO: Digital Input and Output

Timers and PWM

Interrupts

Serial Communication: UART, SPI, I2C

Analog I/O: ADC and DAC

Memory-Mapped I/O and Peripherals

RTOS Basics

Low Power Design

Watchdog, Reliability and Safety

Bootloaders and Firmware Updates

Build Systems and Toolchains

Debugging Embedded Systems

Chip Families: AVR, STM32, ESP32

Embedded C Design Patterns and Best Practices

Testing and Quality for Embedded C

Embedded Networking and IoT Basics

Embedded Interview Preparation

Real Projects

Reference