TI中文支持网
TI专业的中文技术问题搜集分享网站

tvp7002驱动的问题

大家好!

希望能得到帮助:

硬件环境:dm8168+tvp7002 

实现功能:输入未知分辨率– vpss–cap–device–tvp7002返回分辨率信息 给vpss正常显示图像

思路:       1、怎么配置寄存器让tvp7002检测输入行场频,来算设置输出?

                    2、怎么给vpss显示检测到的分辨率信息?

我对vpss协处理器作用不是很熟悉,可能思路不是很对,有异议可以告诉我下,在此先谢过了。

user1369122:

7002配置详见置顶帖。

DVRRDK里面其实就有tvp7002+8168的例子了。

wj:

回复 user1369122:

谢谢你的热心回复!

你说的配置之前有看过,我是想通过读出tvp7002的寄存器获取到总的行数、行频、场频等信息,我在网上找到读出输入信息的寄存器:

0x14 :是否检测出行同步和场同步、行场同步的输入引脚、行场同步极性;

0x37~0x38: 每帧图像的行数;

0x39~0x3A:可读出每行的像素点数;

在tvp7002有对这几个寄存器详细的说明如何计算  fh  和 fv 

现在问题来了:0x37~0x3A 这4个寄存器读不到??

有视频源:

I2C (0x5d): 0x14 = 0xb7 I2C (0x5d): 0x37 = 0x65 I2C (0x5d): 0x38 = 0x24 I2C (0x5d): 0x39 = 0x60 I2C (0x5d): 0x3a = 0x00

没有视频源:

I2C (0x5d): 0x14 = 0x05 I2C (0x5d): 0x37 = 0x65 I2C (0x5d): 0x38 = 0x24 I2C (0x5d): 0x39 = 0x60 I2C (0x5d): 0x3a = 0x00

问题: 1、tvp7002有没有像ED数据有效一样能直接获取到输入源信息 ?  2、 要检测输入源 是不是还要激活什么寄存器?

———————-1080p的配置

I2C (0x5d): 0x01 = 0x89 I2C (0x5d): 0x02 = 0x80 I2C (0x5d): 0x03 = 0xe0 I2C (0x5d): 0x04 = 0x00 I2C (0x5d): 0x05 = 0x06 I2C (0x5d): 0x06 = 0x10 I2C (0x5d): 0x07 = 0x2c I2C (0x5d): 0x0e = 0x36 I2C (0x5d): 0x0f = 0x2e I2C (0x5d): 0x10 = 0x58 I2C (0x5d): 0x11 = 0x40 I2C (0x5d): 0x12 = 0x01 I2C (0x5d): 0x13 = 0x00 I2C (0x5d): 0x15 = 0x43 I2C (0x5d): 0x16 = 0x11 I2C (0x5d): 0x18 = 0x11 I2C (0x5d): 0x17 = 0x12 I2C (0x5d): 0x19 = 0x00 I2C (0x5d): 0x1a = 0xca I2C (0x5d): 0x21 = 0x22 I2C (0x5d): 0x22 = 0x00 I2C (0x5d): 0x26 = 0x80 I2C (0x5d): 0x28 = 0x53 I2C (0x5d): 0x2a = 0x87 I2C (0x5d): 0x2c = 0x80 I2C (0x5d): 0x2d = 0x00 I2C (0x5d): 0x2e = 0x80 I2C (0x5d): 0x31 = 0x18 I2C (0x5d): 0x35 = 0x00 I2C (0x5d): 0x36 = 0x00 I2C (0x5d): 0x3d = 0x06 I2C (0x5d): 0x3f = 0x00 I2C (0x5d): 0x44 = 0x04 I2C (0x5d): 0x45 = 0x04 I2C (0x5d): 0x46 = 0x2d I2C (0x5d): 0x47 = 0x2d I2C (0x5d): 0x48 = 0x00 I2C (0x5d): 0x49 = 0x00 I2C (0x5d): 0x40 = 0xda I2C (0x5d): 0x41 = 0x00 I2C (0x5d): 0x42 = 0x5e I2C (0x5d): 0x43 = 0x08

———————

赞(0)
未经允许不得转载:TI中文支持网 » tvp7002驱动的问题
分享到: 更多 (0)