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
  • Not being a C51 guy I cannot answer in detail.
    What you need is a counting hardware timer that generates interrupts. You might also need to make your IO pin generate an interrupt and then calculate in the timer ISR, or instead use capture/compare functionality of the timer if you have it.
    Did you read the user manual of your processor?

Reply
  • Not being a C51 guy I cannot answer in detail.
    What you need is a counting hardware timer that generates interrupts. You might also need to make your IO pin generate an interrupt and then calculate in the timer ISR, or instead use capture/compare functionality of the timer if you have it.
    Did you read the user manual of your processor?

Children