I have initialised the RTC. I have two external interrupts.
In first interrupts, I am loading the full 0xFFFFFFFF value to the LDVAL and started the timer. (It is down timer)
In second interrupt, I am reading the Current value of the timer using CVAL register. and clearing to TIF bit & disabling the timer. So as to calculate the time between two interrupts. (I have taken care that time between two interrupt is less than 60 seconds so that timer is not getting reloaded again and again)
But, It is not giving me expected result.
Can anyone help me through this or suggest any other method to calculate the time between two interrupts?