PCM
What is PCM
PCM (Pulse Code Modulation) is the basic method for turning analog audio into digital audio: sample the waveform at a fixed interval, quantize each sample's amplitude into an integer, then encode the result in a defined format.
Three basic parameters
- Sample rate fs: samples per second. The highest recoverable frequency is fs/2 (the Nyquist frequency). CDs use 44.1 kHz, giving a limit of about 22.05 kHz.
- Bit depth N: the number of bits per sample. Theoretical dynamic range is about 6.02N + 1.76 dB, so 16 bit gives roughly 98 dB.
- Channels: 2 for stereo.
Data rate = fs × N × channels / 8. At 44.1 kHz / 16 bit / stereo this is 1,411,200 bit/s (about 1.41 Mbit/s).
Quantization and noise
Quantization approximates a continuous amplitude with discrete values, producing quantization error. Dither can convert that distortion into noise at low levels. An insufficient sample rate causes aliasing, so an anti-aliasing filter is required before the ADC.
Common specifications
| Use | Sample rate | Bit depth |
|---|---|---|
| CD | 44.1 kHz | 16 bit |
| High-resolution audio | 96 / 192 kHz | 24 bit |
| Professional production | 192 kHz and above | 24 / 32 bit |
Difference from DSD
PCM represents a waveform as "samples + bit depth"; DSD represents it as a 1-bit pulse density. The two can be converted or transported through D2P and DoP.