Beurk... no forget that..i just see your frequency range...
Maybe the use of PAUSE could be just enough.
0.25HZ => period =4Sec
4HZ => period = 0.25 Sec
Something like
Code:
While FreqInput=1 : Wend
While FreqInput=0 : wend
While FreqInput = 1
Pause 10
HalfPeriod=HalfPeriod+1
wend
Frequency = 10000/(HalfPeriod * 2)
In the above 4HZ will return => 400, 0.25HZ will return 25 as value....
then just to play with the DEC, DIG to display your frequency.
Should be enough to start.
Last edited by mister_e; - 5th January 2006 at 02:22.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks