平台:exynos4412
问题:拍照或者录像时,每帧图像的前面32行和前面64列的像素点都是黑色的
我把寄存器16H写0x60(默认为0x80),前面64列像素点正常了,但是后面64列编程黑色了。请帮忙分析一下,多谢!
Eason Wang:
看看这几个寄存器:
AVID start/stop 看看是否踩得一行点数足够。
lines per frame, 看看你踩得行数是否足够。
wei zhao7:
回复 Eason Wang:
我们原理图没有用AVID这个引脚去同步数据
wei zhao7:
回复 wei zhao7:
lines per frame, 看看你踩得行数是否足够。
这个看哪个寄存器呢?
Eason Wang:
回复 wei zhao7:
在手册里搜索Vertical Line Count或者lines per frame…
wei zhao7:
回复 Eason Wang:
Vertical line count = 0x0271 (625) 比576多了49
这个寄存器我尝试去修改,没有作用,读出来还是默认的值
wei zhao7:
回复 Eason Wang:
[ 48.725138] tvp5150: Video input source selection #1 = 0x00[ 48.740171] tvp5150: Analog channel controls = 0x15[ 48.755151] tvp5150: Operation mode controls = 0x00[ 48.770125] tvp5150: Miscellaneous controls = 0x6f[ 48.785164] tvp5150: Autoswitch mask= 0x00[ 48.800143] tvp5150: Color killer threshold control = 0x10[ 48.845135] tvp5150: Luminance processing controls #1 #2 and #3 = 60 00 00[ 48.865165] tvp5150: Brightness control = 0x80[ 48.880208] tvp5150: Color saturation control = 0x80[ 48.895120] tvp5150: Hue control = 0x00[ 48.910156] tvp5150: Contrast control = 0x80[ 48.925134] tvp5150: Outputs and data rates select = 0x40[ 48.940176] tvp5150: Configuration shared pins = 0x02[ 48.970128] tvp5150: Active video cropping start = 0x0000[ 49.000137] tvp5150: Active video cropping stop = 0x0000[ 49.015183] tvp5150: Genlock/RTC = 0x01[ 49.030155] tvp5150: Horizontal sync start = 0x80[ 49.045127] tvp5150: Vertical blanking start = 0x00[ 49.060171] tvp5150: Vertical blanking stop = 0x00[ 49.090117] tvp5150: Chrominance processing control #1 and #2 = 0c 54[ 49.110159] tvp5150: Interrupt reset register B = 0x00[ 49.125130] tvp5150: Interrupt enable register B = 0x00[ 49.140171] tvp5150: Interrupt configuration register B = 0x00[ 49.155146] tvp5150: Video standard = 0x00[ 49.185162] tvp5150: Chroma gain factor: Cb=0xca Cr=0x92[ 49.200137] tvp5150: Macrovision on counter = 0x0f[ 49.215112] tvp5150: Macrovision off counter = 0x01[ 49.230156] tvp5150: ITU-R BT.656.4 timing(TVP5150AM1 only)[ 49.260169] tvp5150: Device ID = 5151[ 49.290120] tvp5150: ROM version = (hex) 01.00[ 49.320139] tvp5150: Vertical line count = 0x0271[ 49.335110] tvp5150: Interrupt status register B = 0x87[ 49.350148] tvp5150: Interrupt active register B = 0x00[ 49.425163] tvp5150: Status regs #1 to #5 = 7e 08 0b 77 83[ 49.429167] tvp5150: Teletext filter 1 reg 0xb1 = 00 00 00 00 00 [ 49.505129] tvp5150: Teletext filter 2 reg 0xb6 = 00 00 00 00 00 [ 49.595112] tvp5150: Teletext filter enable = 0x00[ 49.610110] tvp5150: Interrupt status register A = 0xc0[ 49.625124] tvp5150: Interrupt enable register A = 0x00[ 49.640263] tvp5150: Interrupt configuration = 0x04[ 49.655111] tvp5150: VDP status register = 0x40[ 49.670121] tvp5150: FIFO word count = 0x00[ 49.685117] tvp5150: FIFO interrupt threshold = 0x80[ 49.700113] tvp5150: FIFO reset = 0x00[ 49.715117] tvp5150: Line number interrupt = 0x00[ 49.745111] tvp5150: Pixel alignment register = 0x004e[ 49.760123] tvp5150: FIFO output control = 0x01[ 49.775125] tvp5150: Full field enable = 0x00[ 49.790112] tvp5150: Full field mode register = 0x7f[ 49.793634] tvp5150: CC data reg 0x90 = 00 00 00 00 [ 49.855141] tvp5150: WSS data reg 0x94 = 00 00 00 00 00 00 [ 49.945133] tvp5150: VPS data reg 0x9a = 00 00 00 00 00 00 00 00 [ 50.065132] tvp5150: VPS data reg 0xa2 = 00 00 00 00 00 [ 50.140238] tvp5150: VITC data reg 0xa7 = 00 00 00 00 00 00 00 00 00 [ 50.275123] tvp5150: Line mode reg 0xd0 = ff ff ff ff ff ff ff ff [ 50.395131] tvp5150: Line mode reg 0xd8 = ff ff ff ff ff ff ff ff [ 50.515125] tvp5150: Line mode reg 0xe0 = ff ff ff ff ff ff ff ff [ 50.635124] tvp5150: Line mode reg 0xe8 = ff ff ff ff ff ff ff ff [ 50.755121] tvp5150: Line mode reg 0xf0 = ff ff ff ff ff ff ff ff [ 50.875132] tvp5150: Line mode reg 0xf8 = ff ff ff ff
这些是寄存器读出来的值
Eason Wang:
回复 wei zhao7:
625是对的,这说明Decoder 采集没有问题。所以,你应该需要看看你的主芯片这里是不是有效像素的宽度和高度设置不对?
wei zhao7:
回复 Eason Wang:
但是,把寄存器16H写0x60(默认为0x80),前面64列像素点正常了,但是后面64列编程黑色了。
从这个现象来看,我觉得还是TVP5151前端数据处理有问题
前32行,我觉得是类似问题
多谢
wei zhao7:
回复 Eason Wang:
把寄存器16H写0x60(默认为0x80),前面64列像素点正常了,但是后面64列编程黑色了。
从这个现象看,我觉得是TVP5151出来的有效数据不正常
请帮忙再分析一下 谢谢
chen huan:
回复 wei zhao7:
亲 我们现在用beagleboard-xm 在camera口接tvp5151,亲 您能把您的tvp5151的驱动给我吗?万分感谢。