Hello, I have wired up a frequency meter using 89C4051.The signal is connected to P3.4/T0 pin.The circuit runs on 24MHz crystal.Can anyone give me the code of a frequency counter?Thanks in advance...
so to prove erik is right, I went ahead and wrote a minimum frequency meter (15 minutes of work) on a 24Mhz 89c51, using the same isr that erik criticized to be wrong.
my count on 100Khz pulse train is 99999; my count on 1Mhz pulse train is 999999.
it counts 10hz pulse train as 10.
not bad, for an isr that doesn't work and doesn't observe T0's maximum clock rate as erik suggested.
Where is Jack Sprat to "gloat" or join Ashely's _respect_ based gang/mafia (being able to nag is a prerequisite to join). And where is Miss Embedded? It has been so long love! :-)
Hmm, I should have posted:
"It has been so long, luv!"
"Hmm, I should have posted:"
Michael: don't worry about it.
your impotence is legendary and well documented.
hmm, I should have posted:
"your incompetence is legendary and well documented."
Keep up the documentation work, Ashely. It looks like your best (well documented) gift!
Another great gift (and a truly fun propensity of yours), Ashely, seems to have the skill to get bashed my individuals that tend to dwarf you (professionally of course). There were at least 3 on this thread...But rest assured: your aggressive posture will help boost your self-esteem long enough until the next down. I hope.
"you must be measuring and awfully high frequency. do read the maximun clock rate for the T0 input"
erik: i can post my code if you could post yours demonstrating why T0's maximum clock rate matters.
cheers.
erik: here is the entire body of my isr for T1:
freq+=1; //increment frequency counter
hope it helps.
would love to see how you demonstrate the T0 issue you were talking about.
erik:
again, would you please point out for us why T0's maximum clock rate matters when T1's counting the pulses?
please?
And you've demonstrated several times over since you popped in here that you don't know a thing about distinguishing a correct piece of code from a bad one.
Yes?
Can't we just reset this random "everyone is a fool" debate? Is there anyone who actually believe that it will lead to anything? Lots of random noise will just destroy the day for everyone involved - and everyone else who happens to visit this forum and gets their time wasted with irrelevant posts.
This forum is funny. There are people who post good questions. There are people who post dumb questions. There are people who just can't resist and have to respond to everything. There are people who post nonsense. There are people who like to argue. There are people who like to agree with the crowd. There are even a few people who sometimes post with good answers. There are so few people and such clear categories. Fascinating.
Magnus Tucker.
BEng (Hons).
Would that be just a 5-minute argument, or the full half-hour...?
"This forum is funny. "
but it is always entertaining to see the titans of this forum (erik / tamir) struggling to get out of holes they dug themselves into.
it beats out watching "dumb and dumber".