Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4924

Pic18F87k22 xtal prescaler timer1 problems

$
0
0
When a xtal 32kxxxkhz is used the prescaler for timer 1 seems not to be able to handle 1:1 see my T1CON settings . It does 1/2 that speed
The xtal is ' in circuit' measured and does the correct frequency.
Also tested with no xtal to make sure that the choice of source was correct.

T1CON=0b10001111; // bit 7 set conform manual.

if (TMR1IF)
{

TMR1IF=0; // allways running
TMR1H=128; // in seconden
Alive_led = !Alive_led;
}

However: it works correct with PIC18F8722 but...

Pic18F87k22 xtal prescaler timer1 problems

Viewing all articles
Browse latest Browse all 4924

Trending Articles