If the TMR0 register is written to, the increment is inhibited for the following two instruction cycles. The user can work around this by writing an adjusted value to the TMR) register.
thanks very much. ı'm using pic16f877.ı want to do that. ım explaning.a signal range from 0 volt to 5 volt is coming RE5 pin.and the timer start to count and then another current signal is applied RE6 when it is applied ı want to stop count.and calculate the mikroseconds which timer counts,and then ı will find the cos fi.ı cant write this code please help me.
real aim of me is the timer0 start to count when voltage(0 volt-5 volt) come Re5 and then when the current signal come Re6 pin timer0 is stopped.the time between this duration will be calculated and then is converted angle.that give me the angle between voltage signal and current signal.(cos fi).thanks for helping from now.