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.
More dots should solicit better answers. I suggest you use more........................................
Here is a clue: "capture" maybe too complicated for the OP Here is another clue: "timers"
Erik
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.