I have a Pic 18F27J53. I have configured Timer 1 to work from the internal RC OSC and it works fine.
I then added a 32,768 XTAL between pins T1OSI and T1OSO on my pic that is pins 11 and 12. Also have one cap going from each pin to ground.
The timer does not function in this mode. Here is my code to initializr the timer:
It must be my dyslexia or something but when I ordered parts somehow I ordered 22pf caps and the xtal calls for 12pf caps.
I don't have any 12pfs on hand to try.
Would this be too large of a capacitance to cause the xtal osc not to function at all or do I have another issue?
I then added a 32,768 XTAL between pins T1OSI and T1OSO on my pic that is pins 11 and 12. Also have one cap going from each pin to ground.
The timer does not function in this mode. Here is my code to initializr the timer:
Rich (BB code):
//Timer1 Registers Prescaler= 1 - TMR1 Preset = 65475 - Freq = 32786.89 Hz - Period = 0.000030 seconds
T1CONbits.T1CKPS1 = 0; // bits 5-4 Prescaler Rate Select bits
T1CONbits.T1CKPS0 = 0; // bit 4
T1CONbits.T1OSCEN = 1; // bit 3 Timer1 Oscillator Enable Control bit 1 = on
T1CONbits.NOT_T1SYNC = 1; // bit 2 Timer1 External Clock Input Synchronization Control bit...1 = Do not synchronize external clock input
T1CONbits.TMR1CS = 2; // bit 1 Timer1 Clock Source Select bit...0 = Internal clock (FOSC/4)
TMR1H = 255; // preset for timer1 MSB register
TMR1L = 195; // preset for timer1 LSB register
T1CONbits.TMR1ON = 1; // bit 0 enables timer
I don't have any 12pfs on hand to try.
Would this be too large of a capacitance to cause the xtal osc not to function at all or do I have another issue?