Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / System Validation and Replacement

Why does nRF5340 audio recorded at a nominal 16 kHz play back too short with a good 32 MHz TaiTien crystal?

Check the I²S clock source and divider before replacing the crystal. Nordic's nRF5340 configuration example requests 16 kHz with PCLK32M and an MCK-to-LRCK ratio of 256. The achievable MCK in that row is 4.000 MHz, rather than the 4.096 MHz target, so the frame rate is 15,625 Hz. The error is about −2.34% even with a perfect 32 MHz reference. A 32 MHz TaiTien XZ may be evaluated for the high-frequency oscillator, but tightening its ppm grade does not change the divider result.

With no rate correction, 60 seconds captured at 15,625 frames per second contains 937,500 frames. If the file header says 16,000 frames per second, a player consumes them in about 58.59 seconds. This is not evidence that a buffer dropped frames. The rate mismatch alone can account for the difference.

Measure LRCK and MCK against the same timebase and check the actual CONFIG.CLKCONFIG, MCKFREQ and RATIO values against Nordic's example. If the product requires nominal 16 kHz, Nordic's ACLK example uses a 12.288 MHz audio source and shows 1.024 MHz MCK with RATIO = 64, giving nominal 16 kHz LRCK. Verify that the external codec accepts the resulting MCK ratio, and check which device is responsible for generating the frame clock before changing the configuration.

Record the reference, programmed configuration and measured frame rate separately. If LRCK is correct but the file still plays short, look for lost frames or incorrect metadata rather than changing the crystal.

Related selection guide: MERLIN Crystal Timing: Quartz crystals

Resource link: https://www.mecxtal.com.cn/en/products/quartz-crystals.html

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.