I have a complex audio signal that I am passing through a full-bridge rectifier to turn it to a DC signal. I am then limiting the the signal to 5V max. After rectification and limiting the signal will range from 0 to 5V and 20 Hz to 20,000 Hz. Using a 4Mhz crystal it can count up to frequency at 25,000 Hz.

My question is using the count command which counts the amount of times a low to high transition is made can be used on this complex DC signal? Or does the command only work for a pulse wave?

I would be happy to provide a schematic of the full-wave rectifier and limiting circuit that I am using to the send the input signal to the microcontroller from if anyone would like to look at it.

Thanks for the help,
Michael