Thank you very much Darrel. Surely learnt something new in this project.
So, even when variables are getting saved before entering ISR, only lower bit of timer one is getting incremented in that time. Previously I was resetting it again to '0', which I shouldn't do and let it increment to keep it in sync. BUT it does not reach to higher bit of timer1 in such short time, so we only put TMR1H.7=1, which keep everything simple and in sync.
That is why you also said that in my code it does not matter if that statement is in the beginning of the code or end, because the increment does not reach that higher value even after executing some statements in my ISR.
Got it now (Atleast I hope I have this concept cleared FOREVER)
___________________
WHY things get boring when they work just fine?
Bookmarks