I am using adv7181 to convert RGB signal ,but facing some problem. I use adv7181 to convert 800*600 rgb signal to 4:2:2 Ycbcr signal. I'm sure adv7181 is correctly configured because i have used an oscilloscope to measure output of adv7181, signals like hsync/vsync/data_en are all right.
I config CSI0 work in gated clock mode. Cause imx6q request Hsync to be high when line data is valid, i connect Data_EN signal(output from ADV7181) to CSI0's Hsync pin, and just leave CSI0's data_en pin dangling.
imx6q caputure all data including vaild data when Hsync is hign and the invaild data when Hsync is low. i check all register but can not find any mistake. Here is the register:
Since imx6q caputure all data including vaild data and invaild data. I programme to choose the vaild data and find that imx6q does not capture valid data in correct timing.Here is the image that imx6q captured:
while the input image is like this:
Besides,i am really confuse about date_en, the datasheet does not mention how should the waveform of data_en should be. But if i invert the data_en signal ,the imx6q would not capture any data.
Any help would be greatly appreciated.