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.

lmh1982: Lock not 100% reliable. Position TOF random in 5-10% of cases

Part Number: LMH1982
Other Parts Discussed in Thread: LMH1981

 We use a lmh1982 as clock source and TOF for our FPGA system.

A trilevel sync signal with is with a LMH1981 sync separator delivers H and V sync.

We are doning HD and Full HD, progressive, interlace and fractional.

The problem:

We see ~10% of random locks.

All programming is done acording to the manuals.

We did additional tests and improved the locking by adding longer "delays" to the init phase.

According to the manual, after setting up the PLL 1 parameters and activating genlock one has to wait until PLL 1 is locked and then continue with the initialization sequence.

To check the PLL 1 status, the second bit of the status byte of the genlock chip is evaluated.

This procedure does not seem to be 100% stable, since I needed to add a delay of at least half a second after the PLL 1 check to avoid "random locking" to arbitrary lines.

Additionally I had to increase the wait time during the initialization sequence (after setting EN_TOF_RST and TOF_INIT registers to 0) from one frame to at least 200 ms.

We always get a stable clock, but with ~5% we got a random TOF postion.

What must be done to be 100% reliable for a lock?

  • I suggest to try the following:

    1) Generate Output TOF timing using the 27 MHz SD clock frequency domain (TOF_CLK=0 ,SD_FREQ=0) instead of the native HD clock frequency. Follow "Option 2" example in datasheet section 8.1.6.2.2.1.

    2) While PLL1 is locking, it is OK to have EN_TOF_RST and TOF_INIT set to 1 to initiate TOF alignment. After PLL1 lock status is signaled, the TOF should have had sufficient time to be aligned to the Vsync input pulse and you can clear the EN_TOF_RST and TOF_INIT bits.

    Regards,
    Alan