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.

DM365 with cmos sensor

Other Parts Discussed in Thread: TVP5150

Dear Sir :

I use OV cmos sensor ( OV7640 ) with DM365.

OV7640 works fine with DM270 and it can output 656 4:2:2 video data with 27MHZ pixel clock.

Therefore, I try to initail ISIF register in DM365 with OV7640.

My question is what registr in ISIF I should set are ISIF_MODESET、ISIF_REC656IF and ISIF_CCDCFG, am I right?

ISIF_MODESET = 0x2000;

ISIF_REC656IF = 0x03;

ISIF_CCDCFG = 0x802; // we use pin cin0~cin7 as our cmos video data input port.

Because we use RTOS, we need to set register directly.

However, after I set these registers, there is no VD interrupt and video datas store in DDR do not change.

I guess there is something wrong with OV7640, am I right?

My reason is DM365 works fine with TVP5150 and TVP5150 output 656 4:2:2 video data with 27MHZ pixel clock.

So, if OV7640 can output 656 4:2:2 video data with 27MHZ pixel clock, it should work with DM365.

The only difference between TVP5150 and OV7640 is TVP5150 uses pin YIN0~YIN7 as video data port and OV7640 uses CIN0~CIN7.

If I am wrong, please correct me.

Please help me.

Thanks.

 

Best regards,

yuenjune

  • Dear Sir :

    We have tested this issue for few weeks, could anybody can help us?

     

    Best regards,

    yuenjune

  • Sorry for the delay. I will try to get the answer in tomorrow.

    regards,

    Sang-Yong

  • Dear Sir :

    Thanks for your reply.

    I will wait for your answer.

     

    Best regard,

    yuenjune

  • Please try to swap C and Y port as you use different ports.

    I think it can be done by

    CCDCFG: 0x812 as you used 0x802 before.

     

    regards,

    Sang-Yong

  • Dear sir:

    I appreciate your answer, we will tryit.

    I do not know if you want me to confirm the 656 signal.

    What I mean is could CIN port be video input port?

    Best regards,

    yuenjune

  • Yes, I mentioned about BT656 format.

    It is somewhat weird as CIN supposed to be  the default ports. But, anyway, it works either through CIN or through YIN.

     

    regards,

    Sang-Yong

     

  • Dear Sir :

    I have confirmed BT656 signals are OK.

    Our hardware engineer connects TVP5150's video signals to YIN0~YIN7 and CIN0~CIN7.

    When we set CCDCFG register 0x812, the video on the screen is good.

    However, when we set CCDCFG register 0x802, the video on the screen is remain still.

    In other word, there is no VD interrupt.

    It is very weird.

    Please help me!

    Best regards,

    yuenjune

     

  • When using BT656 YUV8 bit mode, YCINSWP bit of CCDCFG register has to be set to 1.

    Regards,

    Anshuman

    PS: Please mark this post as verified, if you think it has answered your question. Thanks.

  • Dear Sir :

    I appreciate your reply.

    Our product use Y0~Y7 for TVP5150 and CIN0~CIN7 for CMOS sensor.

    So, we need to swap port for different usage.

    The test I mentioned above is to confirm BT656 signals that works and if I swap port to CIN0~CIN7, it should work too, right?

    You say that  when using BT656 YUV8 bit mode, YCINSWP bit of CCDCFG register has to be set to 1.

    Do you mean if we use BT656 YUV8 bit mode, we must use Y0~Y7?

    What I mean is we can not use CIN0~CIN7 when using BT656 YUV8 bit mode, am I right?

    Best regards,

    yuenjune

  • Just in case...

    Please check PINMUX setting also.

     

    regards,

    Sang-Yong

  • Dear Sir:

    I appreciate your reply.

    I do not know what you mean that check PINMUX setting.

    I read sprufg5a-ARM Subsystem.pdf, I find out taht there is only YIN0~YIN7 definition in PINMUX0 register.

    Now, our setting is 0xFD7000.

    However, there is no CIN0~CIN7 definition in PINMUX0~PINMUX4 register.

    I think what you mean is that the setting of PINMUX0 should be 0xFD7F55, am I right?

    If the answer is yes, I have to tell you I have tested the setting, but it does not work.

    Now, our plan is to use CIN0~CIN7 as our video input port, if you can, please tell us what ISIF registers that should be set.

    As I mentioned before, we had tested YIN0~YIN7 as our video input port, and it did work.

    Please help us!

    Best regards,

    yuenjune

  • You are right.

    C port doesn't muxed with other signals. The suggestion was in general, and sorry for making confusion.

    Your phenomenon is still unclear to us, as we expect CIN is default (YIN works when you select "SWAP".

    By the way, when you test, the pixel clock is synchronized with CIN data?

    Just curious as you said that you connect two inputs ( one on YIN and another on CIN) and I assume both inputs are not fully synchronized.

     

    Regards,

    Sang-Yong

     

  • Dear Sir :

    I appreciate your reply.

    We will try CIN port as our default video data input.

    Thanks for your help!

    Best regards,

    yuenjune