Page 1 of 1
TMR0 Bug 16F887?
Posted: Wed Aug 19, 2009 8:52 pm
by medelec35
When Enable Timer0 and set properties to interrupt on Transition on T0CKI pin. With O/P on RA4=0. interrupt Timer0 macro constantly accessed as though setting are set on internal osc.
Settings: High to low transition
Prescaler = 1:1
Clock speed = 4MHz
Re: TMR0 Bug 16F887?
Posted: Thu Aug 20, 2009 7:43 am
by Benj
Hello Medelec
Do you have any circuitry connected to the T0CKI pin. When you activate this as the timer clock source I think the chip may automatically make this pin an input and therefore if you do not have anything connected the pin is free to float. Try tying the pin to VDD or Ground and see if the problem remains.
Re: TMR0 Bug 16F887?
Posted: Thu Aug 20, 2009 7:52 am
by medelec35
Sorry was not too clear. I am only refering to Flowcode simlator, not got to hardware stage yet. Perhaps I should of wrote more than 'macro constantly accessed'.
Re: TMR0 Bug 16F887?
Posted: Thu Aug 20, 2009 12:12 pm
by Benj
Hi Medelec
Ok I see that fair enough then. I think the simulator simply assumes that the timer will be running. I know this is not ideal and have added it to our bugs list.