Home / Learn Embedded C / AVR, STM32 and ESP32 at a Glance

AVR, STM32 and ESP32 at a Glance

A one-page comparison of the three chip families this course refers to most.

The gistA one-page comparison of the three chip families this course refers to most.

The idea, explained simply

Definition

AVR (8-bit, e.g. Arduino Uno), STM32 (32-bit ARM Cortex-M) and ESP32 (32-bit, with built-in Wi-Fi/Bluetooth) are three widely used, well-documented microcontroller families.

Why you need this

These three cover most of what a beginner-to-intermediate embedded developer will meet: a simple 8-bit classic, a serious 32-bit industrial workhorse, and a wireless IoT chip.

How it works

Each has its own toolchain (avr-gcc, arm-none-eabi-gcc, and the ESP-IDF/Arduino core) and peripheral register layouts, but the C language and most embedded patterns (GPIO, timers, interrupts, UART) transfer directly between them.

Where you'll see this

  • Hardware selection
  • Job interview chip-family questions

Try it

Picking a family from a one-line requirementC: edit and run

This mirrors the quick mental shortcut many engineers use before a deeper requirements comparison.

FamilyCoreTypical RAMStandout feature
AVR (ATmega328P etc.)8-bit AVR~2 KBSimple, beginner-friendly, huge Arduino ecosystem
STM3232-bit ARM Cortex-M20 KB–1 MB+Very wide peripheral set, strong industrial support
ESP3232-bit Xtensa / RISC-V~320–520 KBBuilt-in Wi-Fi and Bluetooth

This course's "Chip Families" group goes into each of these in more depth, including real register-level examples and gotchas for each.

Try it: comparing typical RAM across the three families

Printing the typical RAM for AVR, STM32 and ESP32C: edit and run

Looping over parallel arrays like this is a quick way to compare a spec across several chip families side by side.

Test what you just read

1. Which family is specifically known for built-in Wi-Fi and Bluetooth?