Could somebody help me to make code which counts how many rising edges comes during 20ms ? I feed square wave to MIC plug. 20ms should be variable, so I could change it afterwards.
I am just trying to count frequency of pulses.
Square wave comes from pulse sensor or tooth gear with proximity sensor or hall-effect sensor.
All kind of help is very welcome.