Updated microphone capture code

Need to test reference voltage and average voltage of mic to make sure
the comparator is triggering properly.