📄 exper.lst
字号:
C51 COMPILER V7.06 EXPER 06/08/2006 15:01:13 PAGE 1
C51 COMPILER V7.06, COMPILATION OF MODULE EXPER
OBJECT MODULE PLACED IN .\Exper.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE ..\Exper.c BROWSE DEBUG OBJECTEXTEND OBJECT(.\Exper.obj)
stmt level source
1 #include<string.h>
2 #include "mtv412.c"
3 #include "048n01.h"
4 static unsigned char pdata XRAM[128] _at_ 0x0f00;
5 typedef unsigned char uchar;
6 typedef unsigned int uint;
7 typedef unsigned char BYTE;
8
9 sfr PCON=0x87;
10
11 sfr IE=0xa8;
12 sbit EA=IE^7;
13 sbit IntEnable=IE^7;
14 sbit EX0=IE^0;
15 sbit ET0=IE^1;
16 sbit EX1=IE^2;
17 sbit ET1=IE^3;
18
19 sfr IP=0xb8;
20 sbit PX1=IP^2;
21 sbit PT0=IP^1;
22
23 sfr TMODE=0x89;
24
25 sfr TCON=0x88;
26 sbit IT1=TCON^2;
27 sbit TR0=TCON^4;
28 sbit TF0=TCON^5;
29 sbit IE1=0x8b;
30
31 sfr TH0=0x8c;
32 sfr TL0=0x8a;
33
34 sfr P1=0x90;
35 sbit P1_3=P1^3;
36 sbit P1_4=P1^4;
37 sbit P1_5=P1^5;
38 sbit P1_6=P1^6;
39 sbit P1_7=P1^7;
40
41
42 /* =========================================================================================*/
43 uchar CursorX=0,CursorY=0,SW;
44 bit H_Size_OK=0, V_Size_OK=1, H_Position_OK=1, V_Position_OK=1, T1msFLAG=0, T256msFLAG=0;
45 bit OSD_status=0; //1= on, 0= off
46 bit STOUT;
47 uchar bdata OSD_C17=0;
48 uchar IIC_counter,VCO,tp,HORR,Hfreq;
49 unsigned int H_start,H_end,V_start,V_end,Scanline;
50 unsigned int TimeCounter;
51 ///////////////
52 uchar KeyCounter=0;
53 //////////////
54 float idata Scale_LOW=2.3,Scale_HI=1.0,Kvp=10.67,Kvs=6.78,V_Offset_ref=51.78,Vpercent_ref=96.06,* Khs,* Hp
-ercent_ref;
C51 COMPILER V7.06 EXPER 06/08/2006 15:01:13 PAGE 2
55 uchar idata byAutoAlignCmd,byAutoAlignData;
56 uchar pdata PRAM[128] _at_ 0x800; //mtv412 is 0x800
57 //============== TDA4856 deflection definition================================================
58 #define Hsize 0x81
59 #define Hposition 0x87
60 #define Vsize 0x88
61 #define Vposition 0x8d
62 #define Vunit 0x01
63 #define H_flb_pol 0x01
64 //============================================================================================
65 #ifndef _show_
66 #include "show.h"
67 #endif
68
69 //void OSDBoxDemosl(uchar,uchar,uchar,uchar,uchar,uchar);
70 void InitOSD();
71 void SendMtv212(uchar);
72 void InitOSD31();
73 void InitOSD47();
74 void InitOSD63();
75 void InitOSD95();
76 void SendHORR(uchar,uchar,uchar,uchar,uchar);
77 void ShowCharDemos();
78 void Char_demo();
79 void Showsymboladdr();
80 void AnyKeyExit();
81 void KeyControl();
82 void Frame_keycontrol();
83 //void InitOSD();
84 void TurnOSD(bit status);
85 //void Initmoudletest31();
86 void AdjustVCO();
87 void AdjustHORR();
88 //void ShowAdjustVCOMenu();
89 //void CloseAllOSDWindow();
90 void ShowVCOBoard();
91 void ShowHORRBoard();
92 void PrintHex(uchar,uchar);
93 void PrintDecCode(uchar,uchar);
94 void ResetKey();
95 void WaitKeyup();
96 void ShowSecondModuleTest();
97 //void ShowMYSONInfo();
98 void PrintString(uchar *,uchar ,uchar );
99 void ShowSecondMenu();
100 bit SendIIC(uchar *,uchar );
101 void PutChar(uchar , uchar );
102 void Putuserchar(uchar da, uchar color);
103 void CloseOSDWindow(uchar );
104 void ClearOSD();
105 void SendOSDCmd(uchar, uchar,uchar);
106
107 void AutoDemo();
108 void SingleDemo(uchar);
109 void ShowallfontDemo();
110 void Frame_shadow();
111 void Frame_toggle();
112 void ShowMain();
113 void ShowOSDAllFont(uchar);
114 void PutPage2Char(uchar , uchar );
115 void InitialUserFont();
116 //void SendUserFontCmd(uchar,uchar,uchar);
C51 COMPILER V7.06 EXPER 06/08/2006 15:01:13 PAGE 3
117 void ShowEnterISPmode();
118 void ShowVCOHORR();
119 void Showtest31();
120 void Showtest47();
121 void Showtest63();
122 void Showtest95();
123 uchar PressKey();
124 //void Initmoudletest31();
125
126
127 uchar code UserFont[]={
128 0x00,0x70,
129 0x01,0x80,
130 0x02,0x40,
131 0x04,0x40,
132 0x08,0x40,
133 0x08,0xc0,
134 0x10,0xe0,
135 0x10,0xe0,
136 0x11,0xe0,
137 0x11,0xa0,
138 0x11,0x00,
139 0x13,0x10,
140 0x0a,0x00,
141 0x0a,0x00,
142 0x04,0x00,
143 0x02,0x00,
144 0x01,0x80,
145 0x00,0x70
146 };
147 uchar code Upfont[]={
148 0x00,0x00,
149 0x00,0x00,
150 0x00,0x00,
151 0x00,0x00,
152 0x06,0x00,
153 0x0f,0x00,
154 0x1f,0x80,
155 0x3f,0xc0,
156 0x7f,0xe0,
157 0x0f,0x00,
158 0x0f,0x00,
159 0x0f,0x00,
160 0x0f,0x00,
161 0x0f,0x00,
162 0x00,0x00,
163 0x00,0x00,
164 0x00,0x00,
165 0x00,0x00
166 };
167 uchar code Downfont[]={
168 0x00,0x00,
169 0x00,0x00,
170 0x00,0x00,
171 0x00,0x00,
172 0x0f,0x00,
173 0x0f,0x00,
174 0x0f,0x00,
175 0x0f,0x00,
176 0x0f,0x00,
177 0x7f,0xe0,
178 0x3f,0xc0,
C51 COMPILER V7.06 EXPER 06/08/2006 15:01:13 PAGE 4
179 0x1f,0x80,
180 0x0f,0x00,
181 0x06,0x00,
182 0x00,0x00,
183 0x00,0x00,
184 0x00,0x00,
185 0x00,0x00
186 };
187
188 uchar code Leftfont[]={
189 0x00,0x00,
190 0x00,0x00,
191 0x00,0x00,
192 0x00,0x00,
193 0x04,0x00,
194 0x0c,0x00,
195 0x1c,0x00,
196 0x3f,0xe0,
197 0x7f,0xe0,
198 0x7f,0xe0,
199 0x3f,0xe0,
200 0x1c,0x00,
201 0x0c,0x00,
202 0x04,0x00,
203 0x00,0x00,
204 0x00,0x00,
205 0x00,0x00,
206 0x00,0x00
207 };
208 uchar code Rightfont[]={
209 0x00,0x00,
210 0x00,0x00,
211 0x00,0x00,
212 0x00,0x00,
213 0x02,0x00,
214 0x03,0x00,
215 0x03,0x80,
216 0x7f,0xc0,
217 0x7f,0xe0,
218 0x7f,0xe0,
219 0x7f,0xc0,
220 0x03,0x80,
221 0x03,0x00,
222 0x02,0x00,
223 0x00,0x00,
224 0x00,0x00,
225 0x00,0x00,
226 0x00,0x00
227 };
228
229
230 bit KeySelect1=0;
231 bit KeySelect2=0;
232 bit KeySelect3=0;
233 bit KeySelect4=0;
234 bit KeySelect5=0;
235 bit KeySelect6=0;
236 bit KeyLayer1=1;
237 bit KeyLayer2=0;
238 bit KeyLayer3=0;
239 bit KeyLayer4=0;
240 bit MainMenuFlg=0;
C51 COMPILER V7.06 EXPER 06/08/2006 15:01:13 PAGE 5
241 bit SecondMenuFlg=0;
242 bit ThirdMenuFlg=0;
243 bit SingleOSDflag=0;//the flag sign man choose singledemo or autodemo
244 bit Frame_nextflag=0;
245
246 uint Exitflag=0;
247 uchar KeyP=0;
248 uint Showsymbol=0;
249
250 uchar chh=0x30;
251 uchar h_del=0x02;
252 uchar v_del=9;
253 uchar rspace=0x00;
254 uchar vcom=0x1; //12*16 fonts and VCO=(0,1)
255 uchar horrm=0x27; //for moudletest
256
257
258 static uchar HORRAddDec=62; //for normal
259 static uchar VCOAddDec=0x02;
260 static bit ChangeHORRflag=0;//in order to solve the font dots move problem
261 static uchar VertPosition=36;
262 static uchar HorrPosition=42;
263
264 //static uchar VertPosition=27;
265 //static uchar HorrPosition=47;
266 static uchar ChHeight=0x05;
267 static uchar Test_Chhigh=0x31;//when the frequency higher ,the movement and the character height may not b
-e enough for test
268 static uchar Test_Rowhigh=0x0c;
269 static uchar Test_Movedown=0x45;
270
271 static uchar Freqflag=2;//2--47khz
272 static uchar HORRflag=1; //indicate the HORR
273 /*============== TDA4854 deflection definition================================================
274 #define Hsize 0x00
275 #define Hposition 0x06
276 #define Vsize 0x08
277 #define Vposition 0x02
278 #define Vunit 0x02
279 #define H_flb_pol 0x00
280 ============================================================================================ */
281 void gotoxy(uchar , uchar );
282 //void print(uchar *, uchar );
283 void delay(unsigned int );
284 void delay_short(unsigned int );
285 //void ReadHsync();
286 //bit KeyPressed();
287 //void PutHex(uchar , uchar );
288 void OpenOSDWindow(uchar ,uchar ,uchar , uchar , uchar , uchar ,bit );
289 //uchar GetKey();
290
291 //============================================================================================
292
293 void SendUserFontCmd(uchar row,uchar column,uchar value)
294 {
295 1 uchar buf[4];
296 1
297 1 buf[0]=0x7a;
298 1 buf[1]=row|0xc0;
299 1 buf[2]=column|0x40;
300 1 buf[3]=value;
301 1 SendIIC(buf,4);
C51 COMPILER V7.06 EXPER 06/08/2006 15:01:13 PAGE 6
302 1 }
303
304 void InitialUserFont()
305 {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -