sil9134 HDMI输出具体实施:用ADV7181D接收CVBS PAL(BGHID)信号,设置ADV7181D 8bit YCbCr输出,设置sil9134为576i 8bit YCbCr输入,设置sil9134为RGB输出,但是画面出现偏移和画面左边出现蓝色竖条纹现象。
| ADV7181D_WriteByte(0x00, 0x0B);//CVBS input on AIN1 |
| ADV7181D_WriteByte(0x03, 0x0C);//设置输出为8-bit @ LLC2 4:2:2 |
| ADV7181D_WriteByte(0x04, 0x7D);//Enable HS、VS、F |
| ADV7181D_WriteByte(0x17, 0x41);//select SH1 |
| ADV7181D_WriteByte(0x1D, 0x47);//Enable 28MHz Crystal |
| |
| ADV7181D_WriteByte(0x31, 0x1A);// |
| ADV7181D_WriteByte(0x32, 0x81);// |
| ADV7181D_WriteByte(0x33, 0x84);// |
| ADV7181D_WriteByte(0x34, 0x00);// |
| ADV7181D_WriteByte(0x35, 0x00);// |
| ADV7181D_WriteByte(0x36, 0x7D);// |
| ADV7181D_WriteByte(0x37, 0xA1);// |
| ADV7181D_WriteByte(0xE8, 0x41);// |
| ADV7181D_WriteByte(0xE9, 0x84);// |
| ADV7181D_WriteByte(0xEA, 0x06);// |
| |
| ADV7181D_WriteByte(0x3A, 0x17);//Set Latch Clock power down ADC 1 ADC2 ADC3 |
| ADV7181D_WriteByte(0x3B, 0x81);//Enable internal Bias |
| ADV7181D_WriteByte(0x3D, 0xA2);//MWE Enable Manual Window, Colour Kill Threshold to 2 |
| ADV7181D_WriteByte(0x3E, 0x6A);//BLM optimisation |
| ADV7181D_WriteByte(0x3F, 0xA0);//RGB |
| ADV7181D_WriteByte(0x86, 0x0B);//Enable stdi_line_count_mode |
| ADV7181D_WriteByte(0xF3, 0x01);//Enable Anti Alias Filter on ADC0 |
| ADV7181D_WriteByte(0xF9, 0x03);//Set max v lock range |
| ADV7181D_WriteByte(0x0E, 0x80);//ADI Recommended Setting |
| ADV7181D_WriteByte(0x52, 0x46);//ADI Recommended Setting |
| ADV7181D_WriteByte(0x54, 0x80);//ADI Recommended Setting |
| ADV7181D_WriteByte(0x7F, 0xFF);//ADI Recommended Setting |
| ADV7181D_WriteByte(0x81, 0x30);//ADI Recommended Setting | |
| ADV7181D_WriteByte(0x90, 0xC9);//ADI Recommended Setting |
| ADV7181D_WriteByte(0x91, 0x40);//ADI Recommended Setting |
| ADV7181D_WriteByte(0x92, 0x3C);//ADI Recommended Setting |
| ADV7181D_WriteByte(0x93, 0xCA);//ADI Recommended Setting |
| ADV7181D_WriteByte(0x94, 0xD5);//ADI Recommended Setting |
| ADV7181D_WriteByte(0xB1, 0xFF);//ADI Recommended Setting |
| ADV7181D_WriteByte(0xB6, 0x08);//ADI Recommended Setting |
| ADV7181D_WriteByte(0xC0, 0x9A);//ADI Recommended Setting |
| ADV7181D_WriteByte(0xCF, 0x50);//ADI Recommended Setting |
| ADV7181D_WriteByte(0xD0, 0x4E);//ADI Recommended Setting |
| ADV7181D_WriteByte(0xD1, 0xB9);//ADI Recommended Setting |
| ADV7181D_WriteByte(0xD6, 0xDD);//ADI Recommended Setting |
| ADV7181D_WriteByte(0xD7, 0xE2);//ADI Recommended Setting |
| ADV7181D_WriteByte(0xE5, 0x51);//ADI Recommended Setting |
| ADV7181D_WriteByte(0xF6, 0x3B);//ADI Recommended Setting |
| ADV7181D_WriteByte(0x0E, 0x00);//ADI Recommended Setting |