?? t515.lst
字號(hào):
C51 COMPILER V7.06 T515 06/16/2005 10:05:39 PAGE 1
C51 COMPILER V7.06, COMPILATION OF MODULE T515
OBJECT MODULE PLACED IN F:\T100_C~1\HUI_CH~1\鐵將軍\SIMULA~2\T515.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE F:\T100_C~1\HUI_CH~1\鐵將軍\SIMULA~2\T515.C DB SB OE
stmt level source
1
2 #ifdef T515
void switch_T515(uCHAR source)
{
I2CWriteByte(TW101,0x31,0x10);
if(!m_cStandard)//NTSC
{
switch (source)
{
case isrc_T515_CVIDEO1:
T515_CVIDE_NTSC(1);
break;
case isrc_T515_CVIDEO2:
T515_CVIDE_NTSC(2);
break;
case isrc_T515_SVIDEO:
I2CWriteByte(TW515, 0x00, 0x00);
I2CWriteByte(TW515, 0x01, 0x00);
//I2CWriteByte(TW515, 0x04, 0x2f);
I2CWriteByte(TW515, 0x0A, 0x30);
I2CWriteByte(TW515, 0x0B, 0x30);
I2CWriteByte(TW515, 0x0D, 0x60);
I2CWriteByte(TW515, 0x11, 0x00);
I2CWriteByte(TW515, 0x18, 0x05);
I2CWriteByte(TW515, 0x19, 0x01);
I2CWriteByte(TW515, 0x1A, 0x87);
//I2CWriteByte(TW515, 0x1C, 0xc0);
I2CWriteByte(TW515, 0x30, 0x27);
I2CWriteByte(TW515, 0x28, 0x70);
I2CWriteByte(TW515, 0x29, 0x2a);//new
I2CWriteByte(TW515, 0x2A, 0x55);
I2CWriteByte(TW515, 0x2B, 0x30);
I2CWriteByte(TW515, 0x44, 0x00);
I2CWriteByte(TW515, 0x45, 0x08);
I2CWriteByte(TW515, 0x4e, 0x88);//new
I2CWriteByte(TW515, 0xE0, 0x90);
I2CWriteByte(TW515, 0x22, 0x4B);
I2CWriteByte(TW515, 0x27, 0x27);
I2CWriteByte(TW515, 0x20, 0x01);
I2CWriteByte(TW515, 0x21, 0x03);
I2CWriteByte(TW515, 0x23, 0x03);
I2CWriteByte(TW515, 0x5F, 0x00);
I2CWriteByte(TW515, 0xD1, 0xc8);
I2CWriteByte(TW515, 0xC1, 0xc8);
I2CWriteByte(TW515, 0xC2, 0x01);
I2CWriteByte(TW515, 0xa0, 0x04);//Kuo
I2CWriteByte(TW515, 0x38, 0x21);//Kuo
I2CWriteByte(TW515, 0x39, 0xf0);//Kuo
I2CWriteByte(TW515, 0x3a, 0x7c);//Kuo
C51 COMPILER V7.06 T515 06/16/2005 10:05:39 PAGE 2
I2CWriteByte(TW515, 0x3b, 0x1f);//Kuo
I2CWriteByte(TW515, 0x50, 0x22);//Kuo
I2CWriteByte(TW515, 0x51, 0x61);//Kuo
I2CWriteByte(TW515, 0x5f, 0x70);//Kuo
I2CWriteByte(TW515, 0xa2, 0x46);//Kuo
I2CWriteByte(TW101, 0x30, 0x02);
I2CWriteByte(TW101, 0x70, 0xa0);
I2CWriteByte(TW101, 0x31, 0x10);
// I2CWriteByte(TW101, 0x84, 0x00);
// I2CWriteByte(TW101, 0x85, 0x0F);
I2CWriteByte(TW101+2, 0xD5, 0x0c);//new
I2CWriteByte(TW101+2, 0xD6, 0x00);//new
I2CWriteByte(TW101+2, 0xD7, 0xC4);//new
I2CWriteByte(TW101+2, 0xD8, 0x02);//new
I2CWriteByte(TW101+2, 0xDE, 0x03);
break;
}
}
else
{
switch (source)
{
case isrc_T515_CVIDEO1:
T515_CVIDE_PAL(1);
break;
case isrc_T515_CVIDEO2:
T515_CVIDE_PAL(2);
break;
case isrc_T515_SVIDEO:
I2CWriteByte(TW515, 0x00, 0x00);
I2CWriteByte(TW515, 0x01, 0x00);
//I2CWriteByte(TW515, 0x04, 0x2f);
I2CWriteByte(TW515, 0x0A, 0x30);
I2CWriteByte(TW515, 0x0B, 0x30);
I2CWriteByte(TW515, 0x0D, 0x60);
I2CWriteByte(TW515, 0x11, 0x00);
I2CWriteByte(TW515, 0x18, 0x05);
I2CWriteByte(TW515, 0x19, 0x01);
I2CWriteByte(TW515, 0x1A, 0x87);
//I2CWriteByte(TW515, 0x1C, 0xc0);
I2CWriteByte(TW515, 0x28, 0x68);//new
I2CWriteByte(TW515, 0x29, 0x45);
I2CWriteByte(TW515, 0x2A, 0x35);
I2CWriteByte(TW515, 0x2B, 0x20);
I2CWriteByte(TW515, 0x44, 0x00);
I2CWriteByte(TW515, 0x45, 0x08);
I2CWriteByte(TW515, 0x4e, 0x8c);//new
I2CWriteByte(TW515, 0xE0, 0x90);
I2CWriteByte(TW515, 0x22, 0x4B);
I2CWriteByte(TW515, 0x27, 0x26);
I2CWriteByte(TW515, 0x20, 0x33);
I2CWriteByte(TW515, 0x21, 0x02);
I2CWriteByte(TW515, 0x23, 0x03);
I2CWriteByte(TW515, 0x38, 0x2a);
I2CWriteByte(TW515, 0x39, 0x09);
I2CWriteByte(TW515, 0x3a, 0x8a);
I2CWriteByte(TW515, 0x3b, 0xcb);
C51 COMPILER V7.06 T515 06/16/2005 10:05:39 PAGE 3
I2CWriteByte(TW515, 0x50, 0x2a);
I2CWriteByte(TW515, 0x51, 0xc1);
I2CWriteByte(TW515, 0xa2, 0x52);
I2CWriteByte(TW515, 0x5F, 0x00);
I2CWriteByte(TW515, 0xd1, 0xc8);
I2CWriteByte(TW515, 0xC1, 0xc8);
I2CWriteByte(TW515, 0xC2, 0x01);
I2CWriteByte(TW515, 0xa0, 0x04);//Kuo
I2CWriteByte(TW515, 0x30, 0x0a);//Kuo
I2CWriteByte(TW515, 0x5f, 0x00);//Kuo
I2CWriteByte(TW101, 0x30, 0x02);
I2CWriteByte(TW101, 0x70, 0xa0);
I2CWriteByte(TW101, 0x31, 0x10);
// I2CWriteByte(TW101, 0x84, 0x00);
// I2CWriteByte(TW101, 0x85, 0x0F);
I2CWriteByte(TW101+2, 0xd5, 0x08);//new
I2CWriteByte(TW101+2, 0xd6, 0x00);//new
I2CWriteByte(TW101+2, 0xd7, 0xc8);//new
I2CWriteByte(TW101+2, 0xd8, 0x02);//new
I2CWriteByte(TW101+2, 0xdb, 0x20);//new
I2CWriteByte(TW101+2, 0xdc, 0x01);//new
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -