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.

PCM1865: PLL programming values and documentation

Part Number: PCM1865

Having a lot of trouble getting the PLL to give us a PLL locked status (0x28 bit 4)

We have a 25MHz input clock and even the calculations are problematic because the datasheet seems to have errors in it:

From page 34:

When the PLL is enabled and D /= 0000, the following conditions must be satisfied:
6.667MHz = PLLCLK _IN / P = 20MHz
64MHz < (PLLCK IN x K x R / P) < 100MHz
4 = J = 11
R = 1

clearly J is not limited to either 4 or 11 and R doesn't have to be =1.  So I'm assuming that this really means:

4 <= J <= 11

R >= 1

if we look at this example :

MCLK = 12MHz and fSref = 44.1kHz, (N=2048)
Select P = 1, R = 1, K = 7.5264, which results in J = 7, D = 5264

No where in the datasheet can I figure out how N=2048 is actually set.  I find lots of references to the fact that the divide value is being used and what the value should be, but nothing that tells which register sets it.

The formula in equation 1

(PLLCKIN R J.D)/P

also appears to be incorrect.  The divide values when R and P are set is actually R+1 and P+1

So shouldn't this equation be

(PLLCLKIN (R+1) J.D)/(P+1)

??

The relust of PLLCLKIN/P when P=1 is not PLLCLKIN it's PLLCLKIN/2

  • Hi, Brian,

    Welcome to E2E, Thanks for your interest in our products!.

    Thanks for pointing this and sorry for the misunderstanding.

    About J parameter, it should have a value between 4 and 11 as you mentioned (4 ≤J ≤ 11), we are working in a datasheet update where we will correct this. R parameter should be 1 when D≠0000.

    The rest of the equations are correct, the parameters included in the equation represents the value in the register description, not the data written to the register.

    N is the ratio between sampling rate and PLLCLK out. This means that for single rate (48 kHz or below), the ratio should be at least 2048, this is reflected in table 10 as PLL Ratio. For dual rate (between 48 kHz and 96 kHz), N should be 1024, and for quad rate (above 96 hKz) it should be 512. 1/N is calculated as the result of multiplying the clock dividers set in registers 0x25, 0x26 and 0x27.

    Best Regards,

      -Diego Meléndez López
       Audio Applications Engineer

  • Thanks very much Diego. That really clarifies thing.

    We can't seem to get the lock bit to ever go to 1, i.e. the PLL apparently is not getting set correctly. Further proof is that BCK and LRCK are the wrong frequency.

    So we thought we could route the PLL output to the GPIO pin to see what's going on.

    If you look at the block diagram on page 27 it shows a mux before SCK_OUT_TO_GPIO which can select either a divided down PLL Clock or SCK.
    However, in reality, it looks as though you can only route SCK to the GPIO pin. is that right ?

    Also the first clock divider after the PLL clock (the first divider in the master mode only box) has no register attached to it, but we're thinking it is reg 0x25 which is associated with it.
  • Hi,

    One other note about the page 27 block diagram.

    Those mysterious muxes that don't seem to have a select, maybe they are automagically selected when PLL_EN=1 ?

    This seems to be the root of our problem.

    What we are seeing is that a divided down SCK is appearing at the BCK (25/4) and LRCK( 25/256) pins.

    obviously if the PLL was being selected we would be seeing a different frequency.