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

Why does a CS4272 with a 24.576 MHz crystal output 12.288 MHz at MCLK?

An audio system uses one CS4272 to supply audio clocks and a second codec that follows them. The assembly record lists a 24.576 MHz crystal, while the first article inspection records 12.288 MHz at the source codec's MCLK pin. The team considers a wrong crystal or taking a second clock directly from the crystal node. First map crystal oscillation, buffered MCLK and audio frame rate. A CS4272 can output an MCLK below its crystal frequency.

Use both stand-alone mode tables

For stand-alone operation with a crystal, the Cirrus Logic datasheet gives two tables. The crystal frequency is 512, 256 or 128 times sample rate in single, double or quad speed. With a crystal and the codec in serial audio master mode, the MCLK-to-LRCK ratios are 256, 128 and 128. The SCLK-to-LRCK ratio is 64 in all three cases. Use the first table to specify the crystal and the second to predict the clock pin readings. Confusing them produces a factor-of-two discrepancy between 24.576 MHz and 12.288 MHz. Cirrus Logic CS4272 DS593F2, section 5.1.3, Tables 2 and 3

At 48 kHz single speed, 512 × 48000 gives a 24.576 MHz crystal. MCLK is 256 × 48000, or 12.288 MHz, and SCLK is 3.072 MHz. At 96 kHz double speed, the crystal is still 24.576 MHz. MCLK remains at 12.288 MHz because its ratio is now 128, while SCLK rises to 6.144 MHz. Watching MCLK alone could hide the rate change. At 192 kHz quad speed, the same crystal gives a 24.576 MHz MCLK and a 12.288 MHz SCLK. Check LRCK to distinguish the three rates.

Use frame counting to determine which point differs by exactly two. The interval from one LRCK edge to the next edge of the same polarity is a full stereo frame. At 48 kHz it is about 20.833 µs, with 64 SCLK cycles and 256 MCLK cycles. Measuring only LRCK high time on a symmetric signal gives about 10.417 µs. Inverting that value incorrectly gives 96 kHz. State which edges define the measurement so the acceptance method cannot introduce another factor of two.

These examples give sourcing and engineering a common boundary. A 24.576 MHz crystal covers the nominal 48, 96 and 192 kHz rates. To support the 44.1 kHz family, the single-speed crystal ratio instead points to 22.5792 MHz. Renaming a software option does not change the actual frame rate. Decide how to select clocks or supply the external master clock before promising both families, and confirm that file metadata agrees with LRCK.

Check the receiving codec against its own clock mode

In the crystal arrangement, the crystal and load capacitors belong at XTI and XTO. The datasheet identifies MCLK as the buffered output. Use that path to supply the second codec, subject to electrical qualification. For an externally driven MCLK on the second device, ground its XTI, leave XTO open and drive MCLK as an input. Its serial audio master or slave setting determines the direction of LRCK and SCLK. Mark all clock directions on the schematic. That lets a board review find two drivers connected to the same net before hardware bring-up. CS4272 DS593F2, section 5.1.3.1 crystal and external MCLK circuits

At 48 kHz, a stand-alone serial audio slave using external MCLK receives 12.288 MHz, 3.072 MHz and 48 kHz. Its external-clock table needs to allow MCLK/LRCK of 256 and SCLK/LRCK of 64. At 192 kHz, check ratios 128 and 64 in the receiving device's own mode. The table used for each codec follows its wiring and settings. In a public discussion about ADAU1701 and CS4272, a developer asked which end should generate the master and audio bit clocks. Sharing an I²S label still leaves three clock sources and their synchronisation to specify. CS4272 DS593F2, Table 4, external MCLK in slave mode EngineerZone discussion of DSP and CS4272 clock connections

If the receiving codec is given its own oscillator while LRCK and SCLK still come from the first codec, check the slave-mode synchronisation requirement. Independent sources both marked the same frequency can differ by 50 ppm if one is +25 ppm and the other −25 ppm. Two independent 48 kHz frame references would then differ by roughly 2.4 frames per second. This shows the effect of relative frequency error. Even with only one LRCK source, the receiving device still needs its MCLK and frame timing to satisfy the synchronisation requirement. CS4272 DS593F2 clock synchronisation requirements

If the product uses control-port mode, check Tables 8 or 9 in place of the stand-alone defaults. Ratio bits can change the relationship even with the same crystal, and serial audio master or slave can be register-controlled. Keep the power-up mode and the register writes in the test record. SPI control-port registers are write-only per the datasheet. Log the actual configuration transfers and use MCLK, LRCK and SCLK to verify the result. CS4272 DS593F2, sections 5.2.3 and 7

Capture all three clocks on one time base during first article inspection

Fix the reference frequency and confirm MCLK at a suitable buffered point. Capture LRCK, SCLK and MCLK together, counting edges in each mode to verify the ratios per frame. Repeat at the receiving converter, including a cold boot, a rate change and the first audio after an external processor reset. Check probe loading before connecting to a crystal node. If the observed ratios are correct but recorded audio is still wrong, inspect the serial format, data routing and reset and mute sequence.

Also preserve the intended serial word length when considering a move from 64 to 32 SCLK periods per frame. The datasheet describes automatic dithering of the ADC's 16-bit output in stand-alone slave mode with a 32× SCLK/LRCK ratio. A 24-bit acquisition requirement therefore calls for checking format and valid word length too. Capture the frame clock, bit clock and audio data together during a reference change to identify which part of the interface changed. CS4272 DS593F2, section 5.1.4 on automatic dithering

Give procurement the complete 24.576 MHz crystal order code and load circuit along with the measured MCLK, SCLK and LRCK for all three modes. For an active MCLK option, document the population and clock source separately. Specify which circuit drives the pin, permissible frequency choices and how it produces the frame clock. When a later incoming inspection reads 12.288 MHz, identify the measurement point and sample mode before sending the crystal for retest.

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.