Page 1 of 1
how does one reach the overflow on an interupt?
Posted: Thu Apr 25, 2013 5:03 pm
by gangusgreen
I am following the flowcode instructions from microchip on using their development board and I am using the comparator circuit with the timer and it says to use the TMR0 Overflow interupt but it is not available for the pic16f690 in the drop down window on version 5 .What am I doing wrong? The only interupt for this time is called TMR0 .
Re: how does one reach the overflow on an interupt?
Posted: Thu Apr 25, 2013 6:29 pm
by medelec35
Timer0 interrupt you see is what you call timer0 overflow, since when set up a macro will be called when an internal register (which is incrementing by 1 at a time) rolls over (or over flows) from 255 to 0.
This incrementing by 1 can be done by an internal clock or an external clock(or pulse) on the T0CKI Pin.
I have posted a basic example of using timer0 to count in seconds.
Simulation is slower than real life
There is plenty of information on interrputs on this forum and the internet in gereral.
Martin