A synthetic sound expected to last two seconds plays in one second and rises an octave after export. Compare microphone clock, PCM samples produced per second, and the file's declared playback rate. Ordinary oscillator tolerance is much smaller than this scale change.
Use synthetic digital streams on an offline development board. This is a single-channel rate-conversion example, independent of microphone sharing or synchronization between devices.
Separate the megahertz microphone clock from the kilohertz file rate
Pulse-density modulation (PDM) carries audio as a rapid one-bit stream. The receiver typically low-pass filters and decimates it to multibit PCM. Decimation is the ratio of per-channel input rate to filtered output rate, separate from bit depth and channel count. Verify the total across stages and any later resampling.
With one valid bit each microphone clock and no resampling, 3.072 MHz ÷ 64 gives 48,000 samples per second. A 12.288 MHz active reference can generate 3.072 MHz through a divide-by-four stage. These are three quantities at different points, including the output's 48 kHz sample rate. Check the actual measurement point and do not substitute a serial frame-alignment rate for the microphone pin clock.
The container's sample-rate field may come from a setting rather than sample counting. Changing a file declaration from 48 kHz to 24 kHz can restore playback duration for actual 24 kHz data but cannot restore bandwidth or missing sample information required by a 48 kHz acquisition. If the product rate changes, requalify filters, audio, and file interoperability.
Compare a wrong integer ratio with oscillator tolerance
If 3.072 MHz is decimated by 128, output is 24,000 samples per second. Two seconds yield about 48,000 samples. Declaring those samples as 48 kHz plays them in one second. A 1,000 Hz test tone plays near 2,000 Hz. Assume no missing frames, trimming, or resampling and that the filter passes the tone.
If the dividers and decimator are correct but a common reference is +20 ppm high, fixed integer ratios give about 48,000.96 samples per second, a difference of about 0.96 per second. At nominal playback rate a 1,000 Hz tone shifts by about 0.02 Hz in magnitude, with direction set by capture relative to playback. Correct a large scale error first and use a longer run to assess drift.
Keep the count window away from filter settling, buffer prefill, and final flushing. Add space before and after the test signal. Count per channel and define stereo frames. A stereo frame contains two channel samples, so the interleaved word count is not the per-channel sample count.
Locate the first stage whose count differs
| Point | Check | What it distinguishes |
|---|---|---|
| Microphone pin | Actual frequency, mode, count window, and level during valid recording | Measured clock versus software setting |
| Decimator output | Valid samples per channel, total ratio, and start/stop conditions | Whether the rate changes in the digital chain |
| File or output frames | Total frames, bytes per frame, and declared sample rate | Header error versus insufficient samples |
| Offline playback | Pitch, duration, and indications of missing frames | Fixed scale error versus intermittent loss |
If pin frequency is correct and decimator output is half the expected count, check ratio, channel counting, and output state. If the output is correct and file count drops, inspect writer counts, queues, truncation, and header. If loss is local to some segments, inspect whether missing frames were filled with zeros or merged. A whole-session average can hide this.
Test another sample-rate mode independently. Record reference source, expected and measured microphone clock, total decimation, per-channel count, and declared rate for each mode. Similar symptoms do not establish a shared incorrect register.
Specify a 12.288 MHz reference candidate
Epson's SG-210STF series covers the example frequency for designs requiring an independent CMOS reference. The published series supply range is 1.60 to 3.63 V. Verify the exact ordering code, target supply and input threshold, output load, temperature, tolerance contributors, enable polarity, startup wait, and package orientation. Check divider input compatibility. A two-terminal passive crystal footprint is a different circuit.
Record reference frequency and per-channel sample count over the same valid interval with temperature, supply, configuration, and software version. Repeat for a different lot or suffix. Preserve evidence to distinguish a component change, ratio change, or label change.
Frequently asked questions
Can a 48 kHz recording sound normal while failing acceptance? Downstream conversion may make it sound correct while actual front-end rate, bandwidth, or added latency fails. Verify both front end and export.
Will a more accurate 12.288 MHz reference restore playback speed? It can address measured reference error. Check the integer decimation and file declaration independently to restore the required sample count.
