
Originally Posted by
savnik
No.
I use TMR0 as counter to measure the input frequency at RA4 for 256ms.
The frequency is between 0.3mhz and 8mhz.
My problem is how many times the TMR0 overflow.
I use pic16f88 and 4 mhz xtal. (I don't to change these)
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