gardners / c65gs

FPGA-based C64 Accelerator / C65 like computer
83 stars 23 forks source link

Stereo microphone is not supported #8

Open gardners opened 10 years ago

gardners commented 10 years ago

The stereo microphone is likely very easy to add support for. We can just map the left and right samples to a couple of registers.

The ADMP421 outputs in Pulse Density Modulation (PDM), which would need conversion to 8-bit samples.

The first stage is to simply clock the unit at 1MHz - 5MHz. Higher frequencies are probably preferable for improving audio quality.

Then pull the audio bits out for left and right channels alternately.

Finally, the samples need to be integrated from the pulse stream. We need to find a suitable algorithm for this. It might be as simple as counting the 1s in the most recent x pulses.