TMR1 external LP xtal setup check
can someone double check my setup for TMR1 to use 32KHz external LP xtal on 16F877a?
I think i got it right, but TMR1 doesn't seem to be working...
Code:
TMR1L = 0 ' reset TMR1 low to 0
TMR1H = 0 ' reset TMR1 high to 0
PIE1.0 = 0 ' Disable TMR1 interupt (double check)
T1CON.5 = 0 ' Setup TMR1 timings 1:1
T1CON.4 = 0 ' Setup TMR1 timings 1:1
T1CON.3 = 1 ' Oscillator is ON (LP OSC Mode)
T1CON.2 = 1 ' do not Synchronize external clock input
T1CON.1 = 1 ' External clock from pin RC0
T1CON.0 = 1 ' Enables Timer1
thanks