Ok so Ive been trying to develop a frequency counter. In order to do that I am writing "T1CON = 0b11001111;" to Timer 1 in my code. The shocking part is , when I debug it , I see "T1CON = 0b10001111;" in the watch window.
8-O I DONT KNOW WHY THIS IS HAPPENING !!!!!!!!!!!!!!!!!
Im writing something to Timer1 and something else is being written to it.... Is my code possessed? :lol:
Jokes apart, I am super duper confused ! Im running out of time with my project and these strange errors are making me really realllllllllly worried ! I feel hopeless to be honest !
Bit 6 in T1CON, T1RUN, is a read-only status bit. You can't write to it.
---------- Post added at 23:41 ---------- Previous post was at 23:32 ----------
Further... T1RUN is set only when the PIC is using the Timer1 Oscillator (external 32.76KHz source) as the whole system clock, in some sort of power-saving mode. Otherwise the bit is zero.