What Is Vector Table In Microcontroller

In the simplest terms, a Vector Table is a specific section of memory (usually at the very beginning of the code memory) that contains a list of addresses. Think of it as an or a lookup table for the processor.

Understanding the Vector Table in Microcontrollers If you’ve ever wondered how a microcontroller (MCU) knows exactly what to do the moment you flip the power switch—or how it manages to react instantly when you press a button—the answer lies in the . what is vector table in microcontroller

| Aspect | Description | | :--- | :--- | | | A fixed table of function pointers at a known memory address. | | Primary Role | To provide the CPU with the address of the correct interrupt handler. | | Critical Entries | Initial Stack Pointer, Reset Vector, Fault Handlers. | | Why it matters | Enables fast, deterministic response to real-time events (interrupts). | | Where it lives | Typically at the start of flash memory (e.g., 0x00000000 ). | In the simplest terms, a Vector Table is

It allows the microcontroller to respond to events in a fixed number of clock cycles. There is no searching; the CPU just "fetches and jumps." | Aspect | Description | | :--- |

In your code, you write a function called void ButtonPressed_ISR(void) ... . You then "install" this function by placing its address into the correct slot in the vector table (slot #15 for External Interrupt 0, for example).

Triggered when the CPU tries to execute an illegal instruction.

Skip to consent banner