Ground Embedded KO Subscribe

Roadmap / Foundations

Computer Architecture

You need memory maps and interrupts to read a datasheet or reference manual.

Goal Explain how your C code actually executes inside the chip.

  • BasicLevel
  • about 3 weeksat one hour a day
  • 10topics
  • 1labs
  1. 01
    Von Neumann and Harvard

    Whether code and data travel the same path or separate ones.

    Read the note →

  2. 02
    Inside the CPU

    Registers, the ALU, the program counter, and the fetch-execute loop.

    Read the note →

  3. 03
    Pipelines

    Overlapping several instructions, and why branches are slow.

    Read the note →

  4. 04
    Memory hierarchy

    Registers, cache, SRAM, Flash: the faster, the smaller and costlier.

    Read the note →

  5. 05
    Memory map

    Code in Flash, variables in SRAM. Everything in an MCU has an address.

    Read the note →

  6. 06
    Buses and peripherals

    Peripheral registers live at memory addresses too. AHB, APB and memory-mapped I/O.

    Read the note →

  7. 07
    Stack and heap

    The stack that grows with every call, and why embedded code is wary of the heap.

    Read the note →

  8. 08
    Interrupts and exceptions3D lab

    Stop, save state, jump to a handler, and return.

    Read the note →

  9. 09
    DMA

    Hardware that moves data between memory and peripherals without the CPU.

    Read the note →

  10. 10
    ARM Cortex-M overview

    M0, M3, M4, M7, and how MCU families such as STM32 are organised.

    Read the note →

CHECK TASK

Draw one function call as a stack diagram

Show step by step how registers and the stack change when a two-argument function is called.

If you can tick all three, move on to the next subject. Ticks are saved in this browser only.