A 12 MHz clock can be used, but it cannot inherit a default sample-clock setup intended for a 12.288 MHz MCLK. For the TLV320AIC3104, an I²C acknowledgement shows that the control interface responded. It establishes neither a valid master-clock input nor a 48 kHz sample reference. Check the actual clock routing, frequency and selection before blaming the audio path or replacing the codec.
What does an I²C acknowledgement prove?
A logic analyzer can capture an ACK after the controller addresses the codec. Even a register readback that exactly matches a write says nothing about whether MCLK reached the input. The manufacturer explicitly notes that MCLK need not be running during programming. A board with no master clock can therefore still respond. Firmware logs should distinguish control communication, a measured clock and a passed audio test instead of calling all three “initialized.”
First identify the source. Some boards take MCLK from a processor or buffer, while others use a standalone oscillator. MCLK is an external clock input, not a pair of pins intended to sustain a passive crystal. Two schematics that both say 12 MHz may differ in how the source is generated, whether an output buffer must be enabled and what happens during startup. Follow the assembled circuit rather than assuming the block diagram describes both boards.
Measure the clock independently of the control interface
Record power, reset release and the first I²C response during the same cold start. Then verify that the clock reaches the codec at a suitable measurement point. A waveform at the source does not rule out a disabled buffer, missing series resistor, open joint or input-level problem. When comparing assemblies, keep the firmware and probe method the same and change one thing at a time. A waveform taken seconds after startup does not establish that the clock was present during initialization.
12 MHz and 12.288 MHz produce different default sample references
With the default reference divider and matching sample-rate configuration, 12.288 MHz divided by 256 yields 48 kHz. Leaving that divider in place with a 12 MHz input yields 46,875 Hz, not 48 kHz. The difference is 1,125 Hz, about 2.34% of the target rate. Tightening a 12 MHz oscillator's ppm tolerance does not correct a nominal clock-ratio error.
| Input and configuration | Nominal calculation | First check |
|---|---|---|
| 12.288 MHz, default reference divider | 48 kHz after division by 256 | Verify the source and default clock path |
| 12 MHz, same default reference divider | 46,875 Hz after division by 256 | Do not blame tolerance for a fixed ratio error |
| 12 MHz, PLL enabled as in the vendor example | P = 1, R = 1, J = 8, D = 1920 | Confirm selection and applied settings |
| I²C ACK with MCLK unverified | No sample rate established | Measure the clock separately at the receiver |
The calculation describes the nominal internal reference, not a promise that every board will drive its frame-clock pin at 46,875 Hz. An external serial-audio host may already drive the frame line at 48 kHz even though the codec's own reference is configured incorrectly. Identify the frame-clock driver and receiver before interpreting the two measurement points or the register dump.
Check the manufacturer's 12 MHz PLL example
For 12 MHz MCLK, the datasheet's 48 kHz example uses P = 1, R = 1, J = 8 and D = 1920, giving a multiplier K of 8.192. The formula gives 98.304 MHz after multiplying 12 MHz by 8.192, and 48 kHz after dividing by 2048. Fractional operation also has limits on the divided source, internal product and coefficient values. This example fits the conditions for that input. Do not reuse it for another input frequency or a similarly named part without checking its datasheet.
Correct coefficients do not prove correct sample-rate settings
Match the device suffix and firmware version. Verify that the PLL is actually fed by MCLK, that it is enabled and that the intended reference reaches both converter paths. Then check the ADC and DAC sample-rate settings and serial format. P, R, J and D are mathematical parameters, not necessarily complete bytes ready to write. Some register bytes include enable bits or other fields. Read the relevant fields back, especially after reset and low-power exit. For diagnosis, start with a fixed rate and a known tone rather than simultaneously enabling rate changes, mixing and automatic standby.
Keep 12 MHz or order a 12.288 MHz oscillator?
If the processor or other board peripherals already share the 12 MHz reference, retaining it and using the codec PLL is often the first option to validate. If a dedicated oscillator is only serving a fixed 48 kHz audio path, 12.288 MHz with the compatible default divider can simplify clock initialization. Either option still requires the correct serial-clock direction, data format and supply. Document which path the design selected instead of changing only a number on the bill of materials.
For a standalone CMOS source, Epson's SG-8018CG is one family to evaluate. Its published frequency range covers both nominal frequencies. Put the actual supply, package, enable or standby behavior and factory-programmed frequency on the ordering record. Check compatibility against the codec's actual input-level requirements; frequency alone says nothing about a direct connection. Verify the sample's output on the bench rather than accepting the label or assuming that a firmware change will reprogram the oscillator.
If prototypes can use either clock source, give each option its own assembly row, with its matching hardware revision, firmware and test record. Two frequencies under the same product label can conceal a configuration mismatch. Having the tester measure the incoming master clock first prevents an otherwise good batch of 12 MHz oscillators from being rejected for the wrong reason.
Leave a production record someone else can reproduce
Record the installed part, supply voltage, MCLK measured at the codec, divider or PLL path, frame-clock source, ADC and DAC sample modes and fixed-tone result. Test a full cold start, a software reset and a low-power recovery separately. When the host drives the serial frame, record data direction and slot settings too. Check a known input or playback stimulus so that verified digital waveforms and register readback are not mistaken for end-to-end audio.
When the replacement behaves differently, change one approved clock variable or one PLL configuration at a time. If MCLK never arrives, resolve the physical source and startup conditions first. If the right nominal clock reaches the receiver but audio still fails, investigate clock selection, serial-clock ownership and sample dividers. A working control bus narrows the search; it does not replace that sequence.
