Re: Help about Counter ASM file
Passed by this post and found the example interesting to read through, although I agree it does sound homeworky.
Without giving the answer away I would take a look under "Constants and Timings".
Also take a look at the subprogram "count_pulses:"
Take note of the variables;
The author has given lots of information, comments and hints to how this program works.
Note that they have gone to the effort of recording how many instruction cycles are used per loop, those number of loops determine the count time of measuring the pulses, being 1, 0.5 or 0.25 seconds. Don't forget if you count the number of pulses for a shorter period then you must also make changes to the calculations that display the frequency.