Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / Digital Interfaces and Clock Division

12.288 MHz crystals: calculating BCK for four audio slots

A four-channel microphone interface uses a 6.144 MHz TDM bit clock. The software mutes two channels and the clock stays at 6.144 MHz. Determine whether the software changed the sample values or changed the two slots on the wire. If the transmitter still provides four 32-bit slots, the receiver still counts 128 periods before the next frame.

Measure a whole frame between equivalent sync edges

Suppose the frame rate is 48 kHz, with four slots of 32 bits each. BCK is 48,000 × 4 × 32 = 6.144 MHz. A frame lasts about 20.833 µs and each 32-bit slot takes about 5.208 µs. If the board has a 12.288 MHz master clock in this example, it is twice BCK and 256 times the frame rate. Two contiguous 32-bit slots at 48 kHz would give 3.072 MHz. That result requires a real change to a two-slot frame. If the design retains idle clocks at the end, use the full frame interval in the calculation.

Pick the frame edge that the protocol marks as active and find the next equivalent edge. Count complete clock periods and mark the actual slot boundaries. Some modes use a one-clock sync pulse, so measuring just its active width misses the payload. If there are still 128 periods and slots 2 and 3 are zero or idle, those positions still exist. If BCK drops to 3.072 MHz, count through the end of the second slot and verify that both ends actually entered compatible modes.

Four data channels can use a frame with more capacity

The TI TLV320ADC6140 provides a concrete example. Its Table 6 lists several BCLK-to-FSYNC ratios at 48 kHz. The 128 ratio gives 6.144 MHz and the 256 ratio gives 12.288 MHz. The latter has room for eight 32-bit positions in one contiguous-frame calculation. The slot assignment, external frame and signal drive determine how many positions actually contain data. TI specifies 256-times BCLK under the stated electrical-characteristic test conditions. Keep those conditions distinct from the 128-times bus arrangement in this example. TI audio frame rates and BCLK ratios, Table 6.

For that ADC, read back the ASI format, word or slot length and polarity in ASI_CFG0, along with the channel assignments and transmit offset. The ASI_STS register reports the automatically detected rate and ratio. If the ratio is correct but all channels shift by one bit or slot, examine the start of slot zero, the sample edge and the state of unassigned positions. When several devices share the wire, check how each leaves the other devices' positions available. TI TLV320ADC6140 audio serial interface and register descriptions.

Send identifiable words to verify the slot map

Where a test stream or loopback permits, use a different known word for each of the four channels. Write down the binary pattern and captured word width. Map all four with the interface operating normally. Then mute or zero two channels without changing the bus format and compare the next full frame. Only change the controller and receiver to a two-slot format if the system is meant to operate that way. For each test save the sync, clock and data traces together. This shows whether the silence belongs to the sample or the frame allocation.

For purchasing, specify whether 12.288 MHz is an input reference, an external oscillator, or a clock already generated inside the controller. Include the supply and electrical load when an oscillator is needed. Both ends' slot map, bit timing and captured frame belong in the engineering acceptance record along with the oscillator part number.

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.