hey all, im going to be building a nice and hard project and i need some help coding my pic. im not sure of the name of the pic i will be using, but it has an analog-2-digital converter, onboard. now leaving that apart, i will be inputin an audio signal. what i need this pic to do, and i will be overclockin it to 20 MHZ for the fastest processing, is that i need this pic to convert the audio signal to digital, and than count the length each digital signal lasts, and based on its length, output a specific voltage to one if its outputs. this will be a full wave spectrum analyser. basically, if the audio signal is within 0-600HZ, bass noise, it will look at this signal, and based on its length from 0-600 hz output lets say if its 300, 1/2 volts to pin 6; than i will use an led driver set for a reference of from 0-1 volt to drive 10 leds for that specific frequency range. i will have as many drivers/channls as i have output pins for and what i need help with is not the conversion to digital, but how do i go about making this pic count the Length of a single digital wave at a time and store it in one of its registers for the next step which is processing it and outputtin a voltage. thank you for your read of this long post and i hope someon can help.