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

Why does WM8804 MCLK follow the audio input with a healthy 12 MHz crystal?

After replacing a 12 MHz passive crystal on a legacy audio board, CLKOUT measures 12 MHz. When the player changes from 48 kHz to 44.1 kHz, the board's MCLK changes. A schematic may call both nets master clocks, but they follow different paths. Cirrus Logic lists the WM8804 as discontinued. This is a diagnostic and repair example for existing boards.

Use the reset straps to establish MCLK direction

The hardware-mode diagram requires a 12 MHz reference, from either the crystal circuit or a clock applied to XIN. The broader crystal frequency range advertised for the device does not apply directly to a hardware-strapped board. The data sheet explains that SDIN is sampled at reset to select hardware or software control. In software control, changing the reference also calls for a review of PLL settings and the clock circuit. For a like-for-like repair, compare replacement 12 MHz passive crystals in the original configuration.

In hardware control, the device also samples SCLK to select the digital audio interface role. A latched high selects master mode, making MCLK an output. A latched low selects slave mode, making MCLK an input. A measured clock on the net may be driven by another codec. If the controller or pull resistors changed, measure the strap during reset and confirm that both ends do not drive the clock together. A functional waveform later in operation may hide the original strap level.

Distinguish local CLKOUT from recovered MCLK

The hardware-mode clock diagram routes the local oscillator to CLKOUT. For an interface operating in master mode with S/PDIF reception locked, MCLK follows 256 times the recovered sample rate. At 48 kHz that is nominally 12.288 MHz. At 44.1 kHz it is 11.2896 MHz. The two differ by 998.4 kHz. The 12 MHz passive crystal has a nominal period of 83.333 nanoseconds, while the two recovered clocks have periods of approximately 81.380 and 88.577 nanoseconds. When CLKOUT stays steady and MCLK moves between those two rates with the input, the two paths are behaving as expected.

In software control, CLKOUT can be switched to another source and an MCLK output can be set to the local oscillator. Read the actual configuration before assigning a cause. If firmware reports the SPDSTAT REC_FREQ field, its table places 44.1 and 48 kHz in the same category. Distinguish them using a known audio generator and the measured LRCLK or MCLK frequency.

Verify local oscillation and clock recovery separately

Use a known source at both 44.1 and 48 kHz with the intended interface role. Record CLKOUT, MCLK, LRCLK, and the available lock indication. Compare running frequency after lock, then observe startup and lock recovery when the input is disconnected and restored. Use the documented lock output in hardware mode or read UNLOCK where software control permits. A running CLKOUT establishes the local reference path. If lock is unstable, inspect the line input and receiver. If lock and MCLK are correct but there is no audio, verify the downstream clock ratio, frame format, and edge timing.

Create a two-rate repair record. Include local 12 MHz clock activity, the corresponding recovered clocks, and the audio path at each rate. If the 12 MHz passive crystal changes, record load capacitors and startup observations in a separate part of the same record. A later board that fails to switch can then be checked for slave mode, loss of lock, or a local MCLK source setting.

For an intermittent legacy board, start it without S/PDIF present and capture the local clock. Then apply a constant-rate source. With the board still powered, repeat signal removal and reapplication. This distinguishes cold oscillator startup from receiver relock. Record the connection and reset sequence, since connecting other equipment can also change the interface role or grounding.

Trace the board before assigning test-point labels. A convenient test pad may expose local CLKOUT while a different MCLK net actually reaches the downstream part. Start with a fixed-rate generator. Confirm the probe points from source to receiver, then change the rate. If the downstream chip divides the clock internally, capture its physical input and correlate it with the firmware-reported rate. This distinguishes a missing source, a broken connection, and a rate reported after division.

The frequency ratio is an additional repair check. With a 256-times clock, one LRCLK frame spans 256 MCLK periods. Observe a verified frame marker alongside the apparent 12 MHz clock and count over several frames. The ratio remains interpretable even if the instrument's automatic frequency display varies slightly. If a downstream device needs the clock before reset release, capture its reset input as well, particularly after a change in sample rate. The repair checks then cover restoration of the audio path along with the local oscillator.

References

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.