When an interrupt occurs, the microcontroller will use the vector table to determine which ISR to execute. For example, if the timer 0 overflow interrupt occurs, the microcontroller will jump to the address stored in the vector table at index 0, which is 0x1000. The ISR for timer 0 overflow is located at that address, and it will be executed.
Here's a step-by-step explanation of how the vector table works: what is vector table in microcontroller
This is the most important entry. When the MCU is powered on or reset, the hardware automatically looks at this specific memory address. It contains the starting address of your main program. Without a reset vector, the CPU is "blind" and won't know where the first line of code is. 2. The Stack Pointer (Initial Value) When an interrupt occurs, the microcontroller will use