unsigned int vFromat = 0;
unsigned int temp = 0;
unsigned int misc_ctrl = 0xAF;
unsigned int output_format = 0x47;
// 地址为0 for cvbs port1,选择复合信号做为输入
unsigned int input_sel = 0x00;
/*地址为0xf,将Pin27设置成为CAPEN功能*/
unsigned int pin_cfg = 0x02;
/*地址为1B*/
unsigned int chro_ctrl_2 = 0x14;
unsigned int AVID_VALUE = 0x7f;
unsigned int XUAN_AVID = 0x03;
unsigned int AVID_ES = 0x80;
unsigned int AVID_EP = 0x00;
unsigned int VBLK_START = 0x00;
unsigned int kill_color = 0x50;
unsigned int VBLK_END = 0x00;
void init_tvp5150(void)
{
//
iic_write(0x00,input_sel);
//
iic_write(0x03,misc_ctrl);
//
iic_write(0x06,kill_color);
//
iic_write(0x0d,output_format);
//
iic_write(0x0f,pin_cfg);
//
iic_write(0x11,AVID_VALUE);
//
iic_write(0x12,XUAN_AVID);
iic_write(0x13,AVID_ES);
iic_write(0x14,AVID_EP);
iic_write(0x18,VBLK_START);
iic_write(0x19,VBLK_END);
iic_write(0x1b,chro_ctrl_2);
}