how does one reach the overflow on an interupt?
Moderator: Benj
-
- Posts: 26
- Joined: Wed Mar 20, 2013 2:59 pm
- Has thanked: 6 times
- Contact:
how does one reach the overflow on an interupt?
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 .
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: how does one reach the overflow on an interupt?
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
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
- Attachments
-
- Timer 0.fcf
- (14.5 KiB) Downloaded 225 times
Martin