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

HOW TO FIND THE DIGITAL COUNT OF THE UNKNOWN FREQUENCY USING 8051

Dear experts,
I working on 8051 microcontroller. I
have an quiry regarding the pulses of unknown frequency.

I am equipped with the following things: 1) I have an 8051 microcontroller. 2)I have an unknown frequency source.

My Purpose: I want to measure the digital count of the unknown frequency that
will be fed to 8051.

My queries:

1) Please let me know what logic has to be used to calculate the
digital output after these pulses(unknown frequenc pulses) are fed to an
8051 microcontroller.

2) for the above issue whether one counter is sufficient or two counters are required since 8051 has two number of counters.

Thanks, SUNNY.

Parents Reply Children
  • Do something very simple to start until you have the time to become familliar with your device.

    For example: Use an edge interrupt to increment a counter. At the same time use a timer interrupt to re-start the counter and give you a fixed time base.

    While doing this you will probably read over the capture register feature and you could see how that might be used.