I'm getting confused in a basic concepts, A microcontroller has a hardware timer that is configured to generate timer interrupts for every 1 ms. When the interrupt occurs every 1 ms. The microcontroller takes action on each interrupt. Suppose the microcontroller takes less than 100 us to service the interrupt service routine.
I understand that the microcontroller enters the interrupt service routine every 1 ms. I don't understand at what time the microcontroller exits from the interrupt service routine.
Does the main main loop do nothing until 1 ms has elapsed?
In my situation, I guess the microcontroller enters the interrupt service routine every 1 ms and goes back to the main loop after spending 100 us in the interrupt service routine.
I understand that the microcontroller enters the interrupt service routine every 1 ms. I don't understand at what time the microcontroller exits from the interrupt service routine.
Does the main main loop do nothing until 1 ms has elapsed?
In my situation, I guess the microcontroller enters the interrupt service routine every 1 ms and goes back to the main loop after spending 100 us in the interrupt service routine.