I have a interrupt which reads RTC registers & one another important function every 1 sec after.
Now in main code I read these registers, how to ensure that while reading they don't get updated in interrupt. I don't want to disable interrupt as one important task I carry out in it