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.

请教,求助大神,关于DM648中capture raw 帧同步的问题



是这样的,正在做使用DM648进行OV5642  200万像素的RAW方式抓取,现在帧同步有点问题。

文档上是这么说的

To ensure initial capture synchronization to the beginning of a frame, an optional setup synchronization
enable (SSE) bit is provided in VCxSTRT1. If the SSE bit is set, then when the VCEN bit is set to 1, the
video port will not start capturing data until after detecting two vertical blanking intervals. If the SSE bit is
cleared to 0, capture begins immediately when the VCEN bit is set.

In raw capture mode, the VCVBLNKP bits defines the minimum vertical blanking period. If CAPEN stays
de-asserted longer than VCVBLNKP clocks, then a vertical blanking interval is considered to have
occurred. If the SSE bit is set when the capture first begins (the VCEN bit is set in VCxCTL), the capture
does not start until two intervals are counted. This allows the video port to synchronize its capture to the
top of a frame when first started.

就是说VCVBLNKP定义了一个最小的帧消隐时间,大于这个的CAPEN低电平周期就被认为是vertical blanking。

那么我在抓取OV5642的图像时 line blanking、vertical blanking的低电平时钟都比较长,大于了VCVBLNKP定义的FFF个时钟,那么是不是DM648无法同步了?

  • 你好,

    我对下面这段话的理解是VCVBLNKP设定的是最小的垂直消隐期时间。如果CAPEN的时间大于VCVBLNKP的时钟,这认为一个垂直消隐间隔出现了。

    如果我的理解正确,你的问题就不存在了。

    In raw capture mode, the VCVBLNKP bits defines the minimum vertical blanking period. If CAPEN stays
    de-asserted longer than VCVBLNKP clocks, then a vertical blanking interval is considered to have
    occurred.

  • 是的,CAPEN的理解是这样的。在OV5642的时序中,我将HREF作为DSP的CAPEN输入(附件图),那么我现在的问题是需要抓取200万像素的图像。

    OV时序中,HREF的水平消隐(图中(7))、垂直消隐(图中(5))的clock个数,都大于VCVBLNKP的最大值4096,那么即使我设置VCVBLNKP为0xfff,

    还是无法区分是水平消隐,还是垂直消隐,帧同步无法实现了。所以,不知道我对这个理解有没有错。

    还有,这种问题出现时,依靠什么方法能解决??

  • 你好,

    如果是如你所说,的确是有问题的。

    我在网上搜索了一下OV5642,是一个5Mp的sensor,有效数据是2592x1944。怎么水平消隐期会比2952还要大?是否你输出的不是5MP?如果是,你能否降低sensor输出的时钟,这样应该可以减小消隐期。需要你调整sensor的时序。

  • 5M分辨率的时钟是96Mhz,我用的是1600*1200的分辨率,文档上说是从5M转出来的,所以时钟还是96M,因此水平消隐的间隔就变大。我看了一下

    确实是超过4096个时钟了,而且是远远超过;垂直消隐就更大了;

    那我只能使用fpga做同步了,SSE设置false。

  • 你好,

    一般的sensor都是可以配置输出clock的频率的,你可以参考一下sensor的手册看看如何降低输出的时钟频率。