Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Capturing BT.656 640x480 progressive video by VPIF fails

$
0
0

I am trying to capture BT.656 640x480 progressive video from OV7690 sensor on OMAP-L138 board. OV7690 connected by 8 data lines and input clock.

It seems that OV7690 sensor outputs <sav> <1280 bytes Y/C mux> <eav> <272 bytes blank> per line. It is always frame 0, sav/eav seems to be correct. It seems that sensor outputs 480 lines, then it outputs nothing for 4 lines time (there is no sav/eav), then 22 lines with VSync indication, then nothing for 6 lines time (again, there is no sav/eav), giving total 512 lines with 10 lines skipped.

I have configured VPIF to:

  .eav2sav = 280-8,
  .sav2eav = 1280,
  .l1 = 1,
  .l3 = 22,
  .l5 = 502,
  .vsize = 502,

I am not sure about IMGOFFSET value, should it be 640 or 1280? Also, not really sure about VSYNC->L1 offset, but I have no VBI.

I have tried both Y/C mux (intended behavior) and non-Y/C mux mode (just for debugging), but neither works.

I have the following VPIF registers values configured for Y/C mux mode:

00:  4c080a01 00001409 00000000 00000000
10:  00000000 00000104 00000000 00000000
20:  00000011 00000011 00000000 00000010
30:  00000000 00000001 00000080 00000000
40:  c6000000 00000000 c604b000 00000000
50:  00000000 00000000 00000000 00000000
60:  00000000 00000500 00000000 01100500
70:  00010016 01f60000 00000000 000001f6
80:  00000000 00000000 00000000 00000000

I get ERROR interrupt once per frame, and no FRAME interrupts. I get code 0x104 in 0x14 VPIF register, but I cannot find specification on it. Is it generally available?

I have the following VPIF registers values configured for non-Y/C mux mode (debugging only):

00:  4c080a01 00001401 00000000 00000000
10:  00000000 00000000 00000000 00000000
20:  00000011 00000011 00000000 00000000
30:  00000000 00000001 00000080 00000000
40:  c6000000 00000000 c604b000 00000000
50:  00000000 00000000 00000000 00000000
60:  00000000 00000500 00000000 01100500
70:  00010016 01f60000 00000000 000001f6
80:  00000000 00000000 00000000 00000000

I get no interrupts this way.

Having said that, I have the following questions:

1) Is there documentation regarding register 0x14 of VPIF?

2) What is the right value for IMGOFFSET and Lx for Y/C mux in progressive mode?

3) Is there any problem with 10 skipped lines in VPIF stream?

Thank you in advance.


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>