Hi,

I am rectifying the audio signal as part of my circuit to control the voltage and current the microcontroller will see, so as not to send it to much voltage or current. I forgot to post yesterday that the rectification happens after passing the audio signal through an opticalisolater. This is to seperate it from the stereo deck for safety.

What I want to do is simply have the microcontroller see is there is the signal present at an input pin and if so then it will turn on an output pin which will turn on my amp through a transistor circuit.

I think that the count command should be able to detect that the audio signal is there if/when it is. I was just hoping for some feedback that I am correct in this assumption.

This is a link to more information on what I am trying to do:
http://www.picbasic.co.uk/forum/showthread.php?t=2033


Thanks,
Michael