最近做tvp5150am1,在显示板上使用ov9712的摄像头模组可以正常显示出图像。
而我使用tvp5150am1时一直是黑屏。
我用示波器测得tvp的hsync是15.625khz,vsync是50.0hz,时钟是27mhz,数据看到有输出。
而测得ov9712的hsync是18khz左右,vsync是25hz左右。
请问这有影响吗,我改如何配置我的tvp5150am1呢?
这是我的主函数代码:
void main()
{
delay6us(20);
TVPSel();
/*
//同步信号配置
Write_TVP5150(0x00,0x00);//采用默认的配置
Write_TVP5150(0x0d,0x40);
Write_TVP5150(0x03,0x8f);//27脚功能为VBLK,数据总线激活,HSYNC、VSYNC、FID、AVID输出使能,场空白开关打开,时钟输出使能
Write_TVP5150(0x0f,0x02);//23脚功能为FID,27脚功能为GPCL或VBLK。其余默认
*/
/*
//YUV格式 datasheet例程2
Write_TVP5150(0x03,0x0d);
Write_TVP5150(0x04,0xc0);
Write_TVP5150(0x0d,0x40);
*/
/*
//PAL(N) ITU-R BT.601
Write_TVP5150(0x03,0x8f);
Write_TVP5150(0x0d,0x40);
Write_TVP5150(0x0f,0x12);
*/
/*
//参考例程1
Write_TVP5150(0x02,0x70);
Write_TVP5150(0x03,0x3d);
Write_TVP5150(0xc2,0x04);
Write_TVP5150(0x0f,0x1a);
Write_TVP5150(0x28,0x04);
*/
//参考例程2
Write_TVP5150(0x02,0x70);
Write_TVP5150(0x03,0x3d);
Write_TVP5150(0xc2,0x04);//默认也是0x04
Write_TVP5150(0x0f,0x1a);
Write_TVP5150(0x0d,0x40);
Write_TVP5150(0x28,0x04);
//Write_TVP5150(0x03,0x09);//最简配置
/*
//推荐配置
Write_TVP5150(0x7f,0x00);
Write_TVP5150(0x0f,0x0a);
Write_TVP5150(0x0d,0x40);
Write_TVP5150(0x03,0x6f);
*/
while(1)
{
}
}