Hello Steve,
For the voltage divider arrangement, use say 22k resistors, but rather than connect directly to Vdd, connect to a GPIO pin configured as an output. The voltage divider can then be powered down prior to entering stop mode.
For a voice audio signal, the higher ADC resolution is required to handle the dynamic range of the signal - less than the full resolution will suffice for the higher audio amplitudes. One possible data compression method is to use a quasi-logarithmic conversion approach. One bit would be required for the sign of the signal, two bits would represent a power of two multiplying factor for the signal amplitude, i.e. 1, 2, 4 or 8. The remaining bits would then be the most significant five bits of the scaled signal.
The sign and amplitude value would be derived from the raw ADC signal. The amplitude would have a possible 11-bit range. However, in your case, the MSB is always likely to be zero because of the limited output from the preamplifier, resulting in an actual 10-bit amplitude range. Now ignore the LSB, so we are left with a 9-bit amplitude value (0-511), plus sign.
The multiplying factor is represented by n = 0 - 3, and the initial value is 3.
- If the amplitude is 256, or greater, derive the 5 most significant bits of the current amplitude (right shift by four positions).
- If the amplitude is less than 256, and n is non-zero, decrement n, and multiply the amplitude by 2 (shift left by one position), and repeat the first step. If n is zero, derive the 5 most significant bits.
This processing may require use of assembly code for speed. I assume that your sampling rate would be in the vicinity of 8 kHz. Finally, the microphone preamplifier may require inclusion of a sharp cut-off 3 kHz lowpass filter to prevent "ailiasing" distortion due to audio components above 4 kHz.
Regards,
Mac