This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PCM5142: Valid BCK for TDM

Part Number: PCM5142

Hi!

I am wondering if it is possible to configure the PCM5142 to accept TDM input where the BCK is 256*fs (8 channels with 32 bit words) through a 3-wire PCM interface (i.e. use BCK PLL to generate all internal clocks, no external SCK provided, pin floating). I am currently trying to implement this with the example schematic shown in the datasheet. The sampling frequency is 48kHz and the BCK is correspondingly 12.288MHz. The device is in I2C software control mode and VREF mode. I have the XSMT pin tied to 3.3V (CPVDD). My Register settings are as follows:

Reg 40: AFMT = b01 for TDM, ALEN = 11 for 32 bit words

Reg 41: AOFS = b1 for 1 BCK offset

Reg 4: PLLE = Enable PLL

Reg 13: SREF = b001 for BCK as PLL reference

Reg 14: SDAC = b001 for PLL clk as DAC clk src

Reg 20: PPDV = b10 for PLL P = 2

Reg 21: PJDV = b10000 for PLL J = 16

Reg 22&23: PDDV = b00000000, b00000000 for PLL D = 0

Reg 24: PRDV = b1 for PLL R = 1

Reg 27: DDSP = b10 for miniDSP clock divider = 2

Reg 28: DDAC = b10000 for DAC clock divider = 16

Reg 29: DNCP = b100 for NCP clock divider = 4

Reg 30: DOSR = b1000 for OSR clock divider = 8

Am I missing anything?

I'm getting the following errors:

BCK Ratio = 0FS, SCK Ratio Error, SCK Missing, FS-SCK Ratio is Invalid, and SCK is Invalid.

Power State: waiting for a valid CP voltage

I suppose the SCK errors aren’t surprising since I’m not providing an SCK signal. Should I tell the device to ignore them?

The BCK ratio being 0FS is a little more confusing to me. Table 4 seems to indicate that BCK can be 256*FS when in TDM mode. However, Table 33 indicates that for BCK PLL the minimum and maximum BCK ratios are 32 and 64, respectively. Does this mean that for TDM mode 4-wire PCM input is required?

Here is what my input looks like. In these snapshots green is the LRCLK, pink is DIN, and blue is BCK. The example data here just sets the MSB of each channel/word high. Note that LRCLK is only high for one BCK period.

I appreciate the help!

-Peter

  • Hi Peter,

    This should be possible. The TDM mode is not supported if the device is trying to 'auto detect' the clock combinations, but if you are manually configuring the PLL then it should be okay. There is another possible path that you can try:
    Connect the SCK and BCK together. The 12.288MHz BCK is fast enough for the SCK, and I believe the device can auto-detect this configuration. All you will need to do is set the device to TDM mode.

    Please let me know if that works.

    I can check this in the lab, but I do not think I will get a chance until Monday.

    Thanks,
    Paul
  • Hi Paul,

    No need to check it in the lab; I have it working here! The BCK ratio still shows up as 0 FS but other than that the device appears to be fully operational. I don't think this is an issue. Can you confirm?

    Thanks for your help!

    -Peter

  • Hi Peter,

    Great to hear! The BCK ratio detection will not be a problem. Thanks!
    Paul