Hi Hasan,
If the LJ12 is indeed a member of the HC08 family (I did not verify) and you are running it at 5 volts, then the resolution of the timer is 125 nanoseconds with the maximum bus clock of 8Mhz. But this is not the full story.
To use it as a frequency counter, you will need to service an interrupt per cycle, and that will take over 2 microseconds minimum for each cycle. With background processing, you might be able to measure as fast as 400khz. It may work well for audio.
When I measure frequency, I use a high-speed, pipelined counter in and FPGA, that I then control with the output-compare function of the timer. But I have never needed to measure faster than a few tens of megahertz.
HTH
--
Alban Edit: Part number must be shown in subject line
Message Edited by Alban on
2007-06-27 02:15 AM