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

HELP! How to use a counter to count the number of pulses in a SPECIFIC TIME?

Hi all,

I am using AT89C52 and I am writing C codes to program my chip. I wanna use the counter to count the number of pulses (around 1-2kHz) in a specific time, say 100ms. Could anyone give me some suggestions for writing the codes?

Thank you very much!

Dave