Another question.
I use TMR0 as counter to measure the frequency at RA4
How i know, how many times the TMR0 overflow.
The maximum times is 3
For first overflow INTCON.2 = 1 , After;
pic16f88
xtal =4mhz
option_reg = %10110111
Another question.
I use TMR0 as counter to measure the frequency at RA4
How i know, how many times the TMR0 overflow.
The maximum times is 3
For first overflow INTCON.2 = 1 , After;
pic16f88
xtal =4mhz
option_reg = %10110111
Last edited by savnik; - 23rd June 2008 at 12:59.
Last edited by savnik; - 23rd June 2008 at 16:07.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Here is a link to an example Mister_e posted on ME Labs site.
http://www.melabs.com/resources/samp...ed/counter.zip
Personally, I do not understand how a PIC can count faster than it's own oscillator is running 4mhz vs 8mhz, I think you will have to up the Frequency to 20, but I may be wrong too. I thought it took 4 cycles per instruction, likely that's wrong too.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks