This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

using 89C4051.

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...

Parents
  • 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.

Reply
  • 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.

Children