I am using a TIMER1 overflow interrupt,
I have written a quick code to test to see if i can update a variable with the interrupt as its being checked by a while statement.
byte FLAG = 0;
FLAG = 1;
while(FLAG == 0);
FLAG = 0;
It doesn't notice the interrupt change in the FLAG status with : while(FLAG == 0);
It does notice the flag change however if i put something in the while loop to check eg:
Does anyone know why this is happening?
Doesn't " while(FLAG == 0);" continuously check the state of FLAG anyways?