I am trying to visualize the main while loop and the way it works. I have written some code that toggles a PIN and then attached an oscilloscope to visualize the output. It was not a very nice one - it definitely did not look the same as I would get from a global interrupt. Something like this: (lower one is the interrupt)

I recently had a little problem where I had an interrupt that took too long and thus the code was never going back to the main while loop. That got me thinking what triggers and defines the main while loop? How would it look like in a graph similar to the one I free-drew above? Hopefully my question is understandable

I recently had a little problem where I had an interrupt that took too long and thus the code was never going back to the main while loop. That got me thinking what triggers and defines the main while loop? How would it look like in a graph similar to the one I free-drew above? Hopefully my question is understandable