elecLear78
Member
I am confused with the following issue. I want to read some variable like adccount from the main but it will get updated in the interrupt routine. How should i make sure that while i am reading the variable in the main it is not simultaneously getting updated in the interrupt routine. Please help the methodology i need to implement to avoid such problems.