📄 vpc323xd_tables.h
字号:
typedef enum {vpc_nolocation, vpc_fp, vpc_i2c_8bit, vpc_i2c_16bit } VPC_REG_LOC;typedef struct tagVPC_CMD { VPC_REG_LOC regLoc; RMuint16 data1; RMuint16 data2;} VPC_CMD;// component in = rgb// standards detection = offVPC_CMD vpc_init_ntscm[] = { // Input Select // 0110 0100 0110 //<11:8> [0]write 0 status [11]hpll speed=mixed [0]?disable luma lowpass filter //<7:0> [0]adaptive SECAM notch filter [10]chroma band=broad [0 0]IF comp OFF [1]chroma=CIN [10]=VIN1 { vpc_fp, 0x021, 0x0646 }, //? 20 bit llc clock center frequency: 13.5 or 18 Mhz { vpc_fp, 0x069, 0x002a }, { vpc_fp, 0x06a, 0x0aab }, //? llc clock genetator control word { vpc_fp, 0x06d, 0x0005 }, // //SCALER // pip control { vpc_fp, 0x041, 0x0000 }, // active video length for 1H-FIFO { vpc_fp, 0x042, 0x02d0 }, //scaler1 coefficient { vpc_fp, 0x043, 0x0600 }, //scaler2 coefficient { vpc_fp, 0x044, 0x0400 }, // scaler1/2 nnonleanear scaling coefficient { vpc_fp, 0x045, 0x0000 }, //scaler1 window controls { vpc_fp, 0x047, 0x0000 }, { vpc_fp, 0x048, 0x0000 }, { vpc_fp, 0x049, 0x0000 }, { vpc_fp, 0x04a, 0x0000 }, { vpc_fp, 0x04b, 0x0000 }, //scaler2 window controls { vpc_fp, 0x04c, 0x0000 }, { vpc_fp, 0x04d, 0x0000 }, { vpc_fp, 0x04e, 0x0000 }, { vpc_fp, 0x04f, 0x0000 }, { vpc_fp, 0x050, 0x0000 }, //brightness register { vpc_fp, 0x052, 0x0010 }, //contrast register { vpc_fp, 0x053, 0x0030 }, //scaler mode register { vpc_fp, 0x040, 0x0000 }, // standard select // 0000 0010 0001 // <11> [0] status // <10:7> [000 0] no init skipped // <6> [0] // <5> [1] 4-H comb mode // <4> [0] PAL + mode off // <3> [ 0] no mod // <2:0> [001] NTSC M { vpc_fp, 0x020, 0x0021 }, // Input Select // rewrite to initialize { vpc_fp, 0x021, 0x0646 }, // picture start at 0 { vpc_fp, 0x022, 0x0000 }, // background color { vpc_i2c_16bit, 0x80, 0x0000 }, // frame color 1 { vpc_i2c_16bit, 0x81, 0x03e0 }, // frame color 2 { vpc_i2c_16bit, 0x82, 0x501f }, // pip operation { vpc_i2c_8bit, 0x83, 0xff }, // black line detector, Read only? { vpc_i2c_16bit, 0x12, 0x7f7f }, // // Pin control // sync, clock, fifo, luma/chroma data pin // all OUT: chroma, luma, fifo, clk20, llc1/2, avo, sync { vpc_i2c_16bit, 0x1f, 0x0c00 }, // sync generator { vpc_i2c_8bit, 0x20, 0x28 }, // sync generator // Line length { vpc_i2c_16bit, 0x21, 0x0359 }, // new line { vpc_i2c_16bit, 0x22, 0x0088 }, // Output Strength { vpc_i2c_16bit, 0x23, 0x0000 }, // 656 interface // output=lc, llc2 ref clock, enable 656 out // on the 760e1 llc2 is connected to clk // 656 only needs 8 data and clk, syncs are embedded in the signal { vpc_i2c_8bit, 0x24, 0x38 }, // sync generator // HC START { vpc_i2c_16bit, 0x26, 0x0100 }, // HC STOP { vpc_i2c_16bit, 0x27, 0x013e }, // AVO START { vpc_i2c_16bit, 0x28, 0x0088 }, // AVO STOP { vpc_i2c_16bit, 0x29, 0x0358 }, // V-Sync Delay Control { vpc_i2c_8bit, 0x30, 0x00 }, //ComponentIP Control // Saturation { vpc_i2c_16bit, 0x90, 0x05d2 }, // Tint { vpc_i2c_8bit, 0x91, 0x00 }, // brightness/contrast { vpc_i2c_16bit, 0x92, 0x1c44 }, // softmixer { vpc_i2c_8bit, 0x94, 0xf0 }, // softmixer { vpc_i2c_8bit, 0x95, 0xe0 }, // adc range, input port select, soft mixer, rgb/yuv select // component in = RGB { vpc_i2c_8bit, 0x96, 0x40 }, // fb monitor, clip detector { vpc_i2c_8bit, 0x97, 0x00 }, // disable flywheel interface { vpc_fp, 0x012, 0x200 }, // status? { vpc_fp, 0x013, 0x128 }, // read only, not available? { vpc_fp, 0x014, 0x01e }, // read only?, vertical field counter { vpc_fp, 0x015, 0x73b }, // luma/chroma delay adjust { vpc_fp, 0x023, 0x000 }, //Comb Filter // control { vpc_fp, 0x028, 0x067 }, // helper delay register for PAL+ { vpc_fp, 0x029, 0x000 }, // VGA mode select // disabled { vpc_fp, 0x02f, 0x800 }, // color processing // saturation control { vpc_fp, 0x030, 0x816 }, //read only? measured burst amplitude { vpc_fp, 0x036, 0x001 }, //amplitude killer { vpc_fp, 0x039, 0x019 }, //amplitude killer hysteresis { vpc_fp, 0x03a, 0x005 }, //Comb filter test register { vpc_fp, 0x055, 0x000 }, // LLC Control // pll frequency limiter { vpc_fp, 0x061, 0x036 }, // vertical freeze start { vpc_fp, 0x065, 0xff6 }, // vertical freeze stop { vpc_fp, 0x066, 0x004 }, //unknown { vpc_fp, 0x06e, 0x00b }, // read only? measured sync amplitude { vpc_fp, 0x074, 0x1f3 }, // unknown { vpc_fp, 0x0aa, 0x01c }, { vpc_fp, 0x0ab, 0x298 }, { vpc_fp, 0x0ac, 0x5d1 }, // DVCO crystal Osc ll mode autolock { vpc_fp, 0x0b5, 0x190 }, { vpc_fp, 0x0cb, 0x157 }, // NTSC Tint angle { vpc_fp, 0x0dc, 0x000 }, // read only? firmware version number { vpc_fp, 0x0f0, 0x20a }, // DVCO crystal Osc llc mode status { vpc_fp, 0x0f7, 0x000 }, // DVCO crystal osc center freq. Adjust { vpc_fp, 0x0f8, 0xd30 }, // DVCO crystal osc center freq. adjust for llc { vpc_fp, 0x0f9, 0xeff }, // Automatic standard recognition off for all. { vpc_fp, 0x148, 0x000 }, // Automatic standard recognition status { vpc_fp, 0x14e, 0x000 }, //color processing // automatic helper disabled { vpc_fp, 0x16c, 0x000 }, // cr attenuation { vpc_fp, 0x17a, 0x637 }, // acc multiplier for pal + helper { vpc_fp, 0x17d, 0x000 }};// component in = yuv// automatic standards recognitionVPC_CMD vpc_init_ntscpalauto[] = { // Input Select // 0110 0100 0110 //<11:8> [0]write 0 status [11]hpll speed=mixed [0]?disable luma lowpass filter //<7:0> [0]adaptive SECAM notch filter [10]chroma band=broad [0 0]IF comp OFF [1]chroma=CIN [10]=VIN1 { vpc_fp, 0x021, 0x0646 }, //? 20 bit llc clock center frequency: 13.5 or 18 Mhz { vpc_fp, 0x069, 0x002a }, { vpc_fp, 0x06a, 0x0aab }, //? llc clock genetator control word { vpc_fp, 0x06d, 0x0005 }, // //SCALER // pip control { vpc_fp, 0x041, 0x0000 }, // active video length for 1H-FIFO { vpc_fp, 0x042, 0x02d0 }, //scaler1 coefficient { vpc_fp, 0x043, 0x0600 }, //scaler2 coefficient { vpc_fp, 0x044, 0x0400 }, // scaler1/2 nnonleanear scaling coefficient { vpc_fp, 0x045, 0x0000 }, //scaler1 window controls { vpc_fp, 0x047, 0x0000 }, { vpc_fp, 0x048, 0x0000 }, { vpc_fp, 0x049, 0x0000 }, { vpc_fp, 0x04a, 0x0000 }, { vpc_fp, 0x04b, 0x0000 }, //scaler2 window controls { vpc_fp, 0x04c, 0x0000 }, { vpc_fp, 0x04d, 0x0000 }, { vpc_fp, 0x04e, 0x0000 }, { vpc_fp, 0x04f, 0x0000 }, { vpc_fp, 0x050, 0x0000 }, //brightness register { vpc_fp, 0x052, 0x0010 }, //contrast register { vpc_fp, 0x053, 0x0030 }, //scaler mode register { vpc_fp, 0x040, 0x0000 }, // standard select // 0000 0010 0001 // <11> [0] status // <10:7> [000 0] no init skipped // <6> [0] // <5> [1] 4-H comb mode // <4> [0] PAL + mode off // <3> [ 0] no mod // <2:0> [001] NTSC M { vpc_fp, 0x020, 0x0021 }, // Input Select // rewrite to initialize { vpc_fp, 0x021, 0x0645 }, // picture start at 0 { vpc_fp, 0x022, 0x0000 }, // background color { vpc_i2c_16bit, 0x80, 0x0000 }, // frame color 1 { vpc_i2c_16bit, 0x81, 0x03e0 }, // frame color 2 { vpc_i2c_16bit, 0x82, 0x501f }, // pip operation { vpc_i2c_8bit, 0x83, 0xff }, // black line detector, Read only? //{ vpc_i2c_16bit, 0x12, 0x7f7f }, // // Pin control // sync, clock, fifo, luma/chroma data pin // all OUT: chroma, luma, fifo, clk20, llc1/2, avo, sync { vpc_i2c_16bit, 0x1f, 0x0c00 }, // sync generator { vpc_i2c_8bit, 0x20, 0x28 }, // sync generator // Line length { vpc_i2c_16bit, 0x21, 0x0359 }, // new line { vpc_i2c_16bit, 0x22, 0x0088 }, // Output Strength { vpc_i2c_16bit, 0x23, 0x0000 }, // 656 interface // output=lc, llc2 ref clock, enable 656 out // on the 760e1 llc2 is connected to clk // 656 only needs 8 data and clk, syncs are embedded in the signal { vpc_i2c_8bit, 0x24, 0x38 }, // sync generator // HC START { vpc_i2c_16bit, 0x26, 0x0100 }, // HC STOP { vpc_i2c_16bit, 0x27, 0x013e }, // AVO START { vpc_i2c_16bit, 0x28, 0x0088 }, // AVO STOP { vpc_i2c_16bit, 0x29, 0x0358 }, // V-Sync Delay Control { vpc_i2c_8bit, 0x30, 0x00 }, //ComponentIP Control // Saturation { vpc_i2c_16bit, 0x90, 0x05d2 }, // Tint { vpc_i2c_8bit, 0x91, 0x00 }, // brightness/contrast { vpc_i2c_16bit, 0x92, 0x1c44 }, // softmixer { vpc_i2c_8bit, 0x94, 0xf0 }, // softmixer { vpc_i2c_8bit, 0x95, 0xe0 }, // adc range, input port select, soft mixer, rgb/yuv select // Select YUV, component in = yuv { vpc_i2c_8bit, 0x96, 0xc0 }, // fb monitor, clip detector { vpc_i2c_8bit, 0x97, 0x00 }, // disable flywheel interface { vpc_fp, 0x012, 0x200 }, // status? { vpc_fp, 0x013, 0x128 }, // read only, not available? //{ vpc_fp, 0x014, 0x01e }, // read only?, vertical field counter //{ vpc_fp, 0x015, 0x73b }, // luma/chroma delay adjust { vpc_fp, 0x023, 0x000 }, //Comb Filter // control { vpc_fp, 0x028, 0x067 }, // helper delay register for PAL+ { vpc_fp, 0x029, 0x000 }, // VGA mode select // disabled { vpc_fp, 0x02f, 0x800 }, // color processing // saturation control { vpc_fp, 0x030, 0x816 }, //read only? measured burst amplitude //{ vpc_fp, 0x036, 0x001 }, //amplitude killer { vpc_fp, 0x039, 0x019 }, //amplitude killer hysteresis { vpc_fp, 0x03a, 0x005 }, //Comb filter test register { vpc_fp, 0x055, 0x000 }, // LLC Control // pll frequency limiter { vpc_fp, 0x061, 0x036 }, // vertical freeze start { vpc_fp, 0x065, 0xff6 }, // vertical freeze stop { vpc_fp, 0x066, 0x004 }, //unknown //{ vpc_fp, 0x06e, 0x00b }, // read only? measured sync amplitude //{ vpc_fp, 0x074, 0x1f3 }, // unknown //{ vpc_fp, 0x0aa, 0x01c }, //{ vpc_fp, 0x0ab, 0x298 }, //{ vpc_fp, 0x0ac, 0x5d1 }, // DVCO crystal Osc ll mode autolock { vpc_fp, 0x0b5, 0x190 }, { vpc_fp, 0x0cb, 0x157 }, // NTSC Tint angle { vpc_fp, 0x0dc, 0x000 }, // read only? firmware version number //{ vpc_fp, 0x0f0, 0x20a }, // DVCO crystal Osc llc mode status { vpc_fp, 0x0f7, 0x000 }, // DVCO crystal osc center freq. Adjust { vpc_fp, 0x0f8, 0xd30 }, // DVCO crystal osc center freq. adjust for llc { vpc_fp, 0x0f9, 0xeff }, // Automatic standard recognition ON for // PAL BGHI // NTSC M // PAL M { vpc_fp, 0x148, 0x803 }, // Automatic standard recognition status //{ vpc_fp, 0x14e, 0x000 }, //color processing // automatic helper disabled { vpc_fp, 0x16c, 0x000 }, // cr attenuation { vpc_fp, 0x17a, 0x637 }, // acc multiplier for pal + helper { vpc_fp, 0x17d, 0x000 }};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -