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 with T1CON=0b00001111; // as set conform manual
Both boards same hardware but pwr changed conform manual.
Software successfully ported from 8722 to 87k22 changes done conform manual.
(Timer 1 only problem. Easy to program around but that's not the correct way)
I don't understand this problem
Known problem or to sleepy to find the solution?
Whom has the answer?
Picbuster
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 with T1CON=0b00001111; // as set conform manual
Both boards same hardware but pwr changed conform manual.
Software successfully ported from 8722 to 87k22 changes done conform manual.
(Timer 1 only problem. Easy to program around but that's not the correct way)
I don't understand this problem
Known problem or to sleepy to find the solution?
Whom has the answer?
Picbuster