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.

SN65LVDS324 output timing

Hello,

My customer uses the SN65LVDS324.

He has a question about CMOS output timing on the datasheet P14 Fig11.

He understood the timing of CLKOUT vs D[15:0]. But he could not understand the timing of

CLKOUT vs HSYNC and CLKOUT vs VSYNC.

Which should he compare the CLKOUT?  

I think it is the CLKOUT right after or just before HSYNC and VSYNC move High to Low,Low to High.

Regards,

Naoki Aoyama

  • Hello Aoyama-san,

         The diagram means that D[15:0], HSYNC & VSYNC are in phase, which means that the timing description is the same for D[15:0], HSYNC & VSYNC.

    Best regards,

    Diego.

  • Hi Diego,

    Thank you for your fast reply.

    I will feedback to my customer the information.

    Thanks,

    Naoki Aoyama

  • Our customer requirement is 12MP resolution camera interface to DM8168 with SN65LVDS324.

    Request you to clarify below queries on SN65LVDS324:

    1. Does this chip downscale the high resolution video to 1080p60.In our case it is 4K x 3K resolution?If we see in the datasheet of LVDS324 it does not have any IPU block to downscale image process.It has just clock multiplier to support subLVDS to parallel?

    2.Sony CMOS sensor(IMX144CQJ) has 10ch subLVDS of each 10/12-bit and supports drive mode as below:
      1. 4000 x 3000@ 35fps,12-bit
      2. 4000 x 3000@ 40fps,10-bit
    Whether these two modes can be supported by LVDS324?

    3.LVDS324 datasheet says subLVDS inputs Support Up To 648Mbps.Whether 648Mbps is per channel,then it has 12ch subLVDS of total 7776Mbps rate?

    4. what is the max sony resolution sensor is interfaced to LVDS324?

    5. What does 8K x 8K frame size support means in LVDS324?

    Looking forward for your answer

    Regards

    B. Eshak

  • Hello Eshak,

    Here you go my feedback to your queries:

    1.- Your assumption is correct, the SN65LVDS324 has no downscale features.

    2.- I need to know the ouput frequency in both cases, this is due to the maximum input frequency of the SN65LVDS324 in Sony LVDS parallel mode is 81MHz.

    3.- The 648Mbps is not a result per lane. That's a total throughput per channel, and only valid for the Panasonic 2-channels 2-ports mode. The Actual throughput for the SONY LVDS parallel mode is 1944 Mbps for 12 bpp and 1620 Mbps dor 10 bpp.

    4.- There is no simple answer for a maximum resolution, because it depends on the frame rate. The SN65LVDS324 will support any 10/12 bit LVDS parallel readout mode as long as the data pixel rate is within the 162 Mpix/s.

    5.- That is a maximum allowable frame size by the device. If we take the Sony LVDS parallel mode as an example, then the SN65LVDS324 will be able to handle up to 2.4 frames/s (this example is just illustrative and without take into account the blanking).

    Best regards,
    Diego.
  • Hello Diego

    Thanks for the reply.

    1. So interfacing the DM8168 to 12MP camera via LVDS324 is feasible?

    2. If it does not have down scaling feature.Then how does it can take up high resolution video frames and convert it to 1080p60.Please brief on this.

    3. You said "The Actual throughput for the SONY LVDS parallel mode is 1944 Mbps for 12 bpp and 1620 Mbps dor 10 bpp." How does this numbers calculated.?
    4. Is 1944Mbps and 1620Mbps is total throughput for 10ch interface?

    5. Iam not sure on the operating frequency of Sony image sensor for both the modes. Its says the input frequency to sensor as 72Mhz. Is it input or output clock ?

    Please refer the below link for datasheet.

    6. How to calculate theoritically whether the two modes of sony image sensor can be interfaced to LVDS324?

    7. Please explain with an example of taking more resolution camera like 5MP or more , what  LVDS324 does on camera input side and output to processor at 1080p60.

    8. Is that the camera should be set to 1080p resolution so that LVDS324 can output 1080p60 to processor.?

    Regards

    B. Eshak

  • Hello Eshak,

      1.- Please send me the full datasheet to my email diego.cortes@ti.com to confirm the compatibility, unfortunately the information on  your link is not the full datasheet.

       2 & 8.- In order to have a 1080p60 output you mus configure the image sensor in this mode.

       3.- this number is calculated by means of the maximum input frequency i.e. the maximum input frequency is 81 MHz, but the Sony LVDS parallel mode is DDR, which means that the SN65LVDS324 latches the input on both edges on the input clock. this generates a maximum input sampling of 162MHz, which is the same as 162 Mbps per lane. Therefore the maximum throughput of the Sony LVDS parallel mode is 162Mbps*10= 1620Mbps for 10-bit and 162Mbps*12= 1944Mbps for 12-bit.

       4.- It depends on the readout drive mode of the sensor. Please review the Readout Drive Modes section of the datasheet, just look for the List of Operation Modes and Ouput Rates for Parallel Output, this table has the column Data Rate,(Mpix/s), you only have to divide this value by 2 and voilà, you will obtain the resultant output frequency for that specific mode, i. e. if the  data rate is 148.5 Mpix/s, then the output frequency is 74.25 (typical value for 1080p60).

       5.- 1944Mbps and 1620Mbps are total throughput for 12ch and 10ch respectively.

       6.- I think I already answered this in number 4.

       7.- the SN65LVDS324 does not change the frame size and/or frame rate, our device only transfers the images from the sensor to the processor.

       8.- you are correct, in order to have a 1080p60 signal on the Processor, you must configure the sensor in this mode.

    Best regards,

    Diego.

        

  • Hi,

    I am using DM8168 processor. I am trying to bring up Sony Camera (IMX136LQJ) in my customized platform.
    I am using SPI interface to configure the Sensor. Currently I can able to do proper configuration and I am getting the expected Pixel clock from Sensor. I am using LVDS chip (SN65LVDS324) to send the data from sensor to processor.

    Once the camera is initialized, I couldn't get any HS/VS signals and data from LVDS chip. But I am getting these signal only if I configure the TEST_MODE bit in the SENSOR_CFG register (0x9).

    And also I couldn't capture any data from my application (saLoopBack).

    Please answer for my below queries also:

    1. Which output format will the LVDS will pump to the DM8168 processor?

    2. Whether DM8168 supports this LVDS ouput format?. If so, where I have to configure the same in S/W code?.

    3. What for this TEST MODE is made and it is possible to capture from processor to get this data?


    Please suggest me some solution to resolve this issue.

    Thanks in advance.

    Regards,
    Salih

  • Hello Salih,

    First I would like to know the configured output format on the IMX136 so I can provide the proper configuration of the LVDS324. I am not an expert on the DM8168 but since it is a DaVinci processor it should be compatible with the SN65LVDS324. TTheTESTMODE_VIDEO feature is designed to assist engineering development and for testing purposes. I personally use this mode to configure the device and processor, then I include the image sensor to the system.

    best regards,
    Diego.
  • Hi Diego,

    Thank you very much for your prompt reply. The image sensor IMX136 output format is Low-Voltage LVDS parallel with 60Fps 1080p of resolution. Could please suggest me on how to make it work with processor?..

    Thanks in advance.

    Regards,
    Salih

     

  • Hello,

    The SN65LVDS324 should be configured as follows:

    Register 0x09

    bits 5 & 4: according to the DM8168, please check the sync polarity and the color maping on the processor.
    bit 3: 0 (default)
    bits 2-0: 000 for 10 bit mode or 001 for 12 bit mode

    Register 0x0A

    bit 6: depends on the processor's specs, but for davinci the default mode should work fine
    bits 5-4: default should be fine.
    bits1-0: 10– SCLK=58to81MHz, CLKOUT=116to162MHz

    Registers 0x0B - 0x0E: Default should be fine for 1080p

    Best regards,
    Diego.
  • Hi,

    Thank you very much for your response.

    bits 5 & 4: according to the DM8168, please check the sync polarity and the color mapping on the processor.

    For the above bits, you mean about VIP port configuration in processor?. There are nine sync modes and sync polarity is also there.

    Which one I have to set it in the processor side?. If I configure the sync polarity as high in LVDS chip, then should I set the same in VIP port configuration ?. What is color mapping?.. Are you mean about the input data format for the processor?


    Thanks in advance.

    Regards,
    Salih

     

  • You are right,

    The LVDS chip must have the same configuration as the VIP port, and yes, you should check the input data format for the processor. You can use the TEST mode in order to test the interface between the SN65LVDS324 and the processor first.

    Regards,
    Diego.
  • Hi Diego,

    Thanks for your inputs. But, during the TEST mode the LVDS giving BAYER RAW format as output. In my processor, this format is not supported. Actually my issue is, when I disable the TEST mode in the LVDS chip, I am not getting HS/VS signals. I don't know what might be the reason for this issue.

    I am struggling with this issue for very long time. Please suggest me on how to make it overcome this issue.

    Thanks in advance.

    Regards,
    Salih

  • Hello Salih,

    the first thing would be to verify the signal integrity ar the input of the SN65LVDS324, please confirm that the input clock frequency is stable @ 74.25MHz.

    Best regards,
    Diego.
  • Hi Diego,

    I am getting the input clock frequency properly without any fluctuations. Here, I am not getting the HSYNC and VSYNC signals.
    I am still not sure where is the issue, whether it is with the LVDS chip or with my sensor.

    Please suggest me any solution to solve this issue.

    Thanks in advance.

    Regards,
    Salih

  • Hello,

    What about the output clock? Is it stable?. Have you tried with more than one unit?

    Regards,
    Diego.
  • Dear Diego,

    Thanks for your inputs. Do you asking about the pixel clock (output clock) of the sensor?.
    I am getting the stable pixel clock without any fluctuation.

    Regards,
    Salih

  • Dear Salih,

    I am reffering to the output clock of the SN65LVDS324.

    Regards,
    Diego.
  • Dear Diego,

    Yes, I am getting the stable output clock (148MHz) from the LVDS chip without any fluctuations. But the HS/VS signal is not pulsing.

    Thanks in advance.

    Regards,
    Salih

  • Dear Salih,

    Then the next step is to replace the unit, have you seen the same behavior on more than one unit?

    Regards,
    Diego.
  • Hello,

    Can you please let us know the CLKOUT frequency when LVDS324 is configured in the test mode? We are programming it with the following:

    0x28 - > 0x03

    0x09 -> 0x64 (test mode)

    0x0A -> 0x22

    Thanks,

    Akhil

  • Hello Akhil,

       Please review the following document, it contains all the information you need for test mode.

    0272.Steps to configure the test mode on the SN65LVDS324.pdf

    Regards,

    Diego.