Overview - Interrupt vector table
What is it?
An interrupt vector table is a special list in a microcontroller or processor that tells it where to find the code to run when an interrupt happens. Each entry in this table points to a function called an interrupt service routine (ISR), which handles a specific interrupt. When an interrupt occurs, the processor looks up the address in this table and jumps to the corresponding ISR. This helps the processor respond quickly to important events like timers, input signals, or errors.
Why it matters
Without an interrupt vector table, the processor wouldn't know which code to run when an interrupt occurs, causing delays or missed events. This would make devices slow or unreliable, especially in real-time systems like medical devices, cars, or home appliances. The interrupt vector table ensures fast, organized, and predictable responses to hardware events, making embedded systems efficient and safe.
Where it fits
Before learning about interrupt vector tables, you should understand basic microcontroller architecture and how interrupts work. After this, you can learn about writing interrupt service routines, configuring interrupts, and advanced topics like nested interrupts or interrupt priorities.