does anyone have any ideas if 2 analog sound signals are need to be compare at the same time, to know which one has the highest amplitude?
note: the microphones has 1v dc offset and due to the fact that PIC16F877A can only convert 1 analog to digital at a single time, so how i can compare 2 signal at a time?
issit possible to use a comparator? or any better solutions?
One posible solution would be to filter your signals to remove the offset. This can be done by a High pass filter with discret componets or by soft inside the 16F877. The soft aproach using F877 can be a very time consuming programming task.
Then you could measure the amplitud in a time window, I mean take several samples for a while and keep the highest from each signal, then compare numericaly.
The measurement of the amplitud can also be made with discrete components by means of a peak detector. In this case the time windows would be given by teh time constant of the peak detector
The comparation can also be made by means of a discrete comparator, but then you would have not used for the PIC