Lcd_main.i
上传用户:xmyjxjd
上传日期:2013-05-04
资源大小:1517k
文件大小:219k
- #line 1 "CodeLcd_main.c" /0
-
-
-
-
-
-
-
- #line 1 "C:KEILC51INCREG52.H" /0
-
-
-
-
-
-
- sfr P0 = 0x80;
- sfr P1 = 0x90;
- sfr P2 = 0xA0;
- sfr P3 = 0xB0;
- sfr PSW = 0xD0;
- sfr ACC = 0xE0;
- sfr B = 0xF0;
- sfr SP = 0x81;
- sfr DPL = 0x82;
- sfr DPH = 0x83;
- sfr PCON = 0x87;
- sfr TCON = 0x88;
- sfr TMOD = 0x89;
- sfr TL0 = 0x8A;
- sfr TL1 = 0x8B;
- sfr TH0 = 0x8C;
- sfr TH1 = 0x8D;
- sfr IE = 0xA8;
- sfr IP = 0xB8;
- sfr SCON = 0x98;
- sfr SBUF = 0x99;
-
-
- sfr T2CON = 0xC8;
- sfr RCAP2L = 0xCA;
- sfr RCAP2H = 0xCB;
- sfr TL2 = 0xCC;
- sfr TH2 = 0xCD;
-
-
-
-
- sbit CY = PSW^7;
- sbit AC = PSW^6;
- sbit F0 = PSW^5;
- sbit RS1 = PSW^4;
- sbit RS0 = PSW^3;
- sbit OV = PSW^2;
- sbit P = PSW^0;
-
-
- sbit TF1 = TCON^7;
- sbit TR1 = TCON^6;
- sbit TF0 = TCON^5;
- sbit TR0 = TCON^4;
- sbit IE1 = TCON^3;
- sbit IT1 = TCON^2;
- sbit IE0 = TCON^1;
- sbit IT0 = TCON^0;
-
-
- sbit EA = IE^7;
- sbit ET2 = IE^5;
- sbit ES = IE^4;
- sbit ET1 = IE^3;
- sbit EX1 = IE^2;
- sbit ET0 = IE^1;
- sbit EX0 = IE^0;
-
-
- sbit PT2 = IP^5;
- sbit PS = IP^4;
- sbit PT1 = IP^3;
- sbit PX1 = IP^2;
- sbit PT0 = IP^1;
- sbit PX0 = IP^0;
-
-
- sbit RD = P3^7;
- sbit WR = P3^6;
- sbit T1 = P3^5;
- sbit T0 = P3^4;
- sbit INT1 = P3^3;
- sbit INT0 = P3^2;
- sbit TXD = P3^1;
- sbit RXD = P3^0;
-
-
- sbit SM0 = SCON^7;
- sbit SM1 = SCON^6;
- sbit SM2 = SCON^5;
- sbit REN = SCON^4;
- sbit TB8 = SCON^3;
- sbit RB8 = SCON^2;
- sbit TI = SCON^1;
- sbit RI = SCON^0;
-
-
- sbit T2EX = P1^1;
- sbit T2 = P1^0;
-
-
- sbit TF2 = T2CON^7;
- sbit EXF2 = T2CON^6;
- sbit RCLK = T2CON^5;
- sbit TCLK = T2CON^4;
- sbit EXEN2 = T2CON^3;
- sbit TR2 = T2CON^2;
- sbit C_T2 = T2CON^1;
- sbit CP_RL2 = T2CON^0;
-
-
- #line 7 "CodeLcd_main.c" /0
-
-
- #line 1 "C:KEILC51INCINTRINS.H" /0
-
-
-
-
-
- extern void _nop_ (void);
- extern bit _testbit_ (bit);
- extern unsigned char _cror_ (unsigned char, unsigned char);
- extern unsigned int _iror_ (unsigned int, unsigned char);
- extern unsigned long _lror_ (unsigned long, unsigned char);
- extern unsigned char _crol_ (unsigned char, unsigned char);
- extern unsigned int _irol_ (unsigned int, unsigned char);
- extern unsigned long _lrol_ (unsigned long, unsigned char);
- extern unsigned char _chkfloat_(float);
-
-
-
- #line 8 "CodeLcd_main.c" /0
-
-
-
- #line 1 "HeaderMAIN_DEF.H" /0
-
- #line 1 "HEADERCHAR_DEF.H" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 1 "HeaderMAIN_DEF.H" /0
-
-
- #line 1 "HEADERMODE_DEF.H" /0
-
-
-
-
-
-
-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-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 144 "HeaderMAIN_DEF.H" /1
-
-
-
-
-
-
-
-
-
-
-
- #line 155 "HeaderMAIN_DEF.H" /0
-
-
- #line 157 "HeaderMAIN_DEF.H" /1
-
-
- #line 159 "HeaderMAIN_DEF.H" /0
-
-
-
-
- #line 163 "HeaderMAIN_DEF.H" /1
-
-
- #line 165 "HeaderMAIN_DEF.H" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 270 "HeaderMAIN_DEF.H" /1
-
-
- #line 272 "HeaderMAIN_DEF.H" /0
-
- #line 273 "HeaderMAIN_DEF.H" /1
-
-
- #line 275 "HeaderMAIN_DEF.H" /0
-
- #line 276 "HeaderMAIN_DEF.H" /1
-
-
- #line 278 "HeaderMAIN_DEF.H" /0
-
- #line 279 "HeaderMAIN_DEF.H" /1
-
-
- #line 281 "HeaderMAIN_DEF.H" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 10 "CodeLcd_main.c" /0
-
-
- #line 1 "HeaderCONFIG.H" /0
-
-
-
-
-
-
-
-
-
-
- #line 11 "HeaderCONFIG.H" /1
-
-
-
-
- #line 15 "HeaderCONFIG.H" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 30 "HeaderCONFIG.H" /1
-
-
- #line 32 "HeaderCONFIG.H" /0
-
-
- #line 34 "HeaderCONFIG.H" /1
-
-
-
-
-
-
-
-
-
-
- #line 44 "HeaderCONFIG.H" /0
-
-
-
-
- #line 48 "HeaderCONFIG.H" /1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 70 "HeaderCONFIG.H" /0
-
-
- #line 72 "HeaderCONFIG.H" /1
-
-
- #line 74 "HeaderCONFIG.H" /0
-
- #line 75 "HeaderCONFIG.H" /1
-
-
- #line 77 "HeaderCONFIG.H" /0
-
- #line 78 "HeaderCONFIG.H" /1
-
-
- #line 80 "HeaderCONFIG.H" /0
-
-
- #line 82 "HeaderCONFIG.H" /1
-
-
- #line 84 "HeaderCONFIG.H" /0
-
-
- #line 86 "HeaderCONFIG.H" /1
-
-
- #line 88 "HeaderCONFIG.H" /0
-
-
-
- #line 1 "DisplayDISP_B6.H" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- unsigned char code RTD_PWUP_INI[] =
- {
- 5, 0, 0x02, 0x42,0x00,
-
- 4, 1, 0x95, 0x00,
- 8, 1, 0x96, 0x42,0x10,0x11,0x80,0xf8,
-
- 9, 0, 0xF6, 0x00,0x00,0x00,0x00,0x00,0x00,
-
- 6, 0, 0x0E, 0x00,0x80,0x00,
-
- 4, 1, 0x14, 0x00,
-
- 25, 0, 0x22, 0x08,0x00,0x02,0x04,0x00,0x04,0x00,0x06,0x00,0x06,0x00,
- 0x06,0x00,0x01,0x02,0x00,0x02,0x00,0x04,0x00,0x04,0x00,
-
- 6, 0, 0x39, 0x00,0x00,0x00,
-
- 5, 0, 0x3E, 0xc0,0x0e,
-
- 4, 1, 0x4E, 0x00,
-
- 5, 0, 0x55, 0x04,0x10,
-
- 4, 1, 0x5D, 0x03,
-
- 4, 1, 0x68, 0x88,
-
- 6, 0, 0x6C, 0x00,0x83,0x00,
-
- 4, 1, 0x70, 0x00,
-
- 4, 1, 0x5A, 0x00,
-
- 6, 0, 0x8C, 0x00,0x00,0x00,
-
- 7, 0, 0xC8, 0x04,0x00,0x20,0x18,
-
-
- 4, 1, 0xED, 0xe3,
- 4, 1, 0x99, 0x00,
- 7, 0, 0xD0, 0x28,0x37,0x35,0x04,
-
- 13, 0, 0xD6, 0xf2,0x11,0x00,0x7f,0x30,0x0a,0x04,0x3f,0xff,0x81,
-
-
- 4, 1, 0xE6, 0x40,
-
- 4, 1, 0x31, 0x60,
-
- 4, 1, 0xEB, 0x06,
-
- 4, 1, 0xFF, 0x00,
-
- 9, 0, 0xa0, 0x0f, 0xef,0x8b,0x26,0x35,0x2f,
-
-
- 0
- };
-
- unsigned char code RTD_DDC_TABLE[] =
- {
- 5, 0, 0xFC, 0x00,0x00,
-
- 131, 1, 0xFE, 0x00,0xff,0xff,0xff,0xff,0xff,0xff,0x00,
- 0x4a,0x8b,0x00,0x00,0x01,0x01,0x01,0x01,
- 0x1e,0x0c,0x01,0x01,0x0e,0x24,0x1b,0x78,
- 0xe8,0x8a,0x01,0x9a,0x58,0x52,0x8b,0x28,
- 0x1e,0x50,0x54,0xff,0xff,0x80,0x61,0x40,
- 0x61,0x4f,0x61,0x59,0x71,0x4f,0x81,0x40,
- 0x81,0x59,0x81,0x99,0xa9,0x40,0x00,0x00,
- 0x00,0xfc,0x00,0x31,0x37,0x27,0x27,0x20,
- 0x4c,0x43,0x44,0x0a,0x20,0x20,0x20,0x20,
- 0x00,0x00,0x00,0xfc,0x00,0x4d,0x6f,0x6e,
- 0x69,0x74,0x6f,0x72,0x0a,0x20,0x20,0x20,
- 0x20,0x20,0x00,0x00,0x00,0xfd,0x00,0x2b,
- 0x55,0x14,0x5c,0x0e,0x00,0x0a,0x20,0x20,
- 0x20,0x20,0x20,0x20,0x00,0x00,0x00,0xff,
- 0x00,0x30,0x30,0x30,0x30,0x30,0x31,0x0a,
- 0x20,0x20,0x20,0x20,0x20,0x20,0x00,0xbd,
-
- 4, 1, 0xFC, 0x05,
-
-
- 5, 0, 0xbc, 0x00,0x00,
-
- 131, 1, 0xbe, 0x00,0xff,0xff,0xff,0xff,0xff,0xff,0x00,
- 0x26,0xCD,0x68,0x46,0x00,0x00,0x00,0x00,
- 0x23,0x0c,0x01,0x03,0x81,0x24,0x1D,0x78,
- 0xeF,0x0D,0xC2,0xa0,0x57,0x47,0x98,0x27,
- 0x12,0x48,0x4F,0xBF,0xEF,0x00,0x81,0x80,
- 0x81,0x8F,0x61,0x40,0x61,0x59,0x45,0x40,
- 0x45,0x59,0x31,0x40,0x31,0x59,0xBC,0x34,
- 0x00,0x98,0x51,0x00,0x2A,0x40,0x10,0x90,
-
- 0x13,0x00,0x68,0x22,0x11,0x00,0x00,0x1e,
- 0x00,0x00,0x00,0xFF,0x00,0x30,0x0A,0x20,
- 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
- 0x20,0x20,0x00,0x00,0x00,0xFC,0x00,0x41,
- 0x53,0x34,0x36,0x33,0x37,0x20,0x20,0x20,
- 0x20,0x20,0x20,0x20,0x00,0x00,0x00,0xFD,
- 0x00,0x38,0x55,0x18,0x50,0x0E,0x00,0x0A,
- 0x20,0x20,0x20,0x20,0x20,0x20,0x00,0x06,
-
- 4, 1, 0xbc, 0x05,
-
-
- 0
- };
-
- unsigned char code RTD_IO_INI[] =
- {
- 4, 1, 0x95, 0x00,
-
-
-
-
- 8, 1, 0x96, 0x42,0x10,0x11,0x80,0xfc,
-
-
- #line 213 "DisplayDISP_B6.H" /1
-
-
- #line 215 "DisplayDISP_B6.H" /0
-
-
-
-
-
-
-
- 9, 0, 0xc0, 0x00,0xa3,0x22,0x80,0x80,0x68,
-
- #line 224 "DisplayDISP_B6.H" /1
-
-
- #line 226 "DisplayDISP_B6.H" /0
-
-
-
-
- 0
- };
-
-
-
-
-
-
-
-
- unsigned char code FreeV[] =
- {
-
- 27, 0, 0x20, 0x20 | 0x00 | 0x04,
-
- 0x0C | 0x00 | 0x00 | 0x00,
- (0x0580 & 0xff), (0x0580 >> 8),
- 0x10,
- (0x0020 & 0xff), (0x0020 >> 8),
- (0x0020 & 0xff), (0x0020 >> 8),
- (0x0520 & 0xff), (0x0520 >> 8),
- (0x0520 & 0xff), (0x0520 >> 8),
- (0x0480 & 0xff), (0x0480 >> 8),
- 0x03,
- (0x000c & 0xff), (0x000c >> 8) | 0x60,
- (0x000c & 0xff), (0x000c >> 8),
- (0x040c & 0xff), (0x040c >> 8),
- (0x040c & 0xff), (0x040c >> 8),
-
- 4, 1, 0x20, 0x23 | 0x00 | 0x04,
-
-
- 6, 0, 0x39, 0x00, 0x20 | 0x01, 0x04 | 0x08,
- 4, 1, 0X3A, 0x00 | 0x01,
-
- 4, 1, 0x14, 0x00,
- 5, 0, 0x8C, 0x00, 0x00,
-
- 4, 1, 0x15, 0x00,
-
- 4, 1, 0x1B, 0xc4,
-
- 7, 0, 0xD0, 0x28,0x37,0x33,0x04,
-
- 0
- };
-
- unsigned char code OSD_PWUP_INI[] =
- {
-
- 5, 0, 0x90, 0xc0,0x02,
- 6, 1, 0x92, 0x03,0x08,0x00,
-
- 0
- };
-
-
-
-
- unsigned int code VGA_Mode[][6] =
- {
-
- { 0, 0, 0, 0, 0, 0 },
-
- { 764, 806, 620, 636, 781, 2+1 },
- { 764, 806, 620, 636, 781, 2+1 },
- { 764, 806, 516, 532, 781, 2+1 },
- { 764, 806, 516, 532, 781, 2+1 },
-
- { 969, 1021, 431, 447, 990, 8+1 },
- { 768, 810, 440, 456, 785, 2+1 },
- { 764, 806, 440, 456, 781, 2+1 },
- { 764, 806, 440, 456, 781, 2+1 },
- { 764, 806, 440, 456, 781, 2+1 },
- { 635, 670, 436, 452, 649, 3+1 },
- { 635, 670, 436, 452, 649, 3+1 },
- { 634, 669, 437, 453, 648, 3+1 },
- { 764, 806, 620, 636, 781, 2+1 },
- { 764, 806, 516, 532, 781, 2+1 },
- { 687, 724, 516, 532, 702, 3+1 },
- { 635, 670, 511, 527, 649, 3+1 },
- { 641, 676, 495, 507, 655, 3+1 },
- { 556, 586, 500, 516, 568, 3+1 },
- { 684, 721, 616, 632, 699, 2+1 },
- { 635, 670, 619, 635, 649, 4+1 },
- { 492, 519, 721, 737, 503, 6+1 },
- { 500, 527, 657, 673, 511, 6+1 },
- { 513, 541, 616, 632, 524, 3+1 },
- { 448, 473, 622, 638, 458, 3+1 },
- { 483, 510, 658, 674, 494, 3+1 },
- { 497, 524, 797, 813, 508, 6+1 },
- { 493, 520, 810, 826, 504, 6+1 },
- { 445, 470, 807, 823, 455, 4+1 },
- { 428, 449, 797, 813, 435, 6+1 },
-
- { 414, 436, 798, 814, 423, 3+1 },
- { 399, 421, 795, 811, 408, 3+1 },
-
- { 400, 422, 791, 807, 409, 3+1 },
- { 350, 370, 799, 815, 358, 3+1 },
- { 339, 358, 834, 850, 347, 8+1 },
- { 356, 376, 891, 907, 364, 3+1 },
- { 350, 370, 906, 922, 358, 3+1 },
- { 389, 411, 928, 944, 398, 4+1 },
- { 335, 354, 934, 950, 343, 8+1 },
- { 401, 423, 991, 1007, 410, 3+1 },
- { 280, 295, 1002, 1018, 286, 3+1 },
- { 376, 396, 1057, 1073, 384, 3+1 },
- { 312, 329, 1060, 1076, 319, 3+1 },
- { 296, 313, 1057, 1073, 303, 8+1 },
- { 300, 317, 1057, 1073, 307, 3+1 },
- { 264, 279, 1063, 1079, 270, 3+1 },
- { 321, 339, 1241, 1257, 328, 3+1 },
-
- { 0, 0, 0, 0, 0, 0 },
- { 0, 0, 0, 0, 0, 0 },
- { 0, 0, 0, 0, 0, 0 },
- { 0, 0, 0, 0, 0, 0 },
-
- { 642, 1230, 418, 497, 0, 2+1 },
- { 535, 1025, 498, 637, 0, 2+1 },
- { 428, 820, 618, 785, 0, 2+1 },
- { 334, 641, 786, 881, 0, 2+1 },
- { 297, 570, 882, 917, 0, 2+1 },
- { 285, 547, 918, 977, 0, 2+1 },
- { 267, 513, 978, 1041, 0, 2+1 },
- { 251, 481, 1042, 1217, 0, 2+1 },
- { 292, 559, 1218, 1328, 0, 2+1 },
- };
-
- unsigned int code Mode_Preset[][5] =
- {
-
- { 1408, 1280, 1024, 0, 0 },
-
-
- { 1408, 1280, 1024, 0, 63 },
- { 1408, 1280, 1024, 0, 31 },
- { 1408, 1280, 1024, 0, 63 },
- { 1408, 1280, 1024, 0, 31 },
-
-
- { 1568, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 896, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1376, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 31 },
- { 1408, 1280, 1024, 0, 7 },
- { 1504, 1280, 1024, 0, 7 },
- { 1456, 1280, 1024, 0, 7 },
- { 1472, 1280, 1024, 0, 3 },
- { 1408, 1280, 1024, 0, 7 },
- { 1632, 1280, 1024, 0, 3 },
- { 1640, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 3 },
- { 1408, 1280, 1024, 0, 7 },
- { 1568, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1632, 1280, 1024, 0, 7 },
-
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
-
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
- { 1408, 1280, 1024, 0, 7 },
-
-
- { 1408, 1280, 1024, 0, 0 },
- { 1408, 1280, 1024, 0, 0 },
- { 1408, 1280, 1024, 0, 0 },
- { 1408, 1280, 1024, 0, 0 },
-
-
- { 1408, 1280, 1024, 0, 3 },
- { 1408, 1280, 1024, 0, 3 },
- { 1408, 1280, 1024, 0, 3 },
- { 1408, 1280, 1024, 0, 3 },
- { 1408, 1280, 1024, 0, 3 },
- { 1408, 1280, 1024, 0, 3 },
- { 1408, 1280, 1024, 0, 3 },
- { 1408, 1280, 1024, 0, 3 },
- { 1408, 1280, 1024, 0, 3 },
-
-
- { 1408, 1280, 1024, 0, 3 },
- { 1408, 1280, 1024, 0, 3 },
- };
-
-
-
-
-
- unsigned char code RTD_VIDEO_60[] = { 0 };
- unsigned char code RTD_VIDEO_50[] = { 0 };
-
-
- #line 447 "DisplayDISP_B6.H" /1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 560 "DisplayDISP_B6.H" /0
-
-
- #line 562 "DisplayDISP_B6.H" /1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 90 "HeaderCONFIG.H" /0
- #line 90 "HeaderCONFIG.H" /0
-
-
-
-
- #line 94 "HeaderCONFIG.H" /1
-
-
- #line 96 "HeaderCONFIG.H" /0
-
-
-
-
-
-
- #line 102 "HeaderCONFIG.H" /1
-
-
- #line 104 "HeaderCONFIG.H" /0
-
-
- #line 106 "HeaderCONFIG.H" /1
-
-
- #line 108 "HeaderCONFIG.H" /0
-
-
-
- #line 1 "PCB2523d1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#line 1 "HEADERCODE_DEF.H" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 4 "Headermain_def.h" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 144 "Headermain_def.h" /1
-
-
-
-
-
-
-
-
-
-
-
- #line 155 "Headermain_def.h" /0
-
-
- #line 157 "Headermain_def.h" /1
-
-
- #line 159 "Headermain_def.h" /0
-
-
-
-
- #line 163 "Headermain_def.h" /1
-
-
- #line 165 "Headermain_def.h" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 270 "Headermain_def.h" /1
-
-
- #line 272 "Headermain_def.h" /0
-
- #line 273 "Headermain_def.h" /1
-
-
- #line 275 "Headermain_def.h" /0
-
- #line 276 "Headermain_def.h" /1
-
-
- #line 278 "Headermain_def.h" /0
-
- #line 279 "Headermain_def.h" /1
-
-
- #line 281 "Headermain_def.h" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 1 "PCB2523d1_pcb.h" /0
-
-
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 3 "HEADERMain_def.h" /0
-
-
- #line 1 "HEADERCODE_DEF.H" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 4 "HEADERMain_def.h" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 144 "HEADERMain_def.h" /1
-
-
-
-
-
-
-
-
-
-
-
- #line 155 "HEADERMain_def.h" /0
-
-
- #line 157 "HEADERMain_def.h" /1
-
-
- #line 159 "HEADERMain_def.h" /0
-
-
-
-
- #line 163 "HEADERMain_def.h" /1
-
-
- #line 165 "HEADERMain_def.h" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 270 "HEADERMain_def.h" /1
-
-
- #line 272 "HEADERMain_def.h" /0
-
- #line 273 "HEADERMain_def.h" /1
-
-
- #line 275 "HEADERMain_def.h" /0
-
- #line 276 "HEADERMain_def.h" /1
-
-
- #line 278 "HEADERMain_def.h" /0
-
- #line 279 "HEADERMain_def.h" /1
-
-
- #line 281 "HEADERMain_def.h" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 1 "HeaderMTV512.h" /0
-
-
-
-
-
-
-
-
-
- extern unsigned char xdata byMTV512_DDCRAMA[128];
- extern unsigned char xdata byMTV512_DDCRAMB[128];
-
-
-
-
-
- extern unsigned char xdata M512_PadMode0;
- extern unsigned char xdata M512_PadMode1;
- extern unsigned char xdata M512_PadMode2;
- extern unsigned char xdata M512_PadMode3;
- extern unsigned char xdata M512_PadMode4;
- extern unsigned char xdata M512_PadMode5;
- extern unsigned char xdata M512_Option1;
- extern unsigned char xdata M512_PadMode6;
- extern unsigned char xdata M512_PadMode7;
-
- extern unsigned char xdata M512_Port40;
- extern unsigned char xdata M512_Port41;
- extern unsigned char xdata M512_Port42;
-
-
-
-
-
-
-
- extern unsigned char xdata M512_Port50;
- extern unsigned char xdata M512_Port51;
- extern unsigned char xdata M512_Port52;
- extern unsigned char xdata M512_Port53;
- extern unsigned char xdata M512_Port54;
- extern unsigned char xdata M512_Port55;
- extern unsigned char xdata M512_Port56;
-
- extern unsigned char xdata M512_Port60;
- extern unsigned char xdata M512_Port61;
- extern unsigned char xdata M512_Port62;
- extern unsigned char xdata M512_Port63;
- extern unsigned char xdata M512_Port64;
- extern unsigned char xdata M512_Port65;
- extern unsigned char xdata M512_Port66;
- extern unsigned char xdata M512_Port67;
-
- extern unsigned char xdata M512_Port76;
- extern unsigned char xdata M512_Port77;
-
- extern unsigned char xdata M512_DA0;
- extern unsigned char xdata M512_DA1;
- extern unsigned char xdata M512_DA2;
- extern unsigned char xdata M512_DA3;
- extern unsigned char xdata M512_DA4;
- extern unsigned char xdata M512_DA5;
- extern unsigned char xdata M512_DA6;
- extern unsigned char xdata M512_DA7;
- extern unsigned char xdata M512_DA8;
- extern unsigned char xdata M512_DA9;
- extern unsigned char xdata M512_DA10;
- extern unsigned char xdata M512_DA11;
- extern unsigned char xdata M512_DA12;
- extern unsigned char xdata M512_DA13;
-
-
- extern unsigned char xdata M512_HVSTUS;
- extern unsigned char xdata M512_HCNTH;
- extern unsigned char xdata M512_HCNTL;
- extern unsigned char xdata M512_VCNTH;
- extern unsigned char xdata M512_VCNTL;
- extern unsigned char xdata M512_INTFLG;
- extern unsigned char xdata M512_INTEN;
-
-
-
- extern unsigned char xdata M512_IIC_CTR;
- extern unsigned char xdata M512_IIC_STUS1;
- extern unsigned char xdata M512_IIC_STUS2;
- extern unsigned char xdata M512_IIC_INTFLG;
- extern unsigned char xdata M512_IIC_INTEN;
- extern unsigned char xdata M512_IIC_MBUF;
- extern unsigned char xdata M512_IIC_TXRCABUF;
- extern unsigned char xdata M512_IIC_SLVAADR;
- extern unsigned char xdata M512_IIC_TXRCBBUF;
- extern unsigned char xdata M512_IIC_SLVBADR;
-
- extern unsigned char xdata M512_ISPSLV;
- extern unsigned char xdata M512_ISPEN;
-
-
-
-
- extern unsigned char xdata M512_ADC;
- extern unsigned char xdata M512_WDT;
- extern unsigned char xdata EINT1PEN ;
-
-
- #line 105 "HeaderMTV512.h" /1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 130 "HeaderMTV512.h" /0
-
-
-
-
-
-
-
-
- #line 4 "PCB2523d1_pcb.h" /0
-
-
-
-
-
-
-
-
-
-
-
-
- #line 16 "PCB2523d1_pcb.h" /1
-
-
-
- #line 19 "PCB2523d1_pcb.h" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 33 "PCB2523d1_pcb.h" /1
-
-
- #line 90 "PCB2523d1_pcb.h" /0
-
-
-
-
- sbit bRTD_SDIO_0 = 0x90;
-
-
- #line 158 "PCB2523d1_pcb.h" /1
-
-
-
-
- #line 162 "PCB2523d1_pcb.h" /0
-
- sbit bRTD_SCLK = 0x94;
- sbit bRTD_SCSB = 0x95;
- sbit bIIC_SCL = 0x96;
- sbit bIIC_SDA = 0x97;
-
- sbit bDDC_SCL = 0xb0;
- sbit bDDC_SDA = 0xb1;
-
- sbit bRTD_RST = 0xb2;
- sbit bRIGHT_KEY = 0xb4;
- sbit bLEFT_KEY = 0xb5;
-
-
-
-
-
-
-
-
- #line 182 "PCB2523d1_pcb.h" /1
-
-
-
- #line 185 "PCB2523d1_pcb.h" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 217 "PCB2523d1_pcb.h" /1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 282 "PCB2523d1_pcb.h" /0
-
-
- #line 110 "HeaderCONFIG.H" /0
-
-
-
-
- #line 114 "HeaderCONFIG.H" /1
-
-
- #line 116 "HeaderCONFIG.H" /0
-
-
- #line 118 "HeaderCONFIG.H" /1
-
-
- #line 120 "HeaderCONFIG.H" /0
-
- #line 1 "HEADERVDC_CFG.H" /0
-
-
-
-
-
-
- #line 7 "HEADERVDC_CFG.H" /1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 210 "HEADERVDC_CFG.H" /0
-
-
- #line 212 "HEADERVDC_CFG.H" /1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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[] = {0};
- unsigned char code SV_DETECT[] = {0};
- unsigned char code YUV_DETECT[] = {0};
-
- unsigned char code V_DISABLE[] = {0};
- unsigned char code V_ENABLE[] = {0};
-
-
- unsigned char code AV_60_0[] = {0};
- unsigned char code AV_60_1[] = {0};
- unsigned char code AV_60_2[] = {0};
- unsigned char code AV_60_3[] = {0};
- unsigned char code AV_60_4[] = {0};
-
- unsigned char code AV_50_0[] = {0};
- unsigned char code AV_50_1[] = {0};
- unsigned char code AV_50_2[] = {0};
- unsigned char code AV_50_3[] = {0};
- unsigned char code AV_50_4[] = {0};
-
- unsigned char code AV_SECAM[] = {0};
-
-
- unsigned char code SV_60_0[] = {0};
- unsigned char code SV_60_1[] = {0};
- unsigned char code SV_60_2[] = {0};
- unsigned char code SV_60_3[] = {0};
- unsigned char code SV_60_4[] = {0};
-
- unsigned char code SV_50_0[] = {0};
- unsigned char code SV_50_1[] = {0};
- unsigned char code SV_50_2[] = {0};
- unsigned char code SV_50_3[] = {0};
- unsigned char code SV_50_4[] = {0};
-
- unsigned char code SV_SECAM[] = {0};
-
- unsigned char code VIDEO_ALL[] = {0};
- unsigned char code VIDEO_YUV[] = {0};
- unsigned char code VIDEO_60[] = {0};
- unsigned char code VIDEO_50[] = {0};
-
- unsigned char code TV_SOURCE_SEL[] = {0};
- unsigned char code TV_SCAN_GAIN[] = {0};
- unsigned char code TV_DISP_GAIN[] = {0};
-
-
-
-
-
-
-
-
-
-
- #line 1229 "HEADERVDC_CFG.H" /1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 120 "HeaderCONFIG.H" /0
- #line 120 "HeaderCONFIG.H" /0
-
-
-
-
-
-
- unsigned int code CAP_WIN[][5] =
- {
-
- { 0, 0, 0, 0, 0 },
-
- { 800, 144, 640, 152, 350 },
- { 800, 144, 640, 127, 400 },
- { 800, 144, 640, 100, 350 },
- { 800, 144, 640, 75, 400 },
-
- { 848, 148, 640, 40, 400 },
- { 800, 144, 640, 61, 350 },
- { 900, 162, 720, 62, 350 },
- { 800, 144, 640, 37, 400 },
- { 900, 162, 720, 36, 400 },
- { 832, 160, 640, 63, 350 },
- { 832, 160, 640, 44, 400 },
- { 936, 180, 720, 45, 400 },
- { 800, 144, 640, 87, 480 },
- { 800, 144, 640, 35, 480 },
- { 864, 160, 640, 42, 480 },
- { 832, 168, 640, 31, 480 },
- { 840, 184, 640, 19, 480 },
- { 832, 136, 640, 28, 480 },
- { 1024, 200, 800, 24, 600 },
- { 1056, 216, 800, 27, 600 },
- { 1024, 176, 800, 82, 600 },
- { 1040, 184, 800, 29, 600 },
- { 1056, 240, 800, 24, 600 },
- { 1048, 216, 800, 30, 600 },
- { 1152, 288, 832, 42, 624 },
- { 1344, 296, 1024, 35, 768 },
- { 1312, 224, 1024, 39, 768 },
- { 1328, 288, 1024, 40, 768 },
- { 1328, 280, 1024, 35, 768 },
-
- { 1328, 275, 1024, 25, 768 },
- { 1328, 272, 1024, 33, 768 },
-
- { 1312, 272, 1024, 31, 768 },
- { 1376, 304, 1024, 39, 768 },
- { 1312, 264, 1024, 41, 800 },
- { 1600, 384, 1152, 35, 864 },
- { 1456, 272, 1152, 42, 870 },
- { 1504, 322, 1152, 35, 900 },
- { 1472, 304, 1152, 41, 900 },
- { 1800, 424, 1280, 39, 960 },
- { 1512, 336, 1120, 50, 960 },
- { 1688, 360, 1280, 41, 1024 },
- { 1728, 380, 1280, 42, 1024 },
- { 1664, 352, 1280, 40, 1024 },
- { 1688, 392, 1280, 41, 1024 },
- { 1512, 336, 1120, 47, 1024 },
- { 1728, 396, 1280, 49, 1200 },
-
- { 0, 0, 0, 0, 0 },
- { 0, 0, 0, 0, 0 },
- { 0, 0, 0, 0, 0 },
- { 0, 0, 0, 0, 0 },
-
- { 900, 162, 720, 17, 400 },
- { 840, 180, 640, 17, 480 },
- { 1056, 240, 800, 17, 600 },
- { 1344, 296, 1024, 17, 768 },
- { 1536, 352, 1152, 17, 864 },
- { 1472, 304, 1152, 17, 900 },
- { 1728, 396, 1280, 17, 960 },
- { 1688, 380, 1280, 17, 1024 },
- { 1728, 396, 1280, 17, 1200 },
- { 1312, 272, 1024, 17, 0 },
- { 1312, 272, 1024, 17, 0 },
- };
-
-
-
-
-
-
-
- unsigned int code ADC_SD_SET[][3] =
- {
-
- { 1248, 286, 936 },
- { 1196, 247, 936 },
- { 1296, 288, 960 },
- { 1296, 288, 960 },
- { 1512, 347, 1120 },
- };
-
-
-
-
- unsigned char code DCLK_OFFSET[16] =
- { 0, 1, 1, 1, 2, 3, 3, 4, 5, 7, 7, 7, 11, 13, 14, 17 };
-
-
-
- unsigned char code VGA_INI_SS[] =
- {
- 5, 0, 0x04, 0x00,0x40,
- 6, 0, 0x4A, 0x00,0x14,0x00,
- 0
- };
-
- unsigned char code VGA_INI_CS[] =
- {
- 5, 0, 0x04, 0x00,0x40,
- 6, 0, 0x4A, 0x00,0x55,0x20,
- 4, 1, 0x52, 0x80,
- 0
- };
-
- unsigned char code VGA_INI_SOG[] =
- {
- 5, 0, 0x04, 0x00,0x40,
- 6, 0, 0x4A, 0x00,0x57,0x20,
- 4, 1, 0x52, 0x80,
- 0
- };
-
- unsigned char code DVI_INI[] =
- {
- 5, 0, 0x04, 0x10,0x00 | 0x01,
- 6, 0, 0x4A, 0x00,0x10,0x00,
- 4, 1, 0x4E, (0x01 * 0x10),
- 4, 1, 0xa3, 0x36,
- 4, 1, 0xb3, 0x0f,
- 0
- };
-
- unsigned char code VIDEO_INI[] =
- {
- 5, 0, 0x04, 0x0c,0x00 | 0x01,
- 4, 1, 0x14, 0x1e,
- 6, 0, 0x4A, 0x00,0x10,0x00,
- 4, 1, 0x4E, (0x00 * 0x10),
- 0
- };
-
- unsigned char code VGA_SET_SS[] =
- {
-
- 4, 1, 0x04, 0x00,
- 4, 1, 0x05, 0x40,
- 5, 0, 0x4A, 0x00,0x14,
-
- 4, 1, 0x52, 0x00,
-
- 0
- };
-
- unsigned char code VGA_SET_CS[] =
- {
-
- 4, 1, 0x05, 0x40,
- 5, 0, 0x4A, 0x00,0x55,
-
- 4, 1, 0x52, 0x80,
-
- 0
- };
-
- unsigned char code VGA_SET_SOG[] =
- {
-
- 4, 1, 0x05, 0x40,
- 5, 0, 0x4A, 0x00,0x57,
-
- 4, 1, 0x52, 0x80,
-
- 0
- };
-
-
-
- unsigned char code LVDS_POWERUP[] =
- {
-
- 4, 1, 0xc0, 0xe0,
-
- #line 306 "HeaderCONFIG.H" /1
-
-
- #line 308 "HeaderCONFIG.H" /0
-
- 0
- };
- unsigned char code LVDS_POWERDOWN[] =
- {
- 4, 1, 0xc0, 0x00,
-
- 0
- };
-
-
-
-
- unsigned char code Palette_Open[] =
- {
- 4, 1, 0x6E, 0x80,
- 0
- };
- unsigned char code Palette_Close[] =
- {
- 4, 1, 0x6E, 0x00,
- 0
- };
-
-
- #line 333 "HeaderCONFIG.H" /1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 410 "HeaderCONFIG.H" /0
-
- unsigned char code Palette_7[] =
- {
- 51, 1, 0x6F,
- 0x9F,0xED,0xAB,0xFF,0xFF,0xFF,
- 0xFF,0x00,0x00,0x00,0x00,0xFF,
- 0x00,0x00,0x00,0xFF,0xFF,0x00,
- 0x00,0xFF,0xFF,0xFF,0x00,0xFF,
- 0xFF,0x80,0x00,0xC0,0xC0,0xC0,
- 0x80,0x80,0x80,0x7A,0xB4,0x81,
- 0x56,0xF0,0x6D,0xCD,0xF8,0xD4,
- 0x9F,0xED,0xAB,0xB4,0xF1,0xBF,
- 0
- };
-
-
-
- #line 435 "HeaderCONFIG.H" /1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 11 "CodeLcd_main.c" /0
- #line 11 "CodeLcd_main.c" /0
-
-
- #line 1 "HeaderACCESS.H" /0
-
-
-
- #line 4 "HeaderACCESS.H" /1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 90 "HeaderACCESS.H" /0
-
-
- extern unsigned char data Data[16];
-
-
- extern void BitDly(void);
- extern void SetPortBit(unsigned char port, unsigned char and, unsigned char or);
- extern void SetSFRPort(unsigned char port, unsigned char Data);
- extern unsigned char GetSFRPort(unsigned char port);
-
- extern unsigned char I2CGetByte(unsigned char ack);
- extern void I2CSendByte(unsigned char send);
- extern void I2CSendAddr(unsigned char addr, unsigned char index ,unsigned char rd);
- extern void I2CSendStop(void);
- extern void I2CRead(unsigned char addr, unsigned char index, unsigned char count);
- extern void I2CWrite(unsigned char *array);
-
- extern unsigned char RTDGetByte(void);
- extern void RTDSendByte(unsigned char send);
- extern void RTDSendAddr(unsigned char addr, unsigned char rd, unsigned char inc);
- extern void RTDRead(unsigned char index, unsigned char count, unsigned char inc);
- extern void RTDWrite(unsigned char data *array);
- extern void RTDCodeW(unsigned char code *array);
- extern void RTDOSDW(unsigned char code *array);
- extern void RTDOSDW(unsigned char code *array);
-
- extern void RTDSetBit(unsigned char addr,unsigned char and, unsigned char or);
- extern void RTDSetByte(unsigned char addr, unsigned char val);
-
-
- extern void Load_Font(unsigned char code *array, unsigned int start, unsigned int length);
- extern void Load_VLC_Font(unsigned char code *array, unsigned int start, unsigned int length);
-
-
- #line 124 "HeaderACCESS.H" /1
-
-
- #line 126 "HeaderACCESS.H" /0
-
-
- #line 128 "HeaderACCESS.H" /1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 159 "HeaderACCESS.H" /0
-
-
- #line 12 "CodeLcd_main.c" /0
-
-
- #line 1 "HeaderLCD_COEF.H" /0
-
-
- unsigned char code GAMMA_1[] =
- {
-
-
- 0x00,0x02,0x03,0x05,0x06,0x08,0x0a,0x0b,0x0c,0x0e,0x0f,0x11,0x12,0x14,0x15,0x17,
- 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
- 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,
- 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,
-
- 0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,
- 0x58,0x59,0x5a,0x5b,0x5c,0x5d,0x5e,0x5f,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,
- 0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,
- 0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x7f,0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,
-
- 0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,
- 0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,
- 0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,
- 0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,
-
- 0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,
- 0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xdf,0xe0,0xe0,0xe1,0xe2,0xe3,0xe4,0xe4,0xe5,
- 0xe6,0xe7,0xe8,0xe8,0xe9,0xea,0xeb,0xec,0xec,0xed,0xee,0xef,0xf0,0xf0,0xf1,0xf2,
- 0xf3,0xf4,0xf4,0xf5,0xf6,0xf7,0xf8,0xf8,0xf9,0xfa,0xfb,0xfc,0xfc,0xfd,0xfe,0xff,
-
-
-
-
- };
-
- unsigned char code GAMMA_2[] =
- {
-
- 0x00,0x03,0x05,0x07,0x09,0x0A,0x0C,0x0E,0x0F,0x11,0x13,0x14,0x16,0x17,0x19,0x1A,
- 0x1B,0x1D,0x1E,0x1F,0x21,0x22,0x23,0x25,0x26,0x27,0x29,0x2A,0x2B,0x2C,0x2E,0x2F,
- 0x30,0x31,0x32,0x34,0x35,0x36,0x37,0x38,0x39,0x3B,0x3C,0x3D,0x3E,0x3F,0x40,0x41,
- 0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,0x4D,0x4F,0x50,0x51,0x52,0x53,
- 0x54,0x55,0x56,0x57,0x58,0x59,0x5A,0x5B,0x5C,0x5D,0x5E,0x5F,0x60,0x61,0x62,0x63,
- 0x64,0x65,0x66,0x67,0x68,0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,
- 0x74,0x75,0x76,0x77,0x78,0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,0x81,0x82,0x83,
- 0x84,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,0x91,0x91,
- 0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,0x9C,0x9D,0x9E,0x9F,0xA0,
- 0xA1,0xA2,0x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x81,0x82,
- 0x83,0x84,0x85,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x8F,0x90,
- 0x91,0x92,0x93,0x94,0x95,0x96,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,0x9D,0x9D,0x9E,
- 0x9F,0xA0,0xA1,0xA2,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,
- 0xAC,0xAD,0xAE,0xAF,0xB0,0xB0,0xB1,0xB2,0xB3,0xB4,0xB4,0xB5,0xB6,0xB7,0xB8,0xB8,
- 0xB9,0xBA,0xBB,0xBC,0xBC,0xBD,0xBE,0xBF,0xBF,0xC0,0xC1,0xC2,0xC3,0xC3,0xC4,0xC5,
- 0xC6,0xC6,0xC7,0xC8,0xC9,0xC9,0xCA,0xCB,0xCC,0xCC,0xCD,0xCE,0xCF,0xCF,0xD0,0xD1,
- 0xD2,0xD2,0xD3,0xD4,0xD5,0xD5,0xD6,0xD7,0xD8,0xD8,0xD9,0xDA,0xDB,0xDB,0xDC,0xDD,
- 0xDD,0xDE,0xDF,0xE0,0xE0,0xE1,0xE2,0xE3,0xE3,0xE4,0xE5,0xE5,0xE6,0xE7,0xE8,0xE8,
- 0xE9,0xEA,0xEA,0xEB,0xEC,0xED,0xED,0xEE,0xEF,0xEF,0xF0,0xF1,0xF1,0xF2,0xF3,0xF4,
- 0xF4,0xF5,0xF6,0xF6,0xF7,0xF8,0xF8,0xF9,0xFA,0xFA,0xFB,0xFC,0xFC,0xFD,0xFE,0xFF
- };
-
-
- #line 111 "HeaderLCD_COEF.H" /1
-
-
-
-
-
-
- #line 117 "HeaderLCD_COEF.H" /0
-
-
- extern unsigned char code DITHER_1[];
- extern unsigned char code DITHER_2[];
- extern unsigned char code NEW_DITHER_TABLE[];
- extern unsigned char code SU_COEF_1[];
- extern unsigned char code SU_COEF_2[];
- extern unsigned char code SU_COEF_3[];
- extern unsigned char code SU_COEF_4[];
- extern unsigned char code SU_COEF_5[];
- extern unsigned char code SU_COEF_6[];
- extern unsigned char code SU_COEF_7[];
-
- #line 13 "CodeLcd_main.c" /0
-
-
- #line 1 "HeaderLCD_FUNC.H" /0
-
- #line 1 "HEADERMain_def.h" /0
-
- #line 1 "HEADERCHAR_DEF.H" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 1 "HEADERMain_def.h" /0
-
-
- #line 1 "HEADERMODE_DEF.H" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 2 "HEADERMain_def.h" /0
-
-
- #line 1 "HEADERRTD_DEF.H" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 3 "HEADERMain_def.h" /0
-
-
- #line 1 "HEADERCODE_DEF.H" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 4 "HEADERMain_def.h" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 144 "HEADERMain_def.h" /1
-
-
-
-
-
-
-
-
-
-
-
- #line 155 "HEADERMain_def.h" /0
-
-
- #line 157 "HEADERMain_def.h" /1
-
-
- #line 159 "HEADERMain_def.h" /0
-
-
-
-
- #line 163 "HEADERMain_def.h" /1
-
-
- #line 165 "HEADERMain_def.h" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 270 "HEADERMain_def.h" /1
-
-
- #line 272 "HEADERMain_def.h" /0
-
- #line 273 "HEADERMain_def.h" /1
-
-
- #line 275 "HEADERMain_def.h" /0
-
- #line 276 "HEADERMain_def.h" /1
-
-
- #line 278 "HEADERMain_def.h" /0
-
- #line 279 "HEADERMain_def.h" /1
-
-
- #line 281 "HEADERMain_def.h" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 1 "HeaderLCD_FUNC.H" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- typedef struct _GLOBAL_USER_DATA0
- {
- unsigned char CONTRAST;
- unsigned char BRIGHT;
- unsigned char RTD_R_CONTRAST;
- unsigned char RTD_G_CONTRAST;
- unsigned char RTD_B_CONTRAST;
- unsigned char RTD_R_BRIGHT;
- unsigned char RTD_G_BRIGHT;
- unsigned char RTD_B_BRIGHT;
- }
- GLOBAL_USER_DATA0, *LP_GLOBAL_USER_DATA0;
-
- typedef struct _GLOBAL_USER_DATA1
- {
- unsigned char FUNCTION;
-
-
-
-
-
-
-
-
-
-
-
-
-
- unsigned char INPUT_SOURCE;
-
-
-
-
-
-
-
-
-
-
- unsigned char FILTER;
- unsigned int OSD_POSH;
- unsigned char OSD_POSV;
- unsigned char OSD_TIMEOUT;
-
- unsigned char OSD_INPUT;
-
-
-
- }
- GLOBAL_USER_DATA1, *LP_GLOBAL_USER_DATA1;
-
-
- typedef struct _GLOBAL_USER_DATA2
- {
- unsigned char AD_R_GAIN;
- unsigned char AD_G_GAIN;
- unsigned char AD_B_GAIN;
- unsigned char AD_R_OFFSET;
- unsigned char AD_G_OFFSET;
- unsigned char AD_B_OFFSET;
- }
- GLOBAL_USER_DATA2, *LP_GLOBAL_USER_DATA2;
-
- typedef struct _GLOBAL_USER_DATA3
- {
- unsigned char VOLUME;
- unsigned char CURR_CHANNEL;
- unsigned char PREV_CHANNEL;
- unsigned char TV_SETTING;
-
-
-
-
-
-
-
-
-
-
-
- unsigned char SPREAD;
- }
- GLOBAL_USER_DATA3, *LP_GLOBAL_USER_DATA3;
-
- typedef struct _GLOBAL_USER_DATA4
- {
- unsigned char C1_R;
- unsigned char C1_G;
- unsigned char C1_B;
- unsigned char C2_R;
- unsigned char C2_G;
- unsigned char C2_B;
- unsigned char C3_R;
- unsigned char C3_G;
- unsigned char C3_B;
- }
- GLOBAL_USER_DATA4, *LP_GLOABL_USER_DATA4;
-
- typedef struct _RGB_MODE_USER_DATA
- {
- unsigned char H_POSITION;
- unsigned char V_POSITION;
- unsigned char CLOCK;
- unsigned char PHASE;
- }
- RGB_MODE_USER_DATA, *LP_RGB_MODE_USER_DATA;
-
- typedef struct _VIDEO_MODE_USER_DATA
- {
- unsigned char VBRIGHT;
- unsigned char VCONTRAST;
- unsigned char VSATURATION;
- unsigned char VHUE;
- }
- VIDEO_MODE_USER_DATA, *LP_VIDEO_MODE_USER_DATA;
-
-
-
- #line 134 "HeaderLCD_FUNC.H" /1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 313 "HeaderLCD_FUNC.H" /0
-
-
-
-
- extern GLOBAL_USER_DATA0 data stGUD0;
- extern GLOBAL_USER_DATA1 data stGUD1;
- extern GLOBAL_USER_DATA2 data stGUD2;
- extern GLOBAL_USER_DATA3 data stGUD3;
- extern GLOBAL_USER_DATA4 data stGUD4;
- extern RGB_MODE_USER_DATA data stMUD;
-
- extern unsigned int idata usIPH_ACT_STA;
- extern unsigned int idata usIPV_ACT_STA;
- extern unsigned int idata usIPH_ACT_WID;
- extern unsigned int idata usIPV_ACT_LEN;
-
- extern unsigned int idata usADC_Clock;
- extern unsigned int idata usDH_Total;
- extern unsigned int idata usDV_Total;
- extern unsigned char idata ucDV_Delay;
-
- extern unsigned char idata ucV_Max_Margin;
- extern unsigned char idata ucV_Min_Margin;
- extern unsigned char idata ucH_Max_Margin;
- extern unsigned char idata ucH_Min_Margin;
- extern unsigned char idata UartNum;
- extern unsigned char idata UartData[4];
-
-
-
- extern void SetMute(bit val);
- extern void SetVolume();
-
- extern void WriteGamma(unsigned char code *arrayR, unsigned char code *arrayG, unsigned char code *arrayB);
- extern void WriteDither(unsigned char code *array);
- extern void WriteSU_COEF(unsigned char code *arrayH, unsigned char code *arrayV);
-
- extern void Set_H_Position(void);
- extern void Set_V_Position(void);
- extern void Set_Clock(void);
- extern void Set_Phase(unsigned char phase);
- extern void Set_Bright_Contrast(void);
- extern void Set_Gamma(void);
- extern void Set_Dithering(void);
- extern void Sharpness(void);
- extern void Set_Mode_Params(void);
-
- extern void SetADC_VCO(unsigned char ucRate);
- extern void SetADC_Gain(void);
- extern void SetADC_Offset(void);
- extern void SetADC_GainOffset(void);
-
- #line 365 "HeaderLCD_FUNC.H" /1
-
-
- #line 367 "HeaderLCD_FUNC.H" /0
-
- extern void Wait_For_Event(unsigned char event);
-
-
-
- extern void Save_GUD0(void);
- extern void Load_GUD0(void);
- extern void Save_GUD1(void);
- extern void Load_GUD1(void);
- extern void Save_GUD2(void);
- extern void Load_GUD2(void);
- extern void Save_GUD3(void);
- extern void Load_GUD3(void);
- extern void Save_GUD4(void);
- extern void Load_GUD4(void);
- extern void Save_MUD(unsigned char mode_num);
- extern void Load_MUD(unsigned char mode_num);
- extern void Init_GUD(void);
- extern void Init_MUD(void);
- extern void Check_EEPROM(void);
- extern unsigned char code INIT_EEPROM2[];
- extern void RTD_Test(void);
- extern void Free_Background(void);
- extern void Reset_Mode(void);
-
-
-
- extern void Set_Spread(void);
- extern void Init_FACTORY(void);
- extern void Init_FRecall(void);
-
-
-
-
-
- #line 402 "HeaderLCD_FUNC.H" /1
-
-
-
-
- #line 406 "HeaderLCD_FUNC.H" /0
-
-
- #line 14 "CodeLcd_main.c" /0
-
-
- #line 1 "HeaderLCD_AUTO.H" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 71 "HeaderLCD_AUTO.H" /1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 107 "HeaderLCD_AUTO.H" /0
-
- extern bit bAutoInProgress;
-
- extern unsigned int idata usVer_Start;
- extern unsigned int idata usVer_End;
- extern unsigned int idata usH_Start;
- extern unsigned int idata usH_End;
-
- extern unsigned char Auto_Phase(void);
-
- extern unsigned char Auto_Position(void);
- extern unsigned char Auto_Config(void);
- extern unsigned char Auto_Balance(void);
-
- extern unsigned char Measure_Color(unsigned char color, unsigned char margin);
-
-
- #line 15 "CodeLcd_main.c" /0
-
-
- #line 1 "HeaderLCD_MSG.H" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 56 "HeaderLCD_MSG.H" /1
-
-
-
-
-
-
-
-
- #line 64 "HeaderLCD_MSG.H" /0
-
- extern unsigned char idata ucKey_Issued;
- extern bit bKeyTurbo;
-
- extern unsigned char Key_Trans();
- extern void OSD_Dispatcher(unsigned char message);
-
-
-
- #line 16 "CodeLcd_main.c" /0
-
-
- #line 1 "HeaderLCD_MAIN.H" /0
-
- #line 1 "HEADERTimer.h" /0
-
- #line 1 "HEADERMain_def.h" /0
-
- #line 1 "HEADERCHAR_DEF.H" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-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line 4 "HEADERMain_def.h" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 144 "HEADERMain_def.h" /1
-
-
-
-
-
-
-
-
-
-
-
- #line 155 "HEADERMain_def.h" /0
-
-
- #line 157 "HEADERMain_def.h" /1
-
-
- #line 159 "HEADERMain_def.h" /0
-
-
-
-
- #line 163 "HEADERMain_def.h" /1
-
-
- #line 165 "HEADERMain_def.h" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 270 "HEADERMain_def.h" /1
-
-
- #line 272 "HEADERMain_def.h" /0
-
- #line 273 "HEADERMain_def.h" /1
-
-
- #line 275 "HEADERMain_def.h" /0
-
- #line 276 "HEADERMain_def.h" /1
-
-
- #line 278 "HEADERMain_def.h" /0
-
- #line 279 "HEADERMain_def.h" /1
-
-
- #line 281 "HEADERMain_def.h" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 1 "HEADERTimer.h" /0
-
-
-
-
-
-
-
-
- #line 9 "HEADERTimer.h" /1
-
-
-
-
- #line 13 "HEADERTimer.h" /0
-
-
-
-
-
-
-
- #line 20 "HEADERTimer.h" /1
-
-
-
-
-
- #line 25 "HEADERTimer.h" /0
-
-
-
-
-
-
-
-
-
-
- #line 35 "HEADERTimer.h" /1
-
-
-
-
-
-
- #line 41 "HEADERTimer.h" /0
-
-
- #line 43 "HEADERTimer.h" /1
-
-
-
-
-
-
-
-
- #line 68 "HEADERTimer.h" /0
-
- extern bit bNotify_Timer0_Int;
- extern bit bNotify_Timer1_Int;
- extern void Delay_Xms(unsigned char x);
-
- #line 1 "HeaderLCD_MAIN.H" /0
-
-
- #line 1 "HEADERPower_Ctrl.h" /0
-
-
-
-
-
-
-
-
-
-
-
- #line 12 "HEADERPower_Ctrl.h" /1
-
-
-
-
-
-
-
-
- #line 20 "HEADERPower_Ctrl.h" /0
-
- extern bit bPower_Status;
- extern bit bPanel_Status;
-
- extern void PowerDown_ADC(void);
- extern void PowerUp_ADC(void);
- extern void PowerDown_VDC(void);
- extern void PowerUp_VDC(void);
- extern void PowerDown_LVDS(void);
- extern void PowerUp_LVDS(void);
- extern void PowerDown_TMDS(void);
- extern void PowerUp_TMDS(void);
-
- extern void Set_Panel(unsigned char status);
- extern bit Power_Control(unsigned char Notify);
-
-
-
-
- #line 2 "HeaderLCD_MAIN.H" /0
-
-
- #line 1 "HEADERMode_Detect.h" /0
-
- #line 2 "HEADERMode_Detect.h" /1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 64 "HEADERMode_Detect.h" /0
-
- extern bit bVpole_Curr;
- extern bit bHpole_Curr;
- extern bit bStable;
- extern bit bOverSpec;
-
- extern unsigned int idata usHsync;
- extern unsigned int idata usStdHS;
- extern unsigned int idata usVsync;
- extern unsigned char idata ucMode_Curr;
- extern unsigned char idata ucMode_Found;
- extern unsigned char idata ucMode_Times;
- extern unsigned char idata ucAV_Mode;
- extern unsigned char idata ucInputSrc;
- extern unsigned char idata ucRefresh;
- extern unsigned char idata ucModeCnt;
- extern unsigned char idata ucSync_Type;
- extern void Mode_Detector(void);
- extern void Measure_Mode(void);
- extern void Measure_Source(unsigned char SOURCE);
- extern void Input_Mode_Detector(void);
- extern unsigned char idata ucPE_Level;
- extern unsigned char idata ucCE_Value;
-
- extern void New_Mode_Auto(void);
- extern unsigned int idata ucfrist ;
-
-
- #line 3 "HeaderLCD_MAIN.H" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 34 "HeaderLCD_MAIN.H" /1
-
-
-
- #line 37 "HeaderLCD_MAIN.H" /0
-
-
-
- bit bReload = 0;
-
-
- #line 43 "HeaderLCD_MAIN.H" /1
-
-
-
- #line 46 "HeaderLCD_MAIN.H" /0
-
-
- unsigned char code BurnInColor[3][5] =
- {
-
- { 255, 0, 0, 255, 0},
- { 0, 255, 0, 255, 0},
- { 0, 0, 255 ,255, 0},
-
-
-
- };
-
- unsigned int idata usOSD_Timer = 0;
-
- unsigned int idata usTaskCnt = 350;
-
- unsigned char idata ucID_Code = 0;
-
-
-
-
- #line 68 "HeaderLCD_MAIN.H" /1
-
-
- #line 70 "HeaderLCD_MAIN.H" /0
-
-
- #line 72 "HeaderLCD_MAIN.H" /1
-
-
-
-
-
- #line 77 "HeaderLCD_MAIN.H" /0
-
- void ISP_Check_Sum(void);
-
-
- void Set_Task(unsigned char state);
- void Run_Task(void);
-
-
-
- #line 86 "HeaderLCD_MAIN.H" /1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 17 "CodeLcd_main.c" /0
- #line 17 "CodeLcd_main.c" /0
-
-
- #line 1 "HeaderLCD_OSD.H" /0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 24 "HeaderLCD_OSD.H" /1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #line 90 "HeaderLCD_OSD.H" /0
-
- extern unsigned char idata ucOSD_Page_Index;
- extern unsigned char idata ucOSD_Item_Index0;
- extern unsigned char idata ucOSD_Item_Index1;
- extern unsigned char idata ucOSD_Item_Index2;
-
- extern unsigned char idata ucOSD_Pre_Page_Index;
-
- #line 98 "HeaderLCD_OSD.H" /1
-
-
-
-
- #line 102 "HeaderLCD_OSD.H" /0
-
-
- extern void OSD_Proc(unsigned char action);
-
-
- extern void OSD_Window(unsigned char win_no, unsigned int row_start, unsigned int row_end, unsigned int col_start, unsigned int col_end,
- unsigned char width, unsigned char height, unsigned char color, unsigned char color_sb, unsigned char gradient,
- unsigned char gra_level,unsigned char attr);
-
-
- extern void OSD_Line(unsigned char row, unsigned char col, unsigned char length, unsigned char value, unsigned char indicate);
-
- extern void Get_OSD_Margin(void);
-
- extern void OSD_Opening(void);
- extern void OSD_Ending(void);
-
- extern void Show_Note(void);
- extern void Show_Hint(void);
- extern void OSD_Clear(unsigned char row_start, unsigned char height, unsigned char col_start, unsigned char width);
-
- extern void OSD_Show_Check(void);
- extern void rgb_OSD_Slider(unsigned char row, unsigned char col, unsigned char length, unsigned char value, unsigned char range,
- unsigned char color, unsigned char color_slider);
-
-
-
- extern void OSD_Fact_Line(unsigned char row, unsigned char col, unsigned char length, unsigned char value, unsigned char indicate);
- extern void OSD_Fact_Clear(unsigned char row_start, unsigned char height, unsigned char col_start, unsigned char width);
- extern void OSD_Position(unsigned char para);
- extern void Value_Adjust(unsigned char *Var, unsigned char Key, unsigned char VMax, unsigned char VMin);
-
-
-
-
-
- #line 18 "CodeLcd_main.c" /0
-
-
- #line 1 "HeaderFONT.H" /0
-
-
-
-
- #line 5 "HeaderFONT.H" /1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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